
Model comparison
Qwen vs DeepSeek API price, context and cost.
Qwen (Alibaba) against DeepSeek (DeepSeek) on RouterPlex, flagship to flagship and cheap model to cheap model: Qwen4 Max Preview vs DeepSeek V4 Pro, then Qwen3.8 Flash vs DeepSeek V4.1 Flash. A coding-agent session costs $4.60 on Qwen4 Max Preview and $0.90 on DeepSeek V4 Pro; on the cheap models, $0.13 against $0.25.
Both lineups
Every live Qwen and DeepSeek model.
Picked from the live catalog by one rule: the flagship is the newest full-size version (no Flash or Lite in the id), the cheap pick is the lowest cost on a 100K-input, 10K-output turn. Speed tiers, abliterated builds and routes without a working upstream are left out. Cheapest first within each family.
| Model | Role | Context | Input / 1M | Output / 1M | Image input |
|---|---|---|---|---|---|
| Qwen / Alibaba | |||||
| Qwen3.8 Flash qwen3.8-flash | Cheap pick | 1M | $0.15 | $0.47 | No |
| Qwen3.6 Flash qwen3.6-flash | 1M | $0.25 | $1.50 | Yes | |
| Qwen3.7 Plus qwen3.7-plus | 1M | $0.32 | $1.28 | Yes | |
| Qwen3.8 Max qwen3.8-max | 1M | $2.00 | $6.00 | Yes | |
| Qwen3.8 Max 0902 qwen3.8-max-0902 | 1M | $2.00 | $6.00 | Yes | |
| Qwen4 Max Preview qwen4-max-preview | Flagship | 1M | $2.00 | $6.00 | No |
| Qwen3.7 Max qwen3.7-max | 1M | $2.50 | $7.50 | No | |
| DeepSeek / DeepSeek | |||||
| DeepSeek V4.1 Flash deepseek-v4.1-flash | Cheap pick | 1M | $0.18 | $0.73 | Yes |
| DeepSeek V4.1 Flash 1017 deepseek-v4.1-flash-1017 | 1M | $0.18 | $0.73 | Yes | |
| DeepSeek V4 Pro deepseek-v4-pro | Flagship | 1M | $0.80 | $2.39 | No |
| DeepSeek V4 Pro 0813 deepseek-v4-pro-0813 | 1M | $0.80 | $2.39 | No | |
Flagship tier
Qwen4 Max Preview vs DeepSeek V4 Pro
| Catalog field | Qwen4 Max Preview | DeepSeek V4 Pro |
|---|---|---|
| Provider | Alibaba | DeepSeek |
| Model ID | qwen4-max-preview | deepseek-v4-pro |
| Input / 1M | $2.00 | $0.80 |
| Output / 1M | $6.00 | $2.39 |
| Cached input / 1M | Billed at input rate | $0.21 |
| Context window | 1M (1,000,000 tokens) | 1M (1,000,000 tokens) |
| Max output | 131K tokens | 384K tokens |
| Image input | No | No |
| Tool calling | Yes | Yes |
| Reasoning | Yes | Yes |
| Long-prompt tier | None | None |
| Price basis | RouterPlex-set rate | Vendor list price, 0% markup |
- Qwen4 Max Preview: Preview model. Alibaba offers Qwen4-Max Preview only on its Token Plan subscription and publishes no per-token API price, so RouterPlex bills Qwen3.8 Max's list rate of $2 input / $6 output per 1M tokens. Alibaba retires the preview on November 25, 2026. Reasoning is on by default, so allow a generous max_tokens or short replies can come back empty.
- DeepSeek V4 Pro: DeepSeek prices this model by time of day: $0.66 input / $1.98 output per 1M tokens off-peak, and double that during peak hours (01:00-04:00 and 06:00-10:00 UTC, Monday to Friday). RouterPlex bills a single flat rate of $0.80 / $2.39 in between -- the time-weighted average of the two -- so you are never billed by the clock. Cached prompt tokens are billed at $0.21 per 1M, set from what our upstream charges us rather than DeepSeek's cache-hit rate.
What the catalog says
DeepSeek V4 Pro is 60% cheaper on input ($0.80 against $2.00 per 1M tokens). DeepSeek V4 Pro is 60% cheaper on output ($2.39 against $6.00 per 1M tokens). Only DeepSeek V4 Pro has a cached-input discount on RouterPlex ($0.21 per 1M); Qwen4 Max Preview bills cached prompt tokens at its full input rate, which matters on repeated agent prompts. On the coding-agent session below, DeepSeek V4 Pro costs $0.90 against $4.60 for Qwen4 Max Preview. Both accept a 1M context window. DeepSeek V4 Pro can return up to 384K tokens per response, against 131K for Qwen4 Max Preview.
Generated from catalog prices, limits and capability flags. Price does not measure output quality.
Published benchmarks
Where real data exists.
Raw score as the source publishes it, percentile in brackets. Only rows with a cited source are shown; "Not listed" means the source has no entry for that model.
| Source / category | Qwen4 Max Preview | DeepSeek V4 Pro |
|---|---|---|
| overallLMArena Text Leaderboard | Not listed | 1457.8 (87) |
| codingLMArena Text Leaderboard | Not listed | 1501.8 (84) |
| reasoningLMArena Text Leaderboard | Not listed | 1445.1 (82) |
| writingLMArena Text Leaderboard | Not listed | 1444.5 (89) |
| generalLMArena Text Leaderboard | Not listed | 1453.2 (88) |
LMArena Text Leaderboard, version 2026-09-02, retrieved 2026-09-10. A leaderboard measures its own prompt set, not your workload.
Cheap tier
Qwen3.8 Flash vs DeepSeek V4.1 Flash
| Catalog field | Qwen3.8 Flash | DeepSeek V4.1 Flash |
|---|---|---|
| Provider | Alibaba | DeepSeek |
| Model ID | qwen3.8-flash | deepseek-v4.1-flash |
| Input / 1M | $0.15 | $0.18 |
| Output / 1M | $0.47 | $0.73 |
| Cached input / 1M | $0.016 | $0.065 |
| Context window | 1M (1,000,000 tokens) | 1M (1,000,000 tokens) |
| Max output | 131K tokens | 384K tokens |
| Image input | No | Yes |
| Tool calling | Yes | Yes |
| Reasoning | Yes | Yes |
| Long-prompt tier | None | None |
| Price basis | Vendor list price, 0% markup | Vendor list price, 0% markup |
- DeepSeek V4.1 Flash: DeepSeek prices this model by time of day: $0.15 input / $0.60 output per 1M tokens off-peak, and double that during peak hours (01:00-04:00 and 06:00-10:00 UTC, Monday to Friday). RouterPlex bills a single flat rate in between -- the time-weighted average of the two -- so you are never billed by the clock and never pay the peak rate for off-peak work.
What the catalog says
Qwen3.8 Flash is 17% cheaper on input ($0.15 against $0.18 per 1M tokens). Qwen3.8 Flash is 36% cheaper on output ($0.47 against $0.73 per 1M tokens). Qwen3.8 Flash is 75% cheaper on cached input ($0.016 against $0.065 per 1M tokens). On the coding-agent session below, Qwen3.8 Flash costs $0.13 against $0.25 for DeepSeek V4.1 Flash. Both accept a 1M context window. DeepSeek V4.1 Flash can return up to 384K tokens per response, against 131K for Qwen3.8 Flash. Only DeepSeek V4.1 Flash lists image input in the catalog; Qwen3.8 Flash does not.
Generated from catalog prices, limits and capability flags. Price does not measure output quality.
Worked cost examples
Same workload, both bills.
Each line multiplies the catalog rate per 1M tokens by the tokens shown. Cached tokens use the route's cached-input rate, or the full input rate when it has no cache discount. Reasoning tokens bill as output, so a model that thinks at length raises the output line beyond these figures.
40 requests of 50K prompt tokens, 80% of each prompt a cache hit, 2.5K output each.
0.4M input x $2.00 + 1.6M cached x $2.00 + 0.1M output x $6.00 = $4.60
0.4M input x $0.80 + 1.6M cached x $0.21 + 0.1M output x $2.39 = $0.90
0.4M input x $0.15 + 1.6M cached x $0.016 + 0.1M output x $0.47 = $0.13
0.4M input x $0.18 + 1.6M cached x $0.065 + 0.1M output x $0.73 = $0.25
10,000 conversations of 2K prompt tokens and 500 output tokens, no caching.
20M input x $2.00 + 5M output x $6.00 = $70.00
20M input x $0.80 + 5M output x $2.39 = $27.95
20M input x $0.15 + 5M output x $0.47 = $5.35
20M input x $0.18 + 5M output x $0.73 = $7.25
200 requests of 150K prompt tokens and 2K output tokens, no caching.
30M input x $2.00 + 0.4M output x $6.00 = $62.40
30M input x $0.80 + 0.4M output x $2.39 = $24.96
30M input x $0.15 + 0.4M output x $0.47 = $4.69
30M input x $0.18 + 0.4M output x $0.73 = $5.69
Switching
One key, one line.
Both models sit behind the same RouterPlex key and the same OpenAI-compatible endpoint. Keep the request shape and change the model string. Claude Code and the Anthropic SDK use the same ids on https://api.routerplex.com.
Read the quickstartimport osfrom openai import OpenAIclient = OpenAI(base_url="https://api.routerplex.com/v1",api_key=os.environ["ROUTERPLEX_API_KEY"],)reply = client.chat.completions.create(model="qwen4-max-preview", # switch: "deepseek-v4-pro"messages=[{"role": "user", "content": "Hello!"}],)print(reply.choices[0].message.content)
# Qwen4 Max Previewcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "qwen4-max-preview", "messages": [{"role": "user", "content": "Hello!"}]}'# DeepSeek V4 Pro: same request, one field changedcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "deepseek-v4-pro", "messages": [{"role": "user", "content": "Hello!"}]}'
Questions
Before you pick one of the two.
01Is Qwen cheaper than DeepSeek?+
At the flagship tier, Qwen4 Max Preview costs $2.00 / $6.00 per 1M input / output tokens and DeepSeek V4 Pro costs $0.80 / $2.39. A coding-agent session comes to $4.60 on Qwen4 Max Preview and $0.90 on DeepSeek V4 Pro. At the cheap tier, Qwen3.8 Flash ($0.15 / $0.47) meets DeepSeek V4.1 Flash ($0.18 / $0.73): $0.13 against $0.25 for the same session.
02Which Qwen models can I use on RouterPlex?+
Qwen3.8 Flash (qwen3.8-flash, $0.15 / $0.47), Qwen3.6 Flash (qwen3.6-flash, $0.25 / $1.50), Qwen3.7 Plus (qwen3.7-plus, $0.32 / $1.28), Qwen3.8 Max (qwen3.8-max, $2.00 / $6.00), Qwen3.8 Max 0902 (qwen3.8-max-0902, $2.00 / $6.00), Qwen4 Max Preview (qwen4-max-preview, $2.00 / $6.00), Qwen3.7 Max (qwen3.7-max, $2.50 / $7.50). This page treats Qwen4 Max Preview as the Qwen flagship (the newest full-size version in the catalog) and Qwen3.8 Flash as the cheap model (lowest cost on a 100K-input, 10K-output turn).
03Which DeepSeek models can I use on RouterPlex?+
DeepSeek V4.1 Flash (deepseek-v4.1-flash, $0.18 / $0.73), DeepSeek V4.1 Flash 1017 (deepseek-v4.1-flash-1017, $0.18 / $0.73), DeepSeek V4 Pro (deepseek-v4-pro, $0.80 / $2.39), DeepSeek V4 Pro 0813 (deepseek-v4-pro-0813, $0.80 / $2.39). This page treats DeepSeek V4 Pro as the DeepSeek flagship (the newest full-size version in the catalog) and DeepSeek V4.1 Flash as the cheap model (lowest cost on a 100K-input, 10K-output turn).
04Does Qwen or DeepSeek have the larger context window?+
The flagships match at 1M: Qwen4 Max Preview and DeepSeek V4 Pro both accept 1M tokens.
05Can I use Qwen and DeepSeek with the same API key?+
Yes. Every model on this page runs on one RouterPlex key through the OpenAI-compatible endpoint https://api.routerplex.com/v1 and the Anthropic-compatible /v1/messages. Switching between Qwen and DeepSeek is a one-line change of the model id, for example "qwen4-max-preview" to "deepseek-v4-pro".
Model pages
Provider pricing
Try both
Both models behind one key.
Top up from $5 with no subscription, then send the same prompt to each.