models
DeepSeek V4 Flash
DeepSeek V4 Flash — efficiency-optimized MoE model for fast inference and high throughput.
DeepSeek V4 Flash is an efficiency-optimized Mixture-of-Experts model with 284B total parameters and 13B activated parameters, supporting a 1M-token context window. It is designed for fast inference and high-throughput applications, ideal for chat, summarization, and general-purpose tasks.
Quick Reference
| Property | Value |
|---|---|
| Model ID | deepseek/deepseek-v4-flash |
| Context window | 1,000,000 tokens |
| Max output | 8,192 tokens |
| Training data cutoff | 2024 |
| Streaming | ✓ |
| Function calling | ✓ |
| Structured output | ✓ |
| Batch API | ✓ |
Pricing
| Type | Price |
|---|---|
| Input | $0.27 / 1M tokens / 1M tokens |
| Output | $0.67 / 1M tokens / 1M tokens |
When to Use Flash vs Pro
| Scenario | Recommended |
|---|---|
| Chatbots with high QPS | Flash |
| Complex code generation | Pro |
| Bulk classification / tagging | Flash |
| Math proof verification | Pro |
| Real-time conversation | Flash |
| Multi-step reasoning | Pro |
Example
from openai import OpenAI
client = OpenAI(
base_url="https://api.atrouter.cn/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="deepseek/deepseek-v4-flash",
messages=[
{"role": "user", "content": "Summarize this article in 3 bullet points: ..."}
],
temperature=0.5
)
print(response.choices[0].message.content)Related
- DeepSeek V4 Pro — More capable for complex tasks
- DeepSeek Reasoner — Reasoning-focused model
- Model Overview — All available models