DeepSeek V4 Flash

deepseek/deepseek-v4-flash
ZDR
ToolsJSONReasoning
by DeepSeek · 2026-04-24

DeepSeek V4 Flash is a text-only language model developed by DeepSeek. It supports a context window of 1,048,576 tokens (1M) and a maximum output of 384,000 tokens, making it suitable for tasks requiring extended reasoning or large document processing. The model is accessed through OrcaRouter's OpenAI-compatible API. Pricing is billed at the provider's rate with zero markup: $0.14 per 1 million input tokens and $0.28 per 1 million output tokens. The model achieved a score of 95.0 on the τ²-Bench benchmark. Use cases include long-context analysis, code generation, and complex multi-step reasoning.

Max output384K
Inputtext
p50 TTFT2.50 s
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Runs inEuropean Union
Context window1Mtokens
INPUT$0.22/ 1M tokens
OUTPUT$0.66/ 1M tokens
p50 TTFT2.50 s7d
p95 TTFT10.00 s7d
TRAFFIC5808.5Mtokens / 7d

Pricing

Pricing
Input / 1M tokens · Off-peak$0.220
Output / 1M tokens · Off-peak$0.660
Cache read / 1M · Off-peak$0.0070
Peak hours01:00–04:00, 06:00–10:00 ×2 (UTC)
Input / 1M tokens · ×2$0.440
Output / 1M tokens · ×2$1.32
Cache read / 1M · ×2$0.014
CurrencyUSD

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $0.616 · With prompt caching $0.446

1.6M input × $0.22/M + 400K output × $0.66/M

Prompt caching assumes half of the input tokens are read from cache at $0.007/M.

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0002$0.242
Summarize a long doc30K / 1K$0.0073$7.26
Code review8K / 2K$0.0031$3.08

Token & cost estimator

Input tokens: 20Cost per request: $0.000334

Estimate only — actual token counts depend on the provider's tokenizer.

Code samples

Use an OpenAI-compatible SDK or send an HTTP request. Get API key

API key
export ORCAROUTER_API_KEY=…
Base URL
https://api.orcarouter.ai/v1
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key=os.environ["ORCAROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "deepseek/deepseek-v4-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 10,
    "total_tokens": 19
  }
}
  • choices[0].message.content — the model's answer.
  • finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.
  • usage — the input and output tokens this call is billed for.

An HTTP 200 with finish_reason "stop" means the call succeeded.

Supported parameters

ParameterWhat it does
max_tokensUpper limit on the number of tokens the model generates.
temperatureSampling randomness: lower is more focused, higher is more varied.
toolsFunctions the model may call, described as JSON Schema.
response_formatForce JSON output, optionally matching a JSON Schema.
top_pNucleus sampling: only consider tokens within this cumulative probability.

Full API reference

Use cases and examples

  • Long context — 1M-token context window: whole codebases, long reports or chat histories in one request.
  • Agents and tool use — Calls the functions you define, for agents and tool workflows.
  • Structured extraction — Returns JSON that follows your schema, for pulling fields out of text.
  • Reasoning — Works through a problem before answering: math, science and multi-step tasks.
  • Strong benchmarks — AA Coding 69.1 · AA Intelligence 34.3
  • Long-context document analysis and summarization (e.g., legal contracts, research papers)
  • Complex code generation and debugging with extended reasoning chains
  • Multi-turn conversational agents requiring deep context retention
  • Large-scale data extraction from lengthy reports or transcripts
  • Multi-step planning and reasoning tasks that benefit from high max output tokens

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
2.50 s
#60 fastest of 144 models
Output speedHow many tokens per second the model streams once it starts answering.
113 tok/s
#75 fastest of 137 models
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
≥ 10 s
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
1.1%

Benchmarks

69.1
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 79% of models compared
#28 of 138
34.3
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 76% of models compared
#35 of 153
50.0
AA MathArtificial Analysis Math Index: one 0–100 score that combines its competition-math evaluations.
Better than 26% of models compared
#61 of 82
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
90.8#35 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
38.6#48 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
79.2#5 of 104
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
79.7#45 of 136
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
57.0 index#85 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
50.3#55 of 141
tau_bankingτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
39.4#20 of 80
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
35.6#48 of 99
terminalbench_v2_1Terminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
78.7#25 of 80
terminalbench_v4_0Terminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
12.1#33 of 60
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
95.0#20 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

1,432
LMArena TextLMArena Text: an Elo rating from blind votes by people comparing two models' answers side by side.
#95 on LMArena
Source: lmarena.ai

Community buzz

What developers are saying this week

Hacker News4 mentions · 7ddown 2 vs the previous week

Compare models

DeepSeek V4 FlashDeepSeek V4 ProDeepSeek V4.1 FlashDeepSeek V4.1 Flash 0910
Input $/M$0.22$0.66$0.15$0.15
Output $/M$0.66$1.98$0.60$0.60
Context1.0M1.0M1.0M1.0M
Quality7/108/108/108/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does DeepSeek V4 Flash cost on OrcaRouter?
Input tokens cost $0.14 per 1 million tokens, and output tokens cost $0.28 per 1 million tokens. OrcaRouter charges exactly the provider rate with zero markup.
What is the context window of DeepSeek V4 Flash?
The context window is 1,048,576 tokens (1 million tokens). The maximum output per request is 384,000 tokens.
What are the main strengths of DeepSeek V4 Flash?
Its strengths are the very large context window and high output token limit, combined with a low price point and a strong τ²-Bench score of 95.0, indicating good reasoning and tool-use capabilities.
How does DeepSeek V4 Flash compare to GPT-4 or Claude?
DeepSeek V4 Flash offers much larger context (1M vs 128k/200k) and output (384k vs ~4k) at a fraction of the cost. However, it is text-only and may have less broad general knowledge or safety tuning.
Does OrcaRouter mark up the price of DeepSeek V4 Flash?
No. OrcaRouter passes through the provider rate with zero markup. You pay $0.14 per 1M input and $0.28 per 1M output exactly as charged by DeepSeek.
How do I call DeepSeek V4 Flash via the OrcaRouter API?
Use the OpenAI-compatible base URL https://api.orcarouter.ai/v1, set the model parameter to "deepseek/deepseek-v4-flash", and include your OrcaRouter API key in the Authorization header.
What data handling policies apply to DeepSeek V4 Flash?
Data passes through OrcaRouter to DeepSeek's servers in China. Review OrcaRouter's privacy policy and DeepSeek's terms. No additional data protections are explicitly offered.
Is DeepSeek V4 Flash multimodal?
No, it only accepts text inputs. For images, audio, or video, you would need to preprocess them into text or use a different model.
What parameters can I set when using DeepSeek V4 Flash?
Standard OpenAI chat completions parameters: model, messages, max_tokens, temperature, top_p, frequency_penalty, presence_penalty, stop, stream, etc. The max_tokens cannot exceed 384,000.
Which use cases are best suited for DeepSeek V4 Flash?
Long-document analysis, code generation with extended reasoning, multi-turn conversations needing deep context, and tasks that produce large outputs such as detailed reports or plans.

Embed this badge

DeepSeek: DeepSeek V4 Flash•$0.22/M in•2498ms p50•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/deepseek/deepseek-v4-flash" target="_blank"> <img src="https://www.orcarouter.ai/embed/deepseek/deepseek-v4-flash.svg" alt="DeepSeek: DeepSeek V4 Flash on OrcaRouter" /> </a>
Markdown [![DeepSeek: DeepSeek V4 Flash](https://www.orcarouter.ai/embed/deepseek/deepseek-v4-flash.svg)](https://www.orcarouter.ai/models/deepseek/deepseek-v4-flash)

Model card as data

GET /api/public/models/deepseek/deepseek-v4-flashOpen
Machine-readable:/llms.txt/llms-full.txt