Skip to content

Completions

POST /v1/completions

Plain text completion — the right endpoint for base models without a chat template. Streaming supported.

FieldTypeDefaultNotes
modelstring(the deployment’s model)Optional; must match if set
promptstring | string[]required
streamboolfalse
temperature / top_pfloatengine default
max_tokensintengine default
frequency_penalty / presence_penaltyfloatengine default
stopstring | string[]
nint1

Other OpenAI fields (best_of, echo, logprobs, suffix, seed, …) pass through to the engine.

Terminal window
curl https://<your-deployment>.inference.meshive.ai/v1/completions \
-H "Authorization: Bearer $MESHIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "The capital of France is", "max_tokens": 16}'

Rate limiting, timeouts, streaming error events, and status codes are identical to Chat completions.