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

PathMethodPurposeProtocol
/v1/chat/completionsPOSTChat completions & agent thinking (stream supported)OpenAI-aligned
/v1/modelsGETList 200+ models available to your accountOpenAI-aligned
/dataforseo/v3/serp/...POSTLive Google SERP organic top-100Google SERP aligned

Recommended model IDs

Model IDVendorContextBest for
claude-3-7-sonnetAnthropic200KHybrid thinking, Cursor refactors
deepseek-r1DeepSeek64KFull 671B reasoning, math & algorithms
gpt-4oOpenAI128KMultimodal vision & tool calling
deepseek-chatDeepSeek64KDeepSeek 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.
Open code generator →