Speed
Output tokens / second
Custom pricing for production workloads
DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length. They support both standard and thinking modes, enabling efficient responses or deeper reasoning workflows.
DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length.
deepseek/deepseek-v4-flashhttps://api.aimlapi.com/v1What is DeepSeek V4 Flash API?
DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length. They support both standard and thinking modes, enabling efficient responses or deeper reasoning workflows.
Where to Use DeepSeek V4 Flash
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
DeepSeek V4 Flash is documented as suited to everyday dialogue, content creation, basic RAG applications, and batch text processing.
It is also described as a good fit for chat and conversational experiences, high-volume content generation, classification, summarization, and extraction.
Another documented fit is real-time copilot and assistant use, especially where low latency and high throughput matter.
A further stated use case is agentic AI and tool-use workflows, including complex problem-solving in mathematics, software engineering, and enterprise AI assistants.
See how DeepSeek V4 Flash compares in generation speed and latency. Data retrieved Nov 4, 2026.
Output tokens / second
Compare 7 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.2645 | 1M tokens |
| Output | $0.4221 | 1M tokens |
| Cached input | $0.006 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.2645 | $0.4221 | |
| $0.3 | $1.2 | |
| $0.3 | $1.2 | |
| $0.44 | $1.32 | |
| $0.39 | $1.56 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "deepseek/deepseek-v4-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "deepseek/deepseek-v4-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "deepseek/deepseek-v4-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());DeepSeek V4 Flash has a 1,000,000 tokens context window and can return up to 384,000 tokens.
DeepSeek V4 Flash takes text as input and returns text.
Use deepseek/deepseek-v4-flash as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
DeepSeek V4 Flash became available on April 24, 2026.
DeepSeek V4 Flash costs $0.2645 input and $0.4221 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, DeepSeek V4 Flash can stream responses as they are generated.
DeepSeek V4 Flash was built by DeepSeek.
It is a chat and reasoning model supporting both standard and deeper thinking modes for various language tasks.