Creates a raw text completion for the given prompt
Generates a continuation of the prompt with no chat template applied — the prompt is passed to the model verbatim. Intended for clients that build the full prompt themselves, e.g. editor fill-in-the-middle (FIM) code autocompletion; include the model's FIM tokens in prompt directly. LLM models only.
post/v1/completions
Request body
Example request
{
"model": "qualcomm/Qwen3-4B-Instruct-2507",
"prompt": "def fibonacci(n):",
"max_tokens": 64,
"temperature": 0.2,
"stream": false
}Response
Successful response for non-streaming requests
Example response
{
"object": "text_completion"
}Changes
Changed in 3 of the 14 revisions of this API.12
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○