ModelSheep

Docs

Completions

POSThttps://api.modelsheep.com/completions
POSThttps://api.modelsheep.com/v1/completions

Creates a text completion for a prompt. The endpoint is compatible with the OpenAI completions endpoint and takes a plain prompt instead of chat messages.

Both paths are served and return the same response. The OpenAI SDKs append /v1 on their own.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.modelsheep.com",
    api_key=API_KEY_MODELSHEEP,
)

response = client.completions.create(
    model="Qwen/Qwen3.5-35B-A3B-FP8",
    prompt="A sheep walks into a data centre and",
    max_tokens=60,
)

print(response.choices[0].text)

Request Body

promptstringrequired
The text the model continues.
modelstringrequired
A public model name, as listed on /models.
max_tokensinteger
The maximum number of tokens in the response.
temperaturenumber
Sampling temperature. Higher values give more varied output. Defaults to the model default.
top_pnumber
Nucleus sampling, an alternative to temperature.
stopstring or array
One or more strings that end the response.

Response

idstring
The id of this completion.
objectstring
The type of object returned.
createdinteger
The creation time in unix seconds.
modelstring
The model that produced the response.
array
The generated completions, one entry unless more were requested.
object
The token counts the call is priced on.

Response Example

{
  "id": "cmpl-...",
  "object": "text_completion",
  "created": 1789832000,
  "model": "Qwen/Qwen3.5-35B-A3B-FP8",
  "choices": [
    {
      "index": 0,
      "text": " asks the rack how it sleeps at night.",
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 11,
    "total_tokens": 20
  }
}