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.

Catalog rates17 November 2026
Qwen4 Max Preview$2.00 / $6.00
DeepSeek V4 Pro$0.80 / $2.39
Qwen3.8 Flash$0.15 / $0.47
DeepSeek V4.1 Flash$0.18 / $0.73
Input / output per 1M tokens

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.

ModelRoleContextInput / 1MOutput / 1MImage input
Qwen / Alibaba
Qwen3.8 Flash

qwen3.8-flash

Cheap pick1M$0.15$0.47No
Qwen3.6 Flash

qwen3.6-flash

1M$0.25$1.50Yes
Qwen3.7 Plus

qwen3.7-plus

1M$0.32$1.28Yes
Qwen3.8 Max

qwen3.8-max

1M$2.00$6.00Yes
Qwen3.8 Max 0902

qwen3.8-max-0902

1M$2.00$6.00Yes
Qwen4 Max Preview

qwen4-max-preview

Flagship1M$2.00$6.00No
Qwen3.7 Max

qwen3.7-max

1M$2.50$7.50No
DeepSeek / DeepSeek
DeepSeek V4.1 Flash

deepseek-v4.1-flash

Cheap pick1M$0.18$0.73Yes
DeepSeek V4.1 Flash 1017

deepseek-v4.1-flash-1017

1M$0.18$0.73Yes
DeepSeek V4 Pro

deepseek-v4-pro

Flagship1M$0.80$2.39No
DeepSeek V4 Pro 0813

deepseek-v4-pro-0813

1M$0.80$2.39No

Flagship tier

Qwen4 Max Preview vs DeepSeek V4 Pro

Catalog fieldQwen4 Max PreviewDeepSeek V4 Pro
ProviderAlibabaDeepSeek
Model IDqwen4-max-previewdeepseek-v4-pro
Input / 1M$2.00$0.80
Output / 1M$6.00$2.39
Cached input / 1MBilled at input rate$0.21
Context window1M (1,000,000 tokens)1M (1,000,000 tokens)
Max output131K tokens384K tokens
Image inputNoNo
Tool callingYesYes
ReasoningYesYes
Long-prompt tierNoneNone
Price basisRouterPlex-set rateVendor 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 / categoryQwen4 Max PreviewDeepSeek V4 Pro
overallLMArena Text LeaderboardNot listed1457.8 (87)
codingLMArena Text LeaderboardNot listed1501.8 (84)
reasoningLMArena Text LeaderboardNot listed1445.1 (82)
writingLMArena Text LeaderboardNot listed1444.5 (89)
generalLMArena Text LeaderboardNot listed1453.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 fieldQwen3.8 FlashDeepSeek V4.1 Flash
ProviderAlibabaDeepSeek
Model IDqwen3.8-flashdeepseek-v4.1-flash
Input / 1M$0.15$0.18
Output / 1M$0.47$0.73
Cached input / 1M$0.016$0.065
Context window1M (1,000,000 tokens)1M (1,000,000 tokens)
Max output131K tokens384K tokens
Image inputNoYes
Tool callingYesYes
ReasoningYesYes
Long-prompt tierNoneNone
Price basisVendor list price, 0% markupVendor 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.

Coding-agent session

40 requests of 50K prompt tokens, 80% of each prompt a cache hit, 2.5K output each.

Qwen4 Max Preview$4.60

0.4M input x $2.00 + 1.6M cached x $2.00 + 0.1M output x $6.00 = $4.60

DeepSeek V4 Pro$0.90

0.4M input x $0.80 + 1.6M cached x $0.21 + 0.1M output x $2.39 = $0.90

Qwen3.8 Flash$0.13

0.4M input x $0.15 + 1.6M cached x $0.016 + 0.1M output x $0.47 = $0.13

DeepSeek V4.1 Flash$0.25

0.4M input x $0.18 + 1.6M cached x $0.065 + 0.1M output x $0.73 = $0.25

Chat app, one month

10,000 conversations of 2K prompt tokens and 500 output tokens, no caching.

Qwen4 Max Preview$70.00

20M input x $2.00 + 5M output x $6.00 = $70.00

DeepSeek V4 Pro$27.95

20M input x $0.80 + 5M output x $2.39 = $27.95

Qwen3.8 Flash$5.35

20M input x $0.15 + 5M output x $0.47 = $5.35

DeepSeek V4.1 Flash$7.25

20M input x $0.18 + 5M output x $0.73 = $7.25

Long-document Q&A batch

200 requests of 150K prompt tokens and 2K output tokens, no caching.

Qwen4 Max Preview$62.40

30M input x $2.00 + 0.4M output x $6.00 = $62.40

DeepSeek V4 Pro$24.96

30M input x $0.80 + 0.4M output x $2.39 = $24.96

Qwen3.8 Flash$4.69

30M input x $0.15 + 0.4M output x $0.47 = $4.69

DeepSeek V4.1 Flash$5.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 quickstart
OpenAI SDK (Python)
import os
from openai import OpenAI
 
client = 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)
curl /chat/completions
# Qwen4 Max Preview
curl 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 changed
curl 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.

Answers computed from the catalog
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".

Try both

Both models behind one key.

Top up from $5 with no subscription, then send the same prompt to each.