- DeepSeek
- Text
- 1M context
- Reasoning
DeepSeek V4 Flash API: pricing, capabilities and setup
DeepSeek V4 Flash API through llmbox: the lighter model of the V4 generation with a 1M-token context window, for agents, code and projects already tuned on V4 Flash.
pay as you go · no subscription · key right after sign-up
How much DeepSeek V4 Flash costs
- Input$0.144per 1M tokens
- Output$0.396per 1M tokens
- Cache read$0.072per 1M tokens
- Cache write$0.144per 1M tokens · same as input
Cost calculator
50 M tokens
75%
The rest is output
- With llmbox
- $10
What a typical task costs
| Task | Tokens (input / output) | With llmbox |
|---|---|---|
| Short chat | 2 000 / 500 | $0.00049 |
| Code review | 20 000 / 2 000 | $0.00367 |
| Document summary | 40 000 / 2 000 | $0.00655 |
| Agent session | 600 000 / 30 000 | $0.09828 |
Specs
- Context1Mtokens
Capabilities
- Tool calling
- Reasoning
- Streaming
- Prompt caching
- Image input
Endpoints
/v1/chat/completions/v1/responses/v1/messages
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="deepseek/deepseek-v4-flash",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)What DeepSeek V4 Flash is good for
DeepSeek V4 Flash is the smaller model of the DeepSeek V4 generation, released together with V4 Pro. It is a mixture-of-experts model with 284 billion parameters, 13 billion of which are active for each token. According to DeepSeek's documentation, the context window is 1M tokens, the model replies with text, and reasoning can be turned on and off. The weights are open under the MIT license. In DeepSeek's own lineup, the main Flash model is now DeepSeek V4.1 Flash.
What it's good for
DeepSeek describes V4 Flash as a lighter version of V4 Pro: fewer parameters, with reasoning close to the larger model. On simple agent tasks, according to DeepSeek, Flash performs on par with Pro. In the July 31 update the company further trained the model for agent scenarios without changing its architecture and added the Responses format, adapted for Codex.
That defines the main use case for V4 Flash in the catalog: projects where prompts, agents and quality evaluations are already tuned on this model and keeping familiar behavior matters. Another one is auxiliary agent steps and chatbots with a long history: the 1M-token window fits a long conversation, and a repeated prefix of requests can hit the cache.
When to pick another model
- A new project with code and agents — start with DeepSeek V4.1 Flash, DeepSeek's newer model.
- You need output that strictly follows a JSON schema — through llmbox it's available for V4.1 Flash and DeepSeek V4 Pro.
- Knowledge-heavy tasks and the most complex agent scenarios — as DeepSeek describes it, V4 Pro is stronger here.
How to connect
V4 Flash is available in the Chat Completions and Responses formats, so it connects to Cursor, OpenCode and Codex CLI with an llmbox key and the model ID deepseek/deepseek-v4-flash. You don't need a DeepSeek account or API key. The base URL is in the Quickstart, and step-by-step settings for each tool are in Integrations. Moving to V4.1 Flash only means changing the model ID — the key stays the same.
Pricing and billing
Rates per 1M input and output tokens, as well as for cache reads and cache writes, are listed on this page. Reasoning tokens count as output. You pay from a prepaid balance as you go; there is no subscription. Every request with its status, tokens and cost appears in the request log in your dashboard — which makes it easy to compare V4 Flash and V4.1 Flash on spend for the same workflow.
Typical tasks
- Projects and prompts already tuned on V4 Flash
- Simple agent tasks and auxiliary agent steps
- Coding in Codex CLI, Cursor and OpenCode
- Chatbots and assistants with a long history
DeepSeek V4 Flash or DeepSeek V4.1 Flash?
| Model | Input · 1M | Output · 1M |
|---|---|---|
| DeepSeek V4 Flash | $0.144 | $0.396 |
| DeepSeek V4.1 Flash | $0.10 | $0.27 |
DeepSeek V4 Flash vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| DeepSeek V4 Flash | $0.144 | $0.396 |
| DeepSeek V4.1 Flash | $0.10 | $0.27 |
| DeepSeek V4 Flash 0731 | $0.10 | $0.28 |
| DeepSeek V4 Pro 0813 | $0.10 | $0.28 |
| DeepSeek V4 Pro | $0.19 | $0.555 |
| GPT-5.6 Luna OpenAI | $0.15 | $0.40 |
Other DeepSeek models
Articles about the model
FAQ
How is DeepSeek V4 Flash different from V4.1 Flash?
V4 Flash belongs to the V4 generation; V4.1 Flash is its successor on DeepSeek's new architecture, with native image understanding. DeepSeek points new projects to V4.1 Flash, while V4 Flash is convenient where prompts and agents are already tuned on it.
How is V4 Flash different from V4 Pro?
Both models belong to the same generation and have a 1M-token context window. As DeepSeek describes it, Flash is a lighter version of Pro with fewer parameters: its reasoning is close to Pro and it keeps up with Pro on simple agent tasks, but it falls behind on tasks that need factual knowledge and in the most complex agent scenarios.
Can I get output that strictly follows a JSON schema?
Through llmbox, JSON-schema output is available for DeepSeek V4.1 Flash and DeepSeek V4 Pro — choose one of them for such tasks.
What model name do I pass to the API?
Pass deepseek/deepseek-v4-flash. The model is available in the Responses format for Codex CLI and in Chat Completions for Cursor and OpenCode; setup steps are in the Integrations section of the docs. Moving to V4.1 Flash only means changing the model ID.
Do I need a DeepSeek API key?
No. Create an llmbox key in the API keys section of your dashboard and use it instead of a DeepSeek key. The same key works for every model in the catalog.
How is DeepSeek V4 Flash billed?
Per input and output token, from a prepaid balance as you go, with no subscription. The rates, including cache rates, are listed on this page. Before moving to V4.1 Flash, it's handy to compare the spend of both models on the same set of requests in your request log.
