DeepSeek vs Qwen vs GLM API pricing
A few commonly used models from each family, with their per-token prices on XHuoAPI, monthly costs at fixed volumes, and which one is cheapest for what. All three are called with the same API key and endpoint; switching means changing the model field.
Prices synced · Standard · USD / 1M tokens
Per-token prices
Prices below are for the Standard tier (the default for new accounts), in USD per million tokens. "Lowest tier" is the cheapest tier the model is available in; Saver and Spot cost less and are less reliable. The pricing page explains the difference.
| Model | Input | Cache read | Output | Lowest tier (in / out) | Available tiers | |
|---|---|---|---|---|---|---|
| DeepSeek | deepseek-v3.2 |
$0.23 | $0.12 | $0.34 | $0.087 / $0.13 Spot | Standard · Saver · Spot · Official |
| DeepSeek | deepseek-v4-flash |
$0.35 | $0.070 | $1.06 | $0.13 / $0.40 Spot | Standard · Saver · Spot · Official |
| DeepSeek | deepseek-v4-pro |
$1.06 | $0.088 | $3.17 | $0.40 / $1.19 Spot | Standard · Saver · Spot · Official |
| Qwen | qwen3.7-plus |
$0.32 | $0.032 | $1.28 | — | Standard · Official Above 256K: $1.60 / $4.80 |
| Qwen | qwen3.8-max |
$1.60 | $0.20 | $4.80 | — | Standard · Official |
| GLM | glm-4.7 |
$0.56 | $0.11 | $2.61 | $0.21 / $0.98 Spot | Standard · Saver · Spot · Official |
| GLM | glm-5.3 |
$1.12 | $0.21 | $3.52 | $0.42 / $1.32 Spot | Standard · Saver · Spot · Official |
Monthly cost examples
Calculated at Standard tier prices, without cache-hit discounts. Real input/output ratios vary by app; use the calculator on the pricing page with your own volumes.
| Model | Small 10M in + 1M out |
Medium 100M in + 20M out |
|
|---|---|---|---|
| DeepSeek | deepseek-v3.2 |
$2.66 | $30.09 |
| DeepSeek | deepseek-v4-flash |
$4.58 | $56.32 |
| DeepSeek | deepseek-v4-pro |
$13.73 | $169 |
| Qwen | qwen3.7-plus |
$4.48 | $57.60 |
| Qwen | qwen3.8-max |
$20.80 | $256 |
| GLM | glm-4.7 |
$8.21 | $108 |
| GLM | glm-5.3 |
$14.72 | $182 |
Choosing by price
Based only on the models and Standard prices on this page. Model quality is not compared here; check each vendor's documentation and your own tests for that.
| Lowest input price | deepseek-v3.2 · $0.23 |
|---|---|
| Lowest output price | deepseek-v3.2 · $0.34 |
| Cheapest at small volume | deepseek-v3.2 · $2.66 |
| Cheapest at medium volume | deepseek-v3.2 · $30.09 |
| Also available in Saver / Spot | deepseek-v3.2 deepseek-v4-flash deepseek-v4-pro glm-4.7 glm-5.3 |
| Standard / Official only | qwen3.7-plus qwen3.8-max |
Calling all three with one key
The endpoint is OpenAI Chat Completions compatible; the three requests below differ only in model.
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-v4-pro", "messages": [{"role": "user", "content": "Hello"}]}'
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen3.8-max", "messages": [{"role": "user", "content": "Hello"}]}'
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'
Notes
- Prices here are what XHuoAPI charges, not the vendors' own list prices. For vendor pricing, see each vendor's website.
- Prices move with upstream costs. This page is regenerated from the pricing API on every site build; the sync date is at the top.
- All models and all four tiers are on the pricing page; tool setup is in the integration guides.