All posts

DeepSeek V4 Alters Everything We Knew About Price-Performance Math

DeepSeek dropped two open-weight models engineers have been waiting on for months.

DeepSeek’s V4-Pro and Flash models are being run in production around the world, including here at the Lightning AI. The initial review from one of our optimization engineers is “Coding is the main application I use it for - and it’s good.”

DeepSeek V4 Pro is now available on Lightning
DeepSeek V4 Pro is now available on Lightning

The tech report backs up the applause: V4-Pro scores 80.6% on SWE-bench Verified, putting it within 0.2 points of Claude Opus 4.6 at $3.48 per million output tokens versus Claude's $25. (If you’re a matrix person, scroll down for the comparison chart).

V4-Pro is the high-intelligence model. V4-Flash, as the name implies, is built for speed:

  • DeepSeek-V4-Pro: 1.6T total parameters, 49B activated, built for deep reasoning and agentic coding
  • DeepSeek-V4-Flash: 284B total parameters, 13B activated, built for speed and high-volume pipelines

Both support a 1 million token context window as a standard feature.

Improvements for DeepSeek V4

DeepSeek’s previous release, V3.2, was an economical darling for simple pipelines. It was a strong model when it came out, but V4 Pro, which is available now on the Lightning AI platform, puts DeepSeek back on the map with the following improvements:

  • Context window: 128K → 1M tokens. V3.2's 128K window is generous for most tasks but forces chunking on large codebases, long documents, and multi-file agent workflows. V4 supports 1M tokens as the standard.
  • KV cache: baseline → 10% of V3.2. At long context lengths, V3.2's standard attention mechanism required significant memory to maintain the KV cache. V4's hybrid Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) architecture reduces that footprint to 10% of what V3.2 needed at the same context length. That's what makes the 1M window economically viable to run.
  • Inference FLOPs: baseline → 27% of V3.2. At 1M tokens, V3.2 required the full compute cost of its standard attention layers. V4-Pro performs the same single-token inference at 27% of those FLOPs. Lower compute per token is directly why the per-token pricing can stay competitive even at massive context scales.
  • Reasoning across tool calls: stateless → persistent. V3.2 flushed its reasoning context between tool invocations. In a multi-step agent (searches, runs code, queries a database, then synthesizes), each new tool call started reasoning from scratch. V4 retains its chain-of-thought across the full workflow. A 20-step pipeline in V4 doesn't lose context halfway through like V3.2 did.
  • SWE-bench Verified: ~69% → 80.6% (Pro) / 79.0% (Flash). The practical coding benchmark improvement is significant. V3.2 was competitive for its price. V4-Pro is competitive with the frontier.

The Comparison That Matters

Here's a key feature and capabilities breakdown across four models you're probably exploring right now:

DeepSeek V4-ProDeepSeek V4-FlashDeepSeek V3.2Claude Opus 4.6
Context Window1M tokens1M tokens128K tokens1M tokens
Input Price (per 1M)$1.74 (cache miss) / $0.145 (cache hit)$0.14 (cache miss) / $0.028 (cache hit)$0.28 / $0.028 (cache hit)$5.00 / $0.50 (cache hit)
Output Price (per 1M)$3.48$0.28$0.42$25.00
Open Weights✅ MIT License✅ MIT License✅ MIT License❌
Speed (approx.)~33 tokens/sec~60+ tokens/sec~35 tokens/secModerate
SWE-bench Verified80.6%79.0%~69%80.8%
LiveCodeBench93.5%91.6%—88.8%
Codeforces Rating32063052—No reported score
Terminal Bench 2.067.9%56.9%—65.4%
GPQA Diamond90.1%88.1%—91.3%

Pricing sourced from official DeepSeek API docs and Anthropic pricing page as of April 24, 2026. Benchmark scores from DeepSeek V4 technical report (Max reasoning mode).

When to Use Each Model

Use Case: DeepSeek V4-Pro

Use V4-Pro when running complex agent workflows, deep codebase analysis, or multi-step reasoning tasks where you need near-frontier performance without paying frontier prices. 

Three reasons it wins here: 

  1. it beats Claude Opus 4.6 on LiveCodeBench (93.5% vs 88.8%) and Terminal Bench 2.0 (67.9% vs 65.4%),
  2. reasoning state persists across tool calls so long agent pipelines don't degrade mid-run, and
  3. the 1M context window means you can pass an entire large codebase without chunking it.

Use Case: DeepSeek V4-Flash

Use this when running high-volume pipelines, RAG systems, or anything that needs fast throughput at very low cost. While not served directly on Lightning AI's model marketplace today, it's MIT-licensed with open weights on Hugging Face. 

Three reasons it wins here: 

  1. output tokens are $0.28/M. That's nearly 90x cheaper than Claude Opus 4.6 for applications where Flash-tier quality is sufficient, 
  2. it still hits 79% SWE-bench Verified and 91.6% LiveCodeBench, which is genuinely strong for the price class, and 
  3.  with cache-hit pricing at $0.028/M input, repeated-context workloads like support agents or document pipelines become extremely cheap to run at scale.

Use Case: DeepSeek V3.2 

Use for proven stability without a 1M context window for general-purpose tasks such as classification, extraction, summarization, simple Q&A. 

Three reasons it wins here: 

  1. $0.28 input / $0.42 output is near the floor for frontier-class models, 
  2. it's a battle-tested model with a known performance profile you can predict, and 
  3. for simple pipelines that don't need V4's architectural improvements, paying even V4-Flash's prices is unnecessary overhead.

Use Case: Claude Opus 4.6 

Use Anthropic’s Claude Opus 4.6 for maximum reliability on safety-sensitive enterprise workflows, nuanced instruction-following across long conversations, or within orgs that are already deeply relying on Anthropic tooling. 

Three reasons it wins here (even with the cost): 

  1. it leads on GPQA Diamond (91.3% vs V4-Pro's 90.1%) and holds a narrow edge on SWE-bench Verified (80.8% vs 80.6%), 
  2. Anthropic's infrastructure provides stronger SLA guarantees and regional data residency options than DeepSeek's API currently offers, and 
  3. Claude's instruction-following and refusal behavior is more predictable for regulated industries.

DeepSeek V4: What the Headlines Don’t Show

Self-hosting changes the math entirely

All three DeepSeek models are MIT-licensed open weights. On Lightning AI, you can deploy them privately so your data never hits DeepSeek's servers. For teams with data sensitivity concerns, this is the point where V4-Pro stops being a "cheaper alternative" and becomes the obvious default.

Cache hit ratios flip the pricing table

In production, consistent system prompts, tool definitions, and document contexts are rewarded with a cache-hit input price drop to $0.145/M on the Pro model. Design your prompts with shared prefixes and the effective cost looks very different from the headline numbers.

Text-only for now 

V4 is text/code in, text out. If your pipeline requires vision, image generation, or multimodal inputs, you'll need a different model or a hybrid approach. DeepSeek has indicated multimodal capabilities are on the roadmap.

The Flash vs Pro gap closes with thinking budget

For tasks where you can tolerate latency, DeepSeek's own benchmarks show V4-Flash in Think Max mode approaching V4-Pro performance. If your use case isn't latency-sensitive, Flash at Pro-level thinking is the most economical path to near-frontier reasoning.

Try It Now on Lightning AI

Lightning AI now lets you evaluate which open models are right for you with one API and no credit card required. Explore our model library today.