API
Chat Completions
OpenAI-compatible chat completions for your fine-tuned models.
Endpoint
POST /v1/chat/completionsRequest 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:
- Dashboard - shown on each model card
- /v1/models endpoint - returns all your models with their IDs
Error responses
| Status | Cause |
|---|---|
400 | Invalid request body (missing model or messages) |
401 | Missing or invalid API key |
404 | Model not found (check the model ID) |
429 | Rate limit exceeded |
500 | Server error (retry the request) |