ChinaAPI account
Register, then open Dashboard -> Console -> Tokens to create or copy an sk-... API key.
Request pricing
Cursor integration
Point Cursor at one OpenAI-compatible endpoint for cheap official-price Chinese coding models, including DeepSeek, Kimi, Qwen, GLM, and MiniMax families.
Prerequisites
Register, then open Dashboard -> Console -> Tokens to create or copy an sk-... API key.
Use https://dash.chinaapi.ai/v1 as the OpenAI-compatible base URL.
Setup
https://dash.chinaapi.ai/v1.Copy-paste test
curl https://dash.chinaapi.ai/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{"role": "user", "content": "Reply with exactly: Cursor is connected to ChinaAPI."}
],
"stream": true
}'
After the curl test works, ask Cursor: Write a small TypeScript function that validates an email address.
Recommended models
kimi-k2.7-codeCoding-focused Kimi model for repo navigation, edits, and longer coding sessions.
deepseek-v4-proStrong coding and reasoning model for harder refactors and analysis tasks.
qwen3.7-plusBalanced multimodal reasoning model for planning, tool use, and daily coding help.
qwen3.6-flashFast, lower-latency choice for quick edits, summaries, and agent loops.
glm-5.2Long-context GLM model for larger codebase questions and agentic work.
Troubleshooting
Thinking models such as qwen3.7-max can generate reasoning tokens before the answer appears. Enable streaming where Cursor exposes it, or raise the client timeout if requests end early.
Model not found: check the exact model ID on live pricing. IDs are case-sensitive and may differ from public marketing names.
401: confirm the key starts with sk- and is sent as Authorization: Bearer sk-.... In Cursor, make sure the key is in the OpenAI key field tied to the custom base URL.
Pricing and signup
Signup includes $1 free credit. Check live pricing before production runs because model IDs and availability can change.