← All articles

OpenAI-Compatible API Providers in China: A Practical Comparison (2026)

Six Chinese providers speak the OpenAI protocol. We compared their endpoints, pricing, rate limits, and model coverage so you can pick the right one — or route through all of them.

· TheRouter

If you're building on the OpenAI SDK and want access to Chinese LLMs — Qwen, DeepSeek, GLM, MiniMax — you don't need a new SDK. Six major providers in China expose OpenAI-compatible /v1/chat/completions endpoints. Point your base_url at any of them, swap the model name, and your existing code works.

We compared all six across endpoint setup, pricing, model coverage, rate limits, and free tiers. This post is the reference we wish existed when we started routing requests through them.

TL;DR — Which Provider, in 30 Seconds

ProviderBest forFree tierStandout
SiliconFlowCost-sensitive production with multi-vendor model accessSeveral free models (BAAI, Hunyuan, Qwen-small)200+ models from multiple vendors on one endpoint
DashScope (Aliyun Bailian)Official Qwen API + enterprise Alibaba Cloud billing1M free tokens per model (90-day expiry)Deepest Qwen lineup; built-in tools (search, code interpreter)
DeepSeekCheapest flagship reasoning (V4 Pro)5M free tokens, no credit cardV4 Flash at ¥1/¥2 per M tokens; automatic context caching
Volcengine DoubaoByteDance ecosystem + Doubao modelsVaries by modelTPM guarantee packages for production SLAs
Zhipu (GLM)GLM-5 / GLM-5.1 models with free Flash tierGLM-4.5-Air free on some platformsOpenAI + Anthropic compatible endpoints
MiniMax1M-context agentic reasoning (M3)Token Plan availableOpenAI + Anthropic SDK compatible; M3 with 1M context

Provider Comparison Table

Endpoint Setup

Every provider follows the same pattern: set base_url, set api_key, pick a model. Here's the configuration for each:

ProviderBase URLAuthModel example
SiliconFlowhttps://api.siliconflow.cn/v1SILICONFLOW_API_KEYdeepseek-ai/DeepSeek-V3
DashScopehttps://dashscope.aliyuncs.com/compatible-mode/v1DASHSCOPE_API_KEYqwen3.7-plus
DeepSeekhttps://api.deepseek.comDEEPSEEK_API_KEYdeepseek-v4-pro
Volcengine Doubaohttps://ark.cn-beijing.volces.com/api/v3ARK_API_KEYdoubao-2.0-pro-256k
Zhipuhttps://open.bigmodel.cn/api/paas/v4ZHIPU_API_KEYglm-5
MiniMaxhttps://api.minimax.chat/v1MINIMAX_API_KEYMiniMax-M3

Code: One SDK, Six Providers

The beauty of OpenAI-compatible APIs is that switching providers is a one-line change. Here's the same call against each provider using the OpenAI Python SDK:

from openai import OpenAI

# SiliconFlow
client = OpenAI(
    base_url="https://api.siliconflow.cn/v1",
    api_key="your-siliconflow-key",
)
response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3",
    messages=[{"role": "user", "content": "Explain transformer attention in one paragraph."}],
)

# To switch to DashScope, change two lines:
client = OpenAI(
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
    api_key="your-dashscope-key",
)
response = client.chat.completions.create(
    model="qwen3.7-plus",
    messages=[{"role": "user", "content": "Explain transformer attention in one paragraph."}],
)

# DeepSeek direct:
client = OpenAI(
    base_url="https://api.deepseek.com",
    api_key="your-deepseek-key",
)
response = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[{"role": "user", "content": "Explain transformer attention in one paragraph."}],
)

The pattern is identical for Volcengine, Zhipu, and MiniMax — only base_url, api_key, and model change.

Pricing Comparison

Prices below are per million tokens in CNY (¥), sourced from each provider's official pricing page as of June 2026. For providers with tiered pricing (different rates for different context lengths), we list the base tier.

ProviderModelInput (¥/M)Output (¥/M)Cache hitNotes
DeepSeekdeepseek-v4-flash1.002.000.02Automatic context caching
DeepSeekdeepseek-v4-pro3.006.000.03Flagship reasoning
DashScopeqwen3.7-plus2.008.00—1M context; built-in tools
DashScopeqwen3.6-flash0.802.00—Budget tier, 1M context
DashScopeqwen3.7-max12.0036.00—Maximum capability
SiliconFlowDeepSeek-V3 via SF1.002.000.02Same model, SF infrastructure
SiliconFlowQwen3 via SF0.40–1.203.20–7.20—Varies by model size
Volcenginedoubao-2.0-pro~1.50~4.00—ByteDance flagship
Zhipuglm-5~6.00~24.00—Tiered by context length
Zhipuglm-4.5-flashFree (some platforms)Free—Via OpenRouter/SiliconFlow
MiniMaxMiniMax-M3~2.10~8.400.211M context, agentic reasoning
MiniMaxMiniMax-M2.5~2.10~8.400.21204K context

Key takeaway: DeepSeek direct offers the lowest per-token cost for both flash and flagship tiers. DashScope provides the broadest Qwen model selection with built-in tools. SiliconFlow offers multi-vendor model access on a single API key. MiniMax's M3 delivers frontier-class 1M-context reasoning at competitive rates.

Source note: Prices retrieved from official pricing pages on June 4, 2026. All providers adjust pricing periodically — verify current rates before making procurement decisions.

Rate Limits and Free Tiers

ProviderFree tierRate limits (default)Notes
DeepSeek5M tokens on signup (no credit card)Varies; lower for free tierAutomatic context caching included for all users
DashScope1M tokens per model, 90-day expiryUp to 500 RPM for paid tiersEnterprise SLAs available via Alibaba Cloud
SiliconFlowSeveral models free (BAAI, Hunyuan, etc.)Varies by planPaid plans with higher RPM available
VolcengineVariesTPM guarantee packages availableEnterprise SLA with reserved throughput
ZhipuGLM-4.5-Air free on some platformsStandard API limitsCoding Plan from $10/month
MiniMaxToken Plan availablePay-as-you-go defaultSubscription Key separate from API Key

Decision Tree: Pick Your Provider

Pick DeepSeek direct if:

  • You want the absolute lowest per-token cost
  • DeepSeek models (V4 Flash, V4 Pro) cover your use case
  • You don't need built-in tools or multi-model access on one key
  • Periodic availability fluctuations are acceptable for your SLA

Pick DashScope if:

  • You need official Qwen models (Qwen3.7-max, Qwen3.7-plus, Qwen3.6-flash)
  • You want built-in tools (web search, code interpreter) without custom function calling
  • You're already in the Alibaba Cloud ecosystem (unified billing, IAM, VPC endpoints)
  • You need enterprise SLA and domestic compliance

Pick SiliconFlow if:

  • You want one API key for models from DeepSeek, Qwen, GLM, MiniMax, and others
  • You're prototyping and want to test multiple models quickly
  • Free-tier models matter for development
  • You want a single billing relationship for multi-vendor model access

Pick Volcengine Doubao if:

  • You need Doubao models (ByteDance's proprietary LLM family)
  • You need guaranteed TPM (tokens per minute) with SLA-backed throughput packages
  • You're in the ByteDance/Volcengine ecosystem

Pick Zhipu if:

  • You specifically need GLM-5 or GLM-5.1
  • You want both OpenAI and Anthropic SDK compatibility from the same provider
  • Coding Plan pricing fits your workload

Pick MiniMax if:

  • You need 1M-context agentic reasoning (M3)
  • Both OpenAI and Anthropic SDK compatibility matter
  • You need speech, video, and image APIs alongside LLM

Routing Through Multiple Providers

If you don't want to pick just one, a routing layer can distribute requests across providers based on model, cost, or availability. TheRouter routes OpenAI-compatible requests through configured providers and supports provider/model routing and fallback — so you can set SiliconFlow as your primary for DeepSeek models and DashScope as your primary for Qwen, with automatic failover between them.

# Example TheRouter config (simplified)
providers:
  siliconflow:
    base_url: https://api.siliconflow.cn/v1
    api_key: ${SILICONFLOW_API_KEY}
  dashscope:
    base_url: https://dashscope.aliyuncs.com/compatible-mode/v1
    api_key: ${DASHSCOPE_API_KEY}
  deepseek:
    base_url: https://api.deepseek.com
    api_key: ${DEEPSEEK_API_KEY}

routes:
  - model: "deepseek-*"
    providers: [deepseek, siliconflow]  # fallback order
  - model: "qwen*"
    providers: [dashscope, siliconflow]

FAQ

Can I use the standard OpenAI Python/Node SDK with these providers?

Yes. All six providers implement the OpenAI-compatible /v1/chat/completions endpoint. Set base_url to the provider's endpoint and api_key to your provider-specific key. No SDK modification needed. See SiliconFlow setup or DashScope setup for step-by-step guides.

Which provider has the cheapest DeepSeek V4 access?

DeepSeek direct at ¥1/¥2 per million tokens for V4 Flash (input/output). SiliconFlow also offers DeepSeek models at similar rates. DeepSeek's automatic context caching can reduce effective input costs by up to 98% for repetitive prompts.

Are these providers available outside China?

DashScope has international regions (Singapore, US, Frankfurt). DeepSeek's API is accessible globally. SiliconFlow serves international users at api.siliconflow.cn. MiniMax operates platform.minimax.io for international access. Volcengine and Zhipu are primarily domestic, though API access may work from outside China with added latency.

Do these providers support function calling and tool use?

All six support function calling via the OpenAI-compatible API format. DashScope additionally offers built-in tools (web search, code interpreter, web scraping) that don't require custom function definitions. Feature support varies by model — check each provider's documentation for model-specific capabilities.

Can I use these providers with coding agents like Claude Code or Cursor?

Yes. DeepSeek explicitly documents agent integration guides for Claude Code, GitHub Copilot, and OpenCode. Any OpenAI-compatible provider can work with tools that accept a custom base_url. See our model pages for provider-specific setup notes.

What about streaming and structured output support?

All six providers support streaming responses via stream: true. Structured output (JSON mode) support varies: DashScope's Qwen models and Zhipu's GLM models have the broadest structured output support. DeepSeek and MiniMax support JSON mode for most models. Check each provider's model documentation for specific capabilities.


Prices and model availability retrieved from official provider documentation on June 4, 2026. This post compares upstream API providers — TheRouter is one way to route between them. Provider pricing changes frequently; verify current rates on each provider's pricing page before making decisions.

Help & contact