Product Launch · Decoded by Xiaohu

DeepSeek-V4-Flash is now generally available: native Codex support, beats its own larger V4-Pro, and output costs 89× less than Opus 4.8

The same model weights beat the larger V4-Pro preview across all nine agent benchmarks — only the final training stage changed.
The 60-second takeaway
  • It beats its own larger V4-Pro on all nine agent benchmarks, by as much as 4× on the biggest gap — though who ran the numbers is worth a closer look.
  • Output costs $0.28 per million tokens, vs. $25 for Claude Opus 4.8. There's also a footnote at the bottom of the price page worth reading.
  • One command swaps out the model behind Codex. Your existing setup stays untouched.
⚑ Benchmark data comes from two sources: the five-column comparison table is from DeepSeek's official release materials (vendor self-reported), while Artificial Analysis' scores come from independent third-party testing. Both are labeled separately in the article, with discrepancies called out where they appear.
Release

API graduates to general availability — no changes needed on your end

DeepSeek's V4-Flash has officially left preview. Public beta started July 31, under version number 0731.

The most practically useful change: it can now plug directly into Codex. One command swaps Codex's underlying model to DeepSeek, and your existing configuration stays exactly as it is.

Second is the price. Output costs $0.28 per million tokens; the same amount from Claude Opus 4.8 runs $25.

Third, the model weights are now open under the MIT License, so anyone can self-host.

If you're already calling the DeepSeek API, no code changes needed: the endpoint stays the same, model is still deepseek-v4-flash, and you'll automatically get the new version.

UNCHANGED NEW IN THIS RELEASE API endpoint api.deepseek.com, unchanged Model name deepseek-v4-flash gets the new version Model size 284B total, 13B active, 1M context Responses API The interface format Codex uses Codex support One command, works across clients Open weights MIT License, self-hostable Only the V4-Flash API changed. The V4-Pro API, and the models behind the DeepSeek App and website, are untouched.
The three items on the left stay the same; the three on the right are what graduation brings. Chart by this site, based on official release materials.

One boundary worth drawing clearly: this release only touches the V4-Flash line. The V4-Pro API hasn't changed, and neither have the models behind the DeepSeek App or the web version. For a V4-Pro general release, the official word is "coming soon."

Benchmarks

Beats the larger V4-Pro on all nine agent tests

So how much better is it than the previous version? DeepSeek published a comparison table covering nine agent-focused benchmarks.

DeepSeek's official five-column comparison table across nine agent benchmarks
From left: the 0731 GA release, the April preview, then their own larger V4-Pro preview. The two rows marked † come from DeepSeek's internal test sets, which can't be reproduced externally. Image source: DeepSeek.

All nine benchmarks beat the V4-Pro preview: DeepSWE 54.4 vs. 12.8, DSBench-Hard 59.6 vs. 31.1, Cybergym 76.7 vs. 52.7. Even the narrowest gap, on Agents' Last Exam, is 8.7 points. V4-Pro is a 1.6-trillion-parameter model; Flash has 284B.

The same table also shows all nine scores coming in below Claude Opus 4.8 — a detail missing from the release materials. The smallest gaps are on Agents' Last Exam (0.5) and Terminal Bench (2.3); the largest are on NL2Repo (15.5) and DSBench-Hard (12.1).

The biggest jump is DeepSWE, from 7.3 in the preview to 54.4 now.

Verification

A third party runs the same benchmark — Opus holds steady, DeepSeek drops 3.7

The table above is DeepSeek's own. Independent testing firm Artificial Analysis ran its own evaluation on the same day, and one number doesn't line up.

TERMINAL-BENCH 2.1, ONE BENCHMARK, TWO RULERS Claude Opus 4.8 DeepSeek's measurement 85.0 Third-party measurement 85 MATCH DeepSeek V4-Flash 0731 DeepSeek's measurement 82.7 Third-party measurement 79 GAP: 3.7 Top group: both rulers agree. Bottom group: DeepSeek's own ruler comes up longer. The discrepancy appears only in DeepSeek's own row.
Chart by this site, based on DeepSeek's official release materials and Artificial Analysis' public results.

On Terminal-Bench, Claude Opus 4.8 scores 85 on both rulers. The V4-Flash 0731, however, gets 82.7 from DeepSeek and 79 from the third party. The official footnote explains that the Code Agent tasks in these nine benchmarks use a DeepSeek-internal harness that hasn't been released — unavailable externally and impossible to reproduce. Agent benchmark scores lean heavily on this harness layer; we've covered an example where swapping only the harness, not the model, pushed ARC-AGI-3 scores to 99%.

Related on this site

A new harness alone: pushing Opus 4.8 and Fable 5 to 99% on ARC-AGI-3

The third party's remaining numbers confirm the size of this upgrade (and, for what it's worth, the same leaderboard shows GLM-5.2 at 51 — one point above Flash 0731, a different story from the official table's clean sweep over GLM):

50
AA Intelligence Index. Up from 40 for the previous generation; the in-house V4-Pro sits at 44; Claude Opus 4.8 is at 56
1559
Real-World Task Elo, with 1000 as the human baseline. Previous generation: 1189. The in-house V4-Pro: only 1306
−12%
Output tokens used to finish the same eval suite, relative to the previous generation

It's also the smallest model in its class: for every token processed, V4-Flash activates fewer than a third of GLM-5.2's active parameters and an eighth of Kimi K3's.

ACTIVE PARAMETERS PER TOKEN DeepSeek V4-Flash Intelligence Index 50 13B GLM-5.2 Intelligence Index 51 ~40B Kimi K3 Intelligence Index 57 104.2B Bar lengths are proportional to active parameters; Intelligence Index is each model's peak score on Artificial Analysis
Active parameters are the portion actually used to process each token. GLM-5.2's figure is from public materials, Kimi K3's from its tech report, V4-Flash's from the official model card. Chart by this site.
Related on this site

Kimi K3 tech report: a 2.8T-parameter model that uses three architectural changes to stretch compute efficiency 2.5×

Pricing

Input is 35× cheaper than Claude Opus 4.8; output is 89× cheaper

Capabilities are roughly mapped out — now what does it cost? Here are the three tiers from the official pricing page, in per-million-token units. The Claude Opus 4.8 column is from Anthropic's official pricing, included for reference.

Per million tokensV4-FlashV4-ProClaude Opus 4.8
Input (cache miss)$0.14$0.435$5.00
Input (cache hit)$0.0028$0.003625
Output$0.28$0.87$25.00
Concurrency limit2500500
Data from DeepSeek's official pricing page and Anthropic's official pricing page.

In multiples: input is 35× cheaper per million tokens, output 89×. Against its own V4-Pro, Flash's input and output prices are both under a third, while its concurrency ceiling is 5× higher.

PER-MILLION OUTPUT TOKEN PRICE, TO SCALE Claude Opus 4.8 $25.00 DeepSeek V4-Pro $0.87 DeepSeek V4-Flash $0.28 The nearly invisible dark sliver at the bottom is what a million tokens of output actually costs
The three bars are drawn to true scale, not compressed. Chart by this site.

Three easy-to-miss perks

The price didn't go up. 0731's pricing is identical to the April preview — significantly better capabilities, same price sheet.

Cache hits drop to a fraction of a discount. When you resend the same opening context, results from the previous run are reused, and that portion costs just $0.0028 — one-fiftieth of the miss price, a 98% discount. Artificial Analysis calls this out specifically: most of the industry offers a 90% cache discount; DeepSeek gives 98%. It's a major reason per-task costs stay this low. And for the repeated codebase queries that are Codex's everyday rhythm, hit rates are naturally high.

It also writes less. Artificial Analysis ran its full eval suite and found 0731 used about 206M output tokens versus 234M for the previous generation. 12% fewer tokens for a higher score — savings on top of the already-low list price.

Artificial Analysis Intelligence Index leaderboard with intelligence/cost scatter plot
In the lower chart, the horizontal axis is cost per completed task (log scale), the vertical axis is intelligence score. The green region is the "smart and cheap" sweet spot; the dashed line is the Pareto frontier — nothing smarter at the same price, nothing cheaper at the same intelligence. The purple arrow points to DeepSeek V4 Flash 0731 sitting right on that line at roughly three cents per task, while the Claude Opus 5 cluster in the upper right runs over $2. Image source: Artificial Analysis.
⚠️ The fine print at the bottom of the price page. The footnote on DeepSeek's official pricing page says the API is moving to peak/off-peak pricing: during peak hours, all billing items will be charged at the current rate. Peak hours are 9:00–12:00 and 14:00–18:00 Beijing time — effectively the entire Chinese workday. The effective date hasn't been announced. At 2×, daytime rates would be $0.28 for input and $0.56 for output — still over an order of magnitude cheaper than Claude Opus 4.8, but for cost modeling you'll want to plug in the doubled figure.
Mechanics

The Codex integration: even Codex's own system prompt is included

Now for the most useful thing mentioned at the top: connecting to Codex. Codex talks to models via the Responses API, and DeepSeek now natively supports that format — that's the precondition for connecting at all. But if the integration stopped at "the interface works," DeepSeek inside Codex would be a hobbled model: unaware of its own context size, unsure how to submit code patches, and missing the behavioral guidelines Codex's built-in model gets.

What they actually did goes much further. The setup process writes a ~/.codex/models.json — essentially a model specification document for Codex, declaring the DeepSeek model in the exact format Codex's built-in model uses.

~/.CODEX/MODELS.JSON HAS THREE LAYERS 1. Model capabilities 1,048,576-token context window, effective portion computed at 95%; supports parallel tool calls Code patches submitted via freeform; minimum client version 0.144.0 2. Three reasoning levels low for quick thinking · high for deep dives on complex problems (default) · max for the hardest cases These map directly onto Codex's built-in effort selector 3. Codex's entire system prompt, verbatim "You are Codex" – the opening line Followed by the full spec on personality, using skills, and handling destructive commands Layer three means: when DeepSeek works inside Codex, it wears Codex's own code of conduct
Drawn from the actual content of models.json as described in DeepSeek's official Codex integration docs.

The third layer is the most notable part of this integration. That models.json reproduces Codex's official system prompt in full, from the "You are Codex" opening line through the entire set of rules about loading skill files and how to handle destructive commands.

Once connected, the model is DeepSeek's, but the behavioral code — "who I am, how I work, what I won't do" — remains Codex's original. The so-called Codex optimization isn't just making two interfaces talk; it's tuning the model to work with that whole shell.

Getting Started

Setup guide: one command, existing settings untouched

Two prerequisites before you start: the Codex CLI or ChatGPT desktop app has been launched at least once (so the ~/.codex directory exists), and your client version is 0.144.0 or higher.

Option 1: Official script, one command

macOS / Linux · Terminal
bash <(curl -fsSL https://cdn.deepseek.com/api-docs/codex-deepseek-setup-en.sh)
Windows: run in PowerShell: irm https://cdn.deepseek.com/api-docs/codex-deepseek-setup-en.ps1 | iex

The script walks you through picking a model from a menu; on first run, it asks for your API Key (starts with sk-, obtainable from the DeepSeek platform). Four things it does, all carefully:

  1. Backs up any existing ~/.codex/config.toml to ~/.codex/backup-deepseek/ so you can always restore.
  2. Writes the model catalog ~/.codex/models.json — the spec document from the previous section.
  3. Edits config.toml: rewrites only the necessary fields and appends a [model_providers.deepseek] block. Your existing MCP servers and project trust levels are preserved; any conflicting fields are removed with a printed reason.
  4. Validates both files' syntax before writing — if validation fails, it aborts without touching a single file.

You can rerun the script anytime to switch models, or pick option 3 in its menu to restore the pre-install state.

Option 2: Manual configuration

Prefer not to run the script? The full models.json content is available to copy from the official docs. Then add this to config.toml:

~/.codex/config.toml
model = "deepseek-v4-flash"
model_provider = "deepseek"
preferred_auth_method = "apikey"
forced_login_method = "api"
model_reasoning_effort = "high"
model_catalog_json = "~/.codex/models.json"

[model_providers.deepseek]
name = "deepseek"
base_url = "https://api.deepseek.com/"
wire_api = "responses"
experimental_bearer_token = "<your DeepSeek API Key>"
The key line is wire_api = "responses" — it tells Codex to speak the Responses API protocol with the model. model_reasoning_effort is the three-level setting from the previous section: low / high / max.

Verifying it works

All three Codex clients read the same config — configure once, use everywhere:

Codex CLI
In your project directory, run codex. If the startup banner shows model: deepseek-v4-flash, it's live.
ChatGPT desktop
The model picker will show it as "Custom." That's normal — the desktop app labels all locally configured models that way. It's running the DeepSeek model you selected.
VS Code extension
Shares the same config as the CLI. Install the extension and it just works.

What's still out of reach

Flash only
Only deepseek-v4-flash connects to Codex so far, and the same goes for the Responses API. V4-Pro support is promised for early August 2026.
No conversation memory
This is a stateless interface — previous_response_id and conversation aren't supported. Multi-turn conversations require resending the full history every time.
Oversized requests error out
No automatic truncation. Requests exceeding the context window return a 400; nothing gets silently trimmed.
Images get replaced
No image or file input. Sending an image won't error — it gets silently swapped for a single line of placeholder text. This one's easy to trip over because it stays quiet.
Custom tools
Custom-type tools only accept the name apply_patch (the one Codex uses). Anything else returns a 400.

One more design choice worth calling out: unsupported parameters are silently ignored, not rejected. That's why existing Responses API clients can connect without code changes — at the cost that you need to know which parameters are being ignored.

🧰 Quick reference · DeepSeek-V4-Flash (0731 GA)
PricePer million tokens: $0.14 input (cache hit $0.0028) / $0.28 output; peak hours will be billed at 2×
RequirementsJust an API Key to call it; for Codex you'll need client ≥ 0.144.0 and one official script — or self-host using the MIT-licensed weights with vLLM
Technical Deep Dive

Only the final training step changed — not a single model parameter was touched

Finally, where does this capability jump come from? The official changelog has the key sentence: 0731 shares the exact same architecture and size as the preview — only the post-training was redone.

Post-training is the second phase, after the model has finished reading massive amounts of text. It uses demonstrations and rewards to teach the model how to actually use what it absorbed. Same books, different teaching method.

SAME WEIGHTS · NEW TEACHING Model backbone (untouched) 284B total 13B active 1M context Redone post-training The only thing that changed All nine agent benchmarks rise together Bar heights are illustrative; exact figures in the table above
Diagram; bar heights don't reflect actual scores. Chart by this site.

One thing worth getting precise: the open-sourced weights on HuggingFace are 304B parameters — about 20B more than the 284B backbone. The difference is a speculative decoding module: a small module guesses the next few tokens in advance, and the main model verifies them all at once, adopting the correct guesses. It only speeds up token generation; it doesn't change what the model knows. With vLLM, it's enabled with a single flag.

As for how the post-training was done, the model card describes a two-stage approach: first, demonstration data and reinforcement learning train expert models for each domain; then a unified model learns from these experts' live answers, folding all the skills into one model.

The low price also comes from the model's own structure: of the 284B parameters, each token activates only 6 of 256 experts plus 1 shared — roughly 13B in play. Expert weights are stored at FP4 precision, with most of the rest at FP8. A compressed attention mechanism then drastically cuts the cache that dominates VRAM in long contexts. DeepSeek's official figures: for a 1-million-token context, V4-Pro's per-token inference compute is 27% of the previous V3.2's, and its cache is 10%.

One thing worth noting: the savings are in compute and cache, not VRAM. All 284B parameters still need to sit in memory, because the next token could call on any expert.

Source
DeepSeek-V4-Flash-0731DeepSeek·HuggingFace Model Card·2026-07-31
Note
The nine-benchmark comparison table is DeepSeek's official image, obtained via third-party media, with numbers cross-checked against the same table on the HuggingFace model card. The Intelligence Index and cost scatter plot come from Artificial Analysis' public evaluation; third-party figures cited (Terminal-Bench 79, composite Intelligence Index, Real-World Task Elo, token usage reduction) all come from the same public results. The four diagrams are by this site; the bar chart in the technical section uses illustrative heights only. Claude Opus 4.8 pricing is from Anthropic's official pricing page. Benchmark task descriptions for DeepSWE, NL2Repo, and Terminal-Bench come from their respective public papers and project pages.