Commissioned
API

Chat Completions

OpenAI-compatible chat completions for your fine-tuned models.

Endpoint

POST /v1/chat/completions

Request format

curl https://app.commissioned.tech/v1/chat/completions \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "your-model-id",
    "messages": [
      {"role": "user", "content": "Write a summary of our Q4 results."}
    ]
  }'

Finding your model ID

Get your model ID from:

Error responses

StatusCause
400Invalid request body (missing model or messages)
401Missing or invalid API key
404Model not found (check the model ID)
429Rate limit exceeded
500Server error (retry the request)

On this page