Getting started / Errors & rate limits
Errors & rate limits
Handle response codes and retry safely.
API documentation preview. Key management is available; model inference is pending.
01
401 and 429
An invalid bearer key returns 401. Requests above the published rate limits return 429. Wait before retrying.
02
503
An unavailable or prelaunch endpoint can return 503 without using credits.
Example request
Shell
curl https://cozymodel.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [{"role":"user","content":"Hello!"}]
}'Explore the model catalog.
Discover modalities and select the best model for your task.
Browse models