Getting started / Authentication
Authentication
Use a private API key to identify your application.
API documentation preview. Key management is available; model inference is pending.
01
Send a bearer token
Set the Authorization header to Bearer followed by your CozyModel API key. Keep it on your server.
02
Rotate a key
Create a new key, update the calling service and revoke the previous key in API keys.
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