DashScope, Zhipu, DeepSeek: OpenAI-Compatible API Base URLs in China (2026)

If you're searching for the DashScope OpenAI-compatible base URL, Zhipu's OpenAI-compatible endpoint, or a DeepSeek-compatible SDK setup, the integration pattern is the same: keep the OpenAI SDK, change base_url, API key, and model name. This guide lists the exact endpoints for DashScope/Qwen, Zhipu/GLM, DeepSeek, Volcengine Doubao, MiniMax, and SiliconFlow, then explains where streaming, tools, pricing, and routing behavior differ.


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

OpenAI-Compatible Base URLs and Endpoint Setup

Every provider follows the same pattern: set base_url, set api_key, pick a model. DashScope's official OpenAI-compatible endpoint is https://dashscope.aliyuncs.com/compatible-mode/v1; Zhipu's GLM endpoint is https://open.bigmodel.cn/api/paas/v4.

ProviderBase URLAuth envModel 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

Switching providers is a one-line change. The same OpenAI Python SDK call works for all six β€” only base_url, api_key, and model differ.

from openai import OpenAI

# SiliconFlow β€” 200+ models on one key
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."}],
)

# DashScope β€” switch two lines for official Qwen
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."}],
)

# DeepSeek direct β€” lowest per-token cost
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."}],
)
# Same pattern for Volcengine, Zhipu, and MiniMax β€” only base_url + api_key + model change.

Pricing Comparison

Per million tokens in CNY (Β₯), sourced from official pricing pages, June 2026.

ProviderModelInput Β₯/MOutput Β₯/MNotes
DeepSeekdeepseek-v4-flash1.002.00Auto context caching, 0.02 cache hit
DeepSeekdeepseek-v4-pro3.006.00Flagship reasoning
DashScopeqwen3.7-plus2.008.001M context; built-in tools
DashScopeqwen3.6-flash0.802.00Budget tier, 1M context
DashScopeqwen3.7-max12.0036.00Maximum capability
SiliconFlowDeepSeek-V31.002.00Same model, SF infrastructure
SiliconFlowQwen3 variants0.40–1.203.20–7.20Varies by model size
Volcenginedoubao-2.0-pro~1.50~4.00ByteDance flagship
Zhipuglm-5~6.00~24.00Tiered by context length
Zhipuglm-4.5-flashFree*Free*Via some platforms
MiniMaxMiniMax-M3~2.10~8.401M context, agentic; 0.21 cache hit

* Prices from official pricing pages on June 4–5, 2026. Verify before procurement β€” all providers adjust pricing frequently.

Rate Limits and Free Tiers

ProviderFree tierRate limitsNotes
DeepSeek5M tokens on signup, no credit cardVaries; lower for free tierAutomatic context caching for all users
DashScope1M tokens per model, 90-day expiryUp to 500 RPM (paid tiers)Enterprise SLAs via Alibaba Cloud
SiliconFlowSeveral models free (BAAI, Hunyuan, etc.)Varies by planPaid plans for higher RPM
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 β†’

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

Pick DashScope β†’

  • Official Qwen models (Qwen3.7-max, qwen3.7-plus, qwen3.6-flash)
  • Built-in tools (web search, code interpreter) without custom function calling
  • Already in the Alibaba Cloud ecosystem (unified billing, IAM, VPC)
  • Enterprise SLA and domestic compliance

Pick SiliconFlow β†’

  • One API key for DeepSeek, Qwen, GLM, MiniMax, and more
  • Prototyping and testing multiple models quickly
  • Free-tier models matter for development
  • Single billing relationship for multi-vendor model access

Pick Volcengine Doubao β†’

  • Need Doubao models (ByteDance's proprietary LLM family)
  • Need guaranteed TPM with SLA-backed throughput packages
  • In the ByteDance/Volcengine ecosystem

Pick Zhipu β†’

  • Specifically need GLM-5 or GLM-5.1
  • Want both OpenAI and Anthropic SDK compatibility from one provider
  • Coding Plan pricing fits your workload

Pick MiniMax β†’

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

Route Through All Providers at Once

If you don't want to pick just one, a routing layer distributes requests across providers based on model, cost, and availability. TheRouter routes OpenAI-compatible requests through all six providers and handles fallback automatically β€” so you can use SiliconFlow as your primary for DeepSeek models and DashScope for Qwen, with automatic failover when a provider is unavailable.

# One TheRouter key β†’ all six providers, automatic fallback
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THE_ROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

One key. Six providers. Automatic routing. Read the docs β†’

FAQ

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

Yes. All six 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 changes needed.

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 globally accessible. 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.

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) that don't require custom function definitions. Feature support varies by model.

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

Yes. Any OpenAI-compatible provider works with tools that accept a custom base_url. DeepSeek explicitly documents agent integrations for Claude Code, GitHub Copilot, and OpenCode.

What about streaming and structured output?

All six support streaming 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.


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

δΈ­ζ–‡η‰ˆζœ¬ β†’

Help & contact