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
| Provider | Best for | Free tier | Standout |
|---|---|---|---|
| SiliconFlow | Cost-sensitive production with multi-vendor model access | Several free models (BAAI, Hunyuan, Qwen-small) | 200+ models from multiple vendors on one endpoint |
| DashScope (Aliyun Bailian) | Official Qwen API + enterprise Alibaba Cloud billing | 1M free tokens per model (90-day expiry) | Deepest Qwen lineup; built-in tools (search, code interpreter) |
| DeepSeek | Cheapest flagship reasoning (V4 Pro) | 5M free tokens, no credit card | V4 Flash at Β₯1/Β₯2 per M tokens; automatic context caching |
| Volcengine Doubao | ByteDance ecosystem + Doubao models | Varies by model | TPM guarantee packages for production SLAs |
| Zhipu (GLM) | GLM-5 / GLM-5.1 models with free Flash tier | GLM-4.5-Air free on some platforms | OpenAI + Anthropic compatible endpoints |
| MiniMax | 1M-context agentic reasoning (M3) | Token Plan available | OpenAI + 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.
| Provider | Base URL | Auth env | Model example |
|---|---|---|---|
| SiliconFlow | https://api.siliconflow.cn/v1 | SILICONFLOW_API_KEY | deepseek-ai/DeepSeek-V3 |
| DashScope | https://dashscope.aliyuncs.com/compatible-mode/v1 | DASHSCOPE_API_KEY | qwen3.7-plus |
| DeepSeek | https://api.deepseek.com | DEEPSEEK_API_KEY | deepseek-v4-pro |
| Volcengine Doubao | https://ark.cn-beijing.volces.com/api/v3 | ARK_API_KEY | doubao-2.0-pro-256k |
| Zhipu | https://open.bigmodel.cn/api/paas/v4 | ZHIPU_API_KEY | glm-5 |
| MiniMax | https://api.minimax.chat/v1 | MINIMAX_API_KEY | MiniMax-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.
| Provider | Model | Input Β₯/M | Output Β₯/M | Notes |
|---|---|---|---|---|
| DeepSeek | deepseek-v4-flash | 1.00 | 2.00 | Auto context caching, 0.02 cache hit |
| DeepSeek | deepseek-v4-pro | 3.00 | 6.00 | Flagship reasoning |
| DashScope | qwen3.7-plus | 2.00 | 8.00 | 1M context; built-in tools |
| DashScope | qwen3.6-flash | 0.80 | 2.00 | Budget tier, 1M context |
| DashScope | qwen3.7-max | 12.00 | 36.00 | Maximum capability |
| SiliconFlow | DeepSeek-V3 | 1.00 | 2.00 | Same model, SF infrastructure |
| SiliconFlow | Qwen3 variants | 0.40β1.20 | 3.20β7.20 | Varies by model size |
| Volcengine | doubao-2.0-pro | ~1.50 | ~4.00 | ByteDance flagship |
| Zhipu | glm-5 | ~6.00 | ~24.00 | Tiered by context length |
| Zhipu | glm-4.5-flash | Free* | Free* | Via some platforms |
| MiniMax | MiniMax-M3 | ~2.10 | ~8.40 | 1M 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
| Provider | Free tier | Rate limits | Notes |
|---|---|---|---|
| DeepSeek | 5M tokens on signup, no credit card | Varies; lower for free tier | Automatic context caching for all users |
| DashScope | 1M tokens per model, 90-day expiry | Up to 500 RPM (paid tiers) | Enterprise SLAs via Alibaba Cloud |
| SiliconFlow | Several models free (BAAI, Hunyuan, etc.) | Varies by plan | Paid plans for higher RPM |
| Volcengine | Varies | TPM guarantee packages available | Enterprise SLA with reserved throughput |
| Zhipu | GLM-4.5-Air free on some platforms | Standard API limits | Coding Plan from $10/month |
| MiniMax | Token Plan available | Pay-as-you-go default | Subscription 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.