Model comparison

DeepSeek V4 Pro vs Claude Sonnet 5 API price, context and cost.

DeepSeek V4 Pro (DeepSeek) and Claude Sonnet 5 (Anthropic) side by side: per-1M prices, cached-input rates, context, output limits and capability flags from the live RouterPlex catalog, with three worked costs. A coding-agent session costs $0.90 on DeepSeek V4 Pro and $2.28 on Claude Sonnet 5. Both run on one prepaid key with the same OpenAI-compatible request.

Catalog rates17 November 2026
DeepSeek V4 Pro$0.80 / $2.39
Claude Sonnet 5$2.00 / $10.00
Input / output per 1M tokens

Side by side

Catalog fields, one row each.

Catalog fieldDeepSeek V4 ProClaude Sonnet 5
ProviderDeepSeekAnthropic
Model IDdeepseek-v4-proclaude-sonnet-5
Input / 1M$0.80$2.00
Output / 1M$2.39$10.00
Cached input / 1M$0.21$0.30
Context window1M (1,000,000 tokens)1M (1,000,000 tokens)
Max output384K tokens128K tokens
Image inputNoYes
Tool callingYesYes
ReasoningYesYes
Long-prompt tierNoneNone
Price basisVendor list price, 0% markupVendor list price, 0% markup
  • 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.
  • Claude Sonnet 5: Anthropic list price. The $2 input / $10 output rate was announced as introductory through August 31, 2026; Anthropic has since made it the standard price and cancelled the planned rise to $3 / $15. Cached prompt tokens are billed at $0.30 per 1M (Anthropic lists $0.20): our rate is set from what our upstream charges us, not from the lab's cache price.

What the catalog says

DeepSeek V4 Pro is 60% cheaper on input ($0.80 against $2.00 per 1M tokens). DeepSeek V4 Pro is 76% cheaper on output ($2.39 against $10.00 per 1M tokens). DeepSeek V4 Pro is 30% cheaper on cached input ($0.21 against $0.30 per 1M tokens). On the coding-agent session below, DeepSeek V4 Pro costs $0.90 against $2.28 for Claude Sonnet 5. Both accept a 1M context window. DeepSeek V4 Pro can return up to 384K tokens per response, against 128K for Claude Sonnet 5. Only Claude Sonnet 5 lists image input in the catalog; DeepSeek V4 Pro does not.

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 / categoryDeepSeek V4 ProClaude Sonnet 5
overallLMArena Text Leaderboard1457.8 (87)Not listed
codingLMArena Text Leaderboard1501.8 (84)Not listed
reasoningLMArena Text Leaderboard1445.1 (82)Not listed
writingLMArena Text Leaderboard1444.5 (89)Not listed
generalLMArena Text Leaderboard1453.2 (88)Not listed

LMArena Text Leaderboard, version 2026-09-02, retrieved 2026-09-10. A leaderboard measures its own prompt set, not your workload. See the head-to-head benchmark page.

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.

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

Claude Sonnet 5$2.28

0.4M input x $2.00 + 1.6M cached x $0.30 + 0.1M output x $10.00 = $2.28

Chat app, one month

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

DeepSeek V4 Pro$27.95

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

Claude Sonnet 5$90.00

20M input x $2.00 + 5M output x $10.00 = $90.00

Long-document Q&A batch

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

DeepSeek V4 Pro$24.96

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

Claude Sonnet 5$64.00

30M input x $2.00 + 0.4M output x $10.00 = $64.00

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="deepseek-v4-pro", # switch: "claude-sonnet-5"
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
curl /chat/completions
# DeepSeek V4 Pro
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!"}]}'
 
# Claude Sonnet 5: 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": "claude-sonnet-5", "messages": [{"role": "user", "content": "Hello!"}]}'

Questions

Before you pick one of the two.

Answers computed from the catalog
01Is DeepSeek V4 Pro cheaper than Claude Sonnet 5?+

DeepSeek V4 Pro costs $0.80 input and $2.39 output per 1M tokens on RouterPlex; Claude Sonnet 5 costs $2.00 and $10.00. On a coding-agent session (40 requests of 50K prompt tokens, 80% of each prompt a cache hit, 2.5K output each) DeepSeek V4 Pro comes to $0.90 and Claude Sonnet 5 to $2.28, so DeepSeek V4 Pro is cheaper for that workload. A chat app month (10,000 conversations of 2K prompt tokens and 500 output tokens, no caching) costs $27.95 on DeepSeek V4 Pro and $90.00 on Claude Sonnet 5.

02Which has the larger context window, DeepSeek V4 Pro or Claude Sonnet 5?+

They match: both accept 1M tokens of context on RouterPlex. Maximum output is 384K for DeepSeek V4 Pro and 128K for Claude Sonnet 5.

03Do DeepSeek V4 Pro and Claude Sonnet 5 support image input and tool calling?+

Per the RouterPlex catalog, DeepSeek V4 Pro: tool calling, reasoning. Claude Sonnet 5: image input, tool calling, reasoning. These flags come from the labs' published model metadata, not from a quality test.

04How do I switch from DeepSeek V4 Pro to Claude Sonnet 5?+

Change one string. Both run on the same RouterPlex key and the same OpenAI-compatible endpoint (https://api.routerplex.com/v1), so the request stays identical and only model changes from "deepseek-v4-pro" to "claude-sonnet-5". The same ids work on the Anthropic-compatible /v1/messages endpoint for Claude Code.

05What do benchmarks say about DeepSeek V4 Pro vs Claude Sonnet 5?+

LMArena Text Leaderboard (2026-09-02, retrieved 2026-09-10) lists an overall score of 1457.8 for DeepSeek V4 Pro and no entry for Claude Sonnet 5. A public leaderboard measures its own prompt set; test both on your prompts before moving traffic.

06When is Claude Sonnet 5 worth the higher price?+

When the task needs image input, which Claude Sonnet 5 offers and DeepSeek V4 Pro does not per the catalog. Otherwise the reason to pay more is output you prefer on your own prompts; this page does not rank quality, so run both in the RouterPlex Arena before moving traffic.

Try both

Both models behind one key.

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

DeepSeek V4 Pro vs Claude Sonnet 5: API Pricing · RouterPlex