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.
| Input / 1M tokens · Off-peak | $0.220 |
|---|---|
| Output / 1M tokens · Off-peak | $0.660 |
| Cache read / 1M · Off-peak | $0.0070 |
| Peak hours | 01: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 |
| Currency | USD |
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
| Scenario | Input / output tokens | Per request | Per 1,000 requests |
|---|---|---|---|
| Chat reply | 200 / 300 | $0.0002 | $0.242 |
| Summarize a long doc | 30K / 1K | $0.0073 | $7.26 |
| Code review | 8K / 2K | $0.0031 | $3.08 |
Estimate only — actual token counts depend on the provider's tokenizer.
Use an OpenAI-compatible SDK or send an HTTP request. Get API key
export ORCAROUTER_API_KEY=…https://api.orcarouter.ai/v1import 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){
"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.
| Parameter | What it does |
|---|---|
max_tokens | Upper limit on the number of tokens the model generates. |
temperature | Sampling randomness: lower is more focused, higher is more varied. |
tools | Functions the model may call, described as JSON Schema. |
response_format | Force JSON output, optionally matching a JSON Schema. |
top_p | Nucleus sampling: only consider tokens within this cumulative probability. |
stop | Sequences where the model stops generating. |
tool_choice | Whether the model must, may or must not call a tool. |
reasoning | Configure the model's reasoning: effort, token budget, or off. |
include_reasoning | Return the model's reasoning text along with the answer. |
logprobs | Return the log probability of each output token. |
top_logprobs | How many likely alternatives to return for each token (needs logprobs). |
stream | Send the answer as server-sent events while it is generated. |
stream_options | |
thinking | |
user_id |
Human preference and real-world tasks
What developers are saying this week
Embed this badge
Model card as data
GET /api/public/models/deepseek/deepseek-v4-flashOpen @misc{orcarouter_deepseek_v4_flash,
title = {DeepSeek V4 Flash API},
author = {DeepSeek},
year = {2026},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/deepseek/deepseek-v4-flash}
}DeepSeek. (2026). DeepSeek V4 Flash API. OrcaRouter. https://www.orcarouter.ai/models/deepseek/deepseek-v4-flash