Cent AI docs
One API key for many models over OpenAI Chat Completions, OpenAI Responses and Anthropic Messages. Prepaid USD balance, priced per token.
Change only this
Base URLs
- OpenAI SDKs and tools
- https://api.cent-ai.dev/v1
- Anthropic SDKs and Claude Code
- https://api.cent-ai.dev
curl https://api.cent-ai.dev/v1/chat/completions \
-H "Authorization: Bearer $CENT_AI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [{"role": "user", "content": "Hello"}]
}'
Response200 OK
"usage": {
"prompt_tokens": 10000,
"prompt_tokens_details": {"cached_tokens": 9000},
"completion_tokens": 800,
"total_tokens": 10800,
"cost": "0.000363000" (charged for this request, USD)
}
Change only this
Base URLs
- OpenAI SDKs and tools
- https://api.cent-ai.dev/v1
- Anthropic SDKs and Claude Code
- https://api.cent-ai.dev
Popular
- Start here
Quickstart
Create a key, add balance and send a first request.
Use Cent AI with Claude Code
Two environment variables point Claude Code at Cent AI.
Use Cent AI with Cursor
Use Cent AI models through Cursor's OpenAI base URL override.
Use Cent AI with the OpenAI Python SDK
Change the base URL, keep your code.
Use Cent AI with the Anthropic Python SDK
Messages and streaming with the Anthropic SDK.
Pricing
Four rates per model, the per-request minimum and one-time packs.