DeepSeek V4-Flash API pricing: 79% SWE-bench at $0.14/1M

DeepSeek V4-Flash sits in a position most models can't: near-Sonnet coding performance (79% SWE-bench) at near-GPT-Mini prices ($0.14/1M input). It's MIT-licensed, self-hostable, and 21× cheaper than Claude Sonnet 4.6 for similar coding benchmark numbers. The question for most teams is not whether the price is real — it is — but whether quality holds on their specific task distribution.

By the benchr team · · Figures verified against official sources, June 6, 2026 · View changelog

Input / 1MDeepSeek API
Output / 1MDeepSeek API
SWE-benchverified
Contextmax window

Pricing breakdown

deepseek-v4-flash — official DeepSeek API pricing
TierRate / 1M tokens
Standard input$0.14
Standard output$0.28
Cached input$0.0028
Context window1,000,000 tokens

The cost-quality position

DeepSeek V4-Flash scores 79% on SWE-bench Verified — within 0.6 points of Claude Sonnet 4.6's 79.6%, and 4+ points above Claude Haiku 4.5's 73.3%. The pricing differential is staggering: Sonnet 4.6 costs $3/1M input (21× more), Haiku 4.5 costs $1/1M (7× more). On paper, V4-Flash delivers Sonnet-tier coding at Haiku-or-cheaper prices. The practical caveat is that SWE-bench is a benchmark, not a guarantee of performance on your specific task distribution — run your own eval before switching production traffic.

MIT license and self-hosting

DeepSeek V4-Flash weights are MIT licensed — fully open source and commercially usable without restriction. For teams with A100 or H100 GPU access, self-hosting eliminates API costs entirely. At $0.14/1M via the API, the breakeven point for self-hosting is at sustained high volume — roughly 500M+ tokens/month where infrastructure costs begin to rival API fees. Below that threshold, the API is usually cheaper than maintaining dedicated GPU capacity. Above that volume, self-hosting provides cost certainty and eliminates data residency concerns.

Cache pricing: $0.0028 per million

DeepSeek V4-Flash cached input costs $0.0028/1M — 98% off the $0.14 standard rate. For agentic pipelines with large, repeated system prompts, the effective input cost with high cache utilization is approximately $0.017 per million at a 90% hit rate. At this price, input cost becomes essentially negligible for most pipeline designs.

Cost scenarios

At 50M input + 15M output per month: $7 + $4.20 = $11.20/month. Claude Sonnet 4.6 at the same volume: $150 + $225 = $375/month — 33× more expensive. At 500M input + 150M output — large production scale: DeepSeek V4-Flash at $70 + $42 = $112/month. The cost savings compared to Sonnet at scale ($1,500 + $2,250 = $3,750) are not marginal — they're transformative for cost-constrained engineering teams.

Use-case fit

Best for: High-volume coding automation where 79% SWE-bench is sufficient; cost-sensitive startups where Sonnet pricing is prohibitive; self-hosted deployments on existing GPU infrastructure; batch processing pipelines where latency to China doesn't matter.

Skip if: Latency to DeepSeek's China-based API is a constraint for real-time user-facing applications. Also skip when frontier coding quality (88%+ SWE-bench) is required — DeepSeek V4-Pro at $0.43/1M or Claude Opus 4.8 at $5/1M are the appropriate upgrades.

Decision checklist

Before switching production coding traffic to V4-Flash: run a 100-task blind eval on your specific coding task distribution and compare pass rates against Claude Sonnet 4.6. SWE-bench measures overall coding ability; your specific task mix may show a larger or smaller quality gap than the benchmark suggests.

Consider your data residency requirements: DeepSeek's API routes through Chinese infrastructure. For EU GDPR or US government workloads with data locality requirements, use a US-hosted inference provider or self-host on your own infrastructure.

Frequently asked

How does DeepSeek V4-Flash compare to DeepSeek V4-Pro?

V4-Flash at $0.14/1M is 67% cheaper than V4-Pro at $0.43/1M. V4-Pro scores ~84% SWE-bench vs V4-Flash at 79% — a 5-point gap. V4-Flash handles most coding tasks at lower cost; V4-Pro is the step-up when frontier coding quality matters.

What is the MIT license on DeepSeek V4-Flash?

MIT — fully permissive. Download weights, self-host, modify commercially, no restrictions. For teams with GPU infrastructure, self-hosting eliminates API costs at the cost of infrastructure management. Breakeven vs API typically at 500M+ tokens/month.

How does DeepSeek V4-Flash compare to Claude Sonnet 4.6 for coding?

DeepSeek V4-Flash at $0.14/1M vs Sonnet 4.6 at $3/1M — 21× cheaper. SWE-bench: DeepSeek V4-Flash 79% vs Sonnet 4.6 at 79.6% — 0.6 points apart. The cost-quality ratio strongly favors V4-Flash if your task eval confirms comparable quality on your specific distribution.

Changelog

  • — Expanded with cost-quality analysis, MIT license implications, self-hosting economics, and cost scenarios.
  • — Published. Pricing verified at platform.deepseek.com.

Sources

  • DeepSeek API pricing — platform.deepseek.com (verified June 6, 2026)
  • SWE-bench Verified leaderboard — swebench.com (verified June 6, 2026)
  • benchr models.json — verified June 6, 2026