API Quickstart
CallAI is 100% compatible with the OpenAI API protocol. Connect Claude 3.7, GPT-4o, DeepSeek R1/V3, and Gemini 2.0 with one API key.
API Base URL
https://api.callaiapi.com/v1
Authorization Header
Authorization: Bearer sk-live-your-key
⚠️Base URL path pitfalls
Always include the /v1 suffix and avoid a trailing slash (e.g. https://api.callaiapi.com/v1). Production keys start with sk-live-.
Core endpoints
| Path | Method | Purpose | Protocol |
|---|---|---|---|
| /v1/chat/completions | POST | Chat completions & agent thinking (stream supported) | OpenAI-aligned |
| /v1/models | GET | List 200+ models available to your account | OpenAI-aligned |
| /dataforseo/v3/serp/... | POST | Live Google SERP organic top-100 | DataForSEO-aligned |
Recommended model IDs
| Model ID | Vendor | Context | Best for |
|---|---|---|---|
| claude-3-7-sonnet | Anthropic | 200K | Hybrid thinking, Cursor refactors |
| deepseek-r1 | DeepSeek | 64K | Full 671B reasoning, math & algorithms |
| gpt-4o | OpenAI | 128K | Multimodal vision & tool calling |
| deepseek-chat | DeepSeek | 64K | DeepSeek V3 high throughput, low cost |
30-second cURL connectivity test
curl https://api.callaiapi.com/v1/chat/completions \
-H "Authorization: Bearer sk-live-your-callai-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello, world!"}]
}'Need production-ready Python, Node.js, or Go scripts?
Export streaming clients with retries from the free code generator.