Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Deepseek
Deepseek

Claude Sonnet 4 vs DeepSeek V3.1

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

114 out of our 303 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Claude Sonnet 4 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Supports vision
  • Has reasoning mode

DeepSeek V3.1 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Better at math
Price Advantage
DeepSeek V3.1
Benchmark Advantage
Claude Sonnet 4
Context Window
Claude Sonnet 4
Speed
Claude Sonnet 4

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4DeepSeek V3.1Winner
Input (per 1M tokens)$3.00$0.15 DeepSeek V3.1
Output (per 1M tokens)$15.00$0.75 DeepSeek V3.1
Cache Read (per 1M)$0.30N/A Claude Sonnet 4
Cache Write (per 1M)$3.75N/A Claude Sonnet 4
Using a 3:1 input/output ratio, DeepSeek V3.1 is 95% cheaper overall.

Claude Sonnet 4 Providers

Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)

DeepSeek V3.1 Providers

Chutes $0.20 (Cheapest)
DeepInfra $0.21
SiliconFlow $0.27
Novita $0.27
AtlasCloud $0.30

Benchmark Comparison

8
Benchmarks Compared
2
Claude Sonnet 4 Wins
3
DeepSeek V3.1 Wins

Benchmark Scores

BenchmarkClaude Sonnet 4DeepSeek V3.1Winner
Intelligence Index
Overall intelligence score
33.028.1
Coding Index
Code generation & understanding
30.628.4
Math Index
Mathematical reasoning
38.049.7
MMLU Pro
Academic knowledge
83.783.3-
GPQA
Graduate-level science
68.373.5
LiveCodeBench
Competitive programming
44.957.7
Aider
Real-world code editing
61.3--
AIME
Competition math
40.7--
DeepSeek V3.1 shows stronger mathematical reasoning abilities.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Claude Sonnet 4
Other models

Context & Performance

Context Window

Claude Sonnet 4
1,000,000
tokens
Max output: 64,000 tokens
DeepSeek V3.1
32,768
tokens
Max output: 7,168 tokens
Claude Sonnet 4 has a 97% larger context window.

Speed Performance

MetricClaude Sonnet 4DeepSeek V3.1Winner
Tokens/second69.8 tok/s0.0 tok/s
Time to First Token1.17s0.00s
Claude Sonnet 4 responds Infinity% faster on average.

Capabilities

Feature Comparison

FeatureClaude Sonnet 4DeepSeek V3.1
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyClaude Sonnet 4DeepSeek V3.1
LicenseProprietaryOpen Source
AuthorAnthropicDeepseek
ReleasedMay 2025Aug 2025

Claude Sonnet 4 Modalities

Input
imagetextfile
Output
text

DeepSeek V3.1 Modalities

Input
text
Output
text

Related Comparisons

Compare Claude Sonnet 4 with:

Compare DeepSeek V3.1 with:

Frequently Asked Questions

DeepSeek V3.1 has cheaper input pricing at $0.15/M tokens. DeepSeek V3.1 has cheaper output pricing at $0.75/M tokens.
Claude Sonnet 4 scores higher on coding benchmarks with a score of 30.6, compared to DeepSeek V3.1's score of 28.4.
Claude Sonnet 4 has a 1,000,000 token context window, while DeepSeek V3.1 has a 32,768 token context window.
Claude Sonnet 4 supports vision. DeepSeek V3.1 does not support vision.