Free during beta — no credit card

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.

200+
models
99.9%
uptime
<200ms
median latency
12
providers integrated

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.

Anthropic
OpenAI
Google
Meta
xAI
Alibaba
DeepSeek
ByteDance
Moonshot
Zhipu
MiniMax
ModelProviderInput /1MOutput /1Mvs official
Claude Haiku 4.5
claude-haiku
Anthropic$0.65$3.2020%
Claude Sonnet 4.7
claude-sonnet
Anthropic$2.40$12.0020%
Claude Opus 4.7
claude-opus
Anthropic$12.00$60.0020%
GPT-4o
gpt-4o
OpenAI$2.00$8.0020%
GPT-4o mini
gpt-4o-mini
OpenAI$0.12$0.5017%
OpenAI o1
o1
OpenAI$12.00$48.0020%
Gemini 2.0 Pro
gemini-2.0-pro
Google$1.50$8.0021%
Gemini 2.0 Flash
gemini-2.0-flash
Google$0.08$0.3220%
Llama 3.3 70B
llama-3.3-70b
Meta$0.40$0.5532%
Grok 3
grok-3
xAI$4.00$12.0020%
Qwen Max
qwen-max
Alibaba$0.16$0.5059%
Qwen 2.5 72B
qwen-2.5-72b
Alibaba$0.10$0.3057%
Qwen Long (10M ctx)
qwen-long
Alibaba$0.03$0.1257%
DeepSeek V3
deepseek-chat
DeepSeek$0.22$0.9018%
DeepSeek R1
deepseek-reasoner
DeepSeek$0.45$1.8018%
Doubao Pro 32K
doubao-pro-32k
ByteDance$0.10$0.2517%
Kimi K1
kimi-k1
Moonshot$0.16$0.6519%
GLM-4.6
glm-4-6
Zhipu$0.40$1.2020%
MiniMax Text-01
minimax-text
MiniMax$0.16$0.9018%

Lowest prices, transparent

Compare us against OpenRouter and the official APIs.

ModelAnthropicOpenAIOpenRouterCNAPI
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.