200+ AI models.
Lowest prices on the net.
One API for Claude, GPT, Gemini, Qwen, DeepSeek, Doubao, Kimi, GLM, and more. Drop-in compatible with OpenAI and Anthropic SDKs.
Why CNAPI
Three things that beat OpenRouter and the official APIs.
Cheapest, period.
We pass on wholesale discounts on Chinese models (Qwen 4折, Seedance 8折) and undercut OpenRouter on every overseas model.
Most stable.
Multi-provider failover, edge-deployed in 30+ regions, 99.9% uptime SLA. When one provider blips, we route around it.
Drop-in easy.
Anthropic SDK works as-is. Just change base_url. Stream support, function calling, vision — all of it.
All major models, one key
Switch models with a string. No new SDK, no new auth.
| Model | Provider | Input /1M | Output /1M | vs official |
|---|---|---|---|---|
Claude Haiku 4.5 claude-haiku | Anthropic | $0.65 | $3.20 | −20% |
Claude Sonnet 4.7 claude-sonnet | Anthropic | $2.40 | $12.00 | −20% |
Claude Opus 4.7 claude-opus | Anthropic | $12.00 | $60.00 | −20% |
GPT-4o gpt-4o | OpenAI | $2.00 | $8.00 | −20% |
GPT-4o mini gpt-4o-mini | OpenAI | $0.12 | $0.50 | −17% |
OpenAI o1 o1 | OpenAI | $12.00 | $48.00 | −20% |
Gemini 2.0 Pro gemini-2.0-pro | $1.50 | $8.00 | −21% | |
Gemini 2.0 Flash gemini-2.0-flash | $0.08 | $0.32 | −20% | |
Llama 3.3 70B llama-3.3-70b | Meta | $0.40 | $0.55 | −32% |
Grok 3 grok-3 | xAI | $4.00 | $12.00 | −20% |
Qwen Max qwen-max | Alibaba | $0.16 | $0.50 | −59% |
Qwen 2.5 72B qwen-2.5-72b | Alibaba | $0.10 | $0.30 | −57% |
Qwen Long (10M ctx) qwen-long | Alibaba | $0.03 | $0.12 | −57% |
DeepSeek V3 deepseek-chat | DeepSeek | $0.22 | $0.90 | −18% |
DeepSeek R1 deepseek-reasoner | DeepSeek | $0.45 | $1.80 | −18% |
Doubao Pro 32K doubao-pro-32k | ByteDance | $0.10 | $0.25 | −17% |
Kimi K1 kimi-k1 | Moonshot | $0.16 | $0.65 | −19% |
GLM-4.6 glm-4-6 | Zhipu | $0.40 | $1.20 | −20% |
MiniMax Text-01 minimax-text | MiniMax | $0.16 | $0.90 | −18% |
Lowest prices, transparent
Compare us against OpenRouter and the official APIs.
| Model | Anthropic | OpenAI | OpenRouter | CNAPI |
|---|---|---|---|---|
| Claude Haiku | $0.80 / $4.00 | — | $0.84 / $4.20 | $0.65 / $3.20 |
| Claude Sonnet | $3.00 / $15.00 | — | $3.15 / $15.75 | $2.40 / $12.00 |
| GPT-4o | — | $2.50 / $10.00 | $2.63 / $10.50 | $2.00 / $8.00 |
| Qwen 2.5 72B | — | — | $0.30 / $0.90 | $0.10 / $0.30 |
| DeepSeek V3 | — | — | $0.27 / $1.10 | $0.22 / $0.90 |
Prices in USD per 1M tokens. OpenRouter adds 5% on top of provider price.
Two lines of code.
Works with the official SDKs you already use.
from anthropic import Anthropic
client = Anthropic(
api_key="sk-cnapi-your-key",
base_url="https://cnapi.io"
)
response = client.messages.create(
model="claude-haiku",
max_tokens=256,
messages=[{"role": "user", "content": "Hello!"}]
)Start building in 30 seconds.
Email signup, get an API key, call any model. Free during beta.
Sign up free →No credit card. No commitment.