Models / DeepSeek / DeepSeek V4 Flash 0731
DeepSeek

DeepSeek V4 Flash 0731

BYOKOpen weightsReleased 31 Jul 2026

An open-weights text model from DeepSeek, released July 2026, priced far below the registry median. It stands out for intelligence per dollar and is mid-table on hard math and factual recall.

A dated snapshot of DeepSeek V4 Flash 0423. Snapshots are left out of the rankings and charts on the overview.

Read the full description ↓

Spec sheet

Family
DeepSeek
Released
31 Jul 20264 months ago
Weights
Open
Context window
1M tokens
Largest response
384k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
May 2025
Intelligence index
64.9#39
Input price
$0.14 / 1M
Output price
$0.28 / 1M
Blended price (3:1)
$0.17 / 1M
Index points per $
370.9#3
Speed
83 tokens/sec#64
Popularity
#14 of 194by usage
Providers
7
Weights on
deepseek-ai/DeepSeek-V4-Flash-0731

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
DeepSeekBYOKdeepseek:deepseek-v4-flash $0.15$0.003$0.6$0.26
Doublewordgateway/doubleword:deepseek-ai/DeepSeek-V4-Flash $0.14–$0.28$0.18
OpenRouterBYOKopenrouter:deepseek/deepseek-v4-flash $0.1$0.021$0.21$0.13
BasetenBYOK–$0.13$0.028$0.26$0.16
FireworksBYOKfireworks:deepseek-v4-flash $0.14$0.028$0.28$0.18
Cloudflare Workers AIBYOK–$0.44$0.014$1.32$0.66
NovitaBYOK–$0.44$0.028$1.32$0.66

The cheapest provider is highlighted. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/doubleword:deepseek-ai/DeepSeek-V4-Flash', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask DeepSeek V4 Flash 0731 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

DeepSeek V4 Flash 0731vsGemini 3.1 Pro Preview
Intelligence indexOur composite of the benchmarks below, 0-100
DeepSeek V4 Flash 073164.9
Gemini 3.1 Pro Preview64.9
GPQA DiamondGraduate-level science questions, multiple choice
DeepSeek V4 Flash 073191%
Gemini 3.1 Pro Preview94.4%
OTIS Mock AIMECompetition mathematics problems with exact answers
DeepSeek V4 Flash 073194.4%
Gemini 3.1 Pro Preview95.6%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
DeepSeek V4 Flash 073157.5%
Gemini 3.1 Pro Preview59.6%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
DeepSeek V4 Flash 073161.4%
Gemini 3.1 Pro Preview77.1%
SimpleQA VerifiedShort factual questions answered from memory, without search
DeepSeek V4 Flash 073133.6%
Gemini 3.1 Pro Preview73.5%
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
DeepSeek V4 Flash 0731–
Gemini 3.1 Pro Preview80.2%
SciCodeScientific programming problems written by researchers
DeepSeek V4 Flash 073149.9%
Gemini 3.1 Pro Preview58.7%
WebDev ArenaRating from human votes on web apps the models built
DeepSeek V4 Flash 07311580.2
Gemini 3.1 Pro Preview1446.6
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
DeepSeek V4 Flash 0731–
Gemini 3.1 Pro Preview35.1%
LMArena textRating from blind human votes between pairs of chat responses
DeepSeek V4 Flash 0731–
Gemini 3.1 Pro Preview1480
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
DeepSeek V4 Flash 0731154.4
Gemini 3.1 Pro Preview–
Input pricePer 1M tokens, lower is better
DeepSeek V4 Flash 0731$0.14
Gemini 3.1 Pro Preview$2
Output pricePer 1M tokens, lower is better
DeepSeek V4 Flash 0731$0.28
Gemini 3.1 Pro Preview$12
EfficiencyIndex points per blended $
DeepSeek V4 Flash 0731371
Gemini 3.1 Pro Preview14
SpeedOutput tokens per second
DeepSeek V4 Flash 073183 t/s
Gemini 3.1 Pro Preview94 t/s
Context windowTokens
DeepSeek V4 Flash 07311M
Gemini 3.1 Pro Preview1M
Model stringFor Pydantic AI
DeepSeek V4 Flash 0731gateway/doubleword:deepseek-ai/DeepSeek-V4-Flash
Gemini 3.1 Pro Previewgateway/google-cloud:gemini-3.1-pro-preview

About DeepSeek V4 Flash 0731

Description written by an LLM from the data on this page

An open-weights text model from DeepSeek, released July 2026, priced far below the registry median. It stands out for intelligence per dollar and is mid-table on hard math and factual recall.

DeepSeek V4 Flash 0731 is an open-weights text model released in July 2026. It has a 1M token context window, up to 384k tokens of output, and supports tool calling, reasoning mode and structured output. Its most notable feature is price: $0.14 per million input tokens and $0.28 per million output tokens, against a registry median blended price above $1. It is served by seven providers and is available through the Gateway.

On benchmarks it sits near the middle of the registry. Its intelligence index of 64.9 is above the median of 59.5 and ranks 41st of 114, and it ranks third for intelligence per dollar. Results on GPQA Diamond and WebDev Arena are modestly above median, while OTIS Mock AIME is close to median. It falls below the median on SimpleQA Verified and FrontierMath.

It suits work where cost and context length matter more than top scores on factual recall or research-level mathematics. The knowledge cutoff is May 2025, earlier than the release date, which is normal for this kind of model.

Strengths

  • Blended price $0.175 per million tokens, well below the $1.01 median
  • Intelligence index 64.9, above the median and 41st of 114
  • Third of 194 for intelligence per dollar
  • 1M token context window, with seven providers serving it

Weaknesses

  • SimpleQA Verified 33.6%, 60th of 76, well below median
  • FrontierMath 57.5%, 48th of 80, below the 64.6% median
  • Epoch Capabilities Index 154.4, 51st of 98, at median

Best for

Cost-sensitive agents that need long context, tool calling and reasoning, and can accept weaker factual recall.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs