DeepSeek V4.1 Flash
deepseek-v4.1-flashThe smallest model in the new DeepSeek causal encoder-decoder family, with native image understanding.
- Reasoning
- Vision
- Tool use
- JSON mode
- Fixed price
- Input
- $0.1000
- Cache hit $0.0100
- Output
- $0.4000
- Per 1M tokens
- Context
- 1M
- 128k max output
- First token
- 615 ms
- Typical, last 7 days
- Throughput
- 161 tok/s
- Typical, last 7 days
Specifications
- Developer
- DeepSeek
- Architecture
- Mixture of experts, 552B backbone, 8B active for input and 16B for output
- Weights
- FP4 experts, FP8 dense layers
- Context length
- 1,048,576 tokens
- Max output
- 128,000 tokens
- Modalities
- Text and images in, text out
- Reasoning effort
- none, low, high, xhigh, max; default high
- Model id
- deepseek-v4.1-flash
- Pricing
- Fixed price
- Weights published
- deepseek-ai/DeepSeek-V4.1-Flash
max_tokens above the max output is clamped down to it.
Prices
USD per 1M tokens- Cache-hit input
- $0.0100
- Cache-miss input
- $0.1000
- Output
- $0.4000
A typical request
A 10,000-token prompt, half of it cached, with a 1,000-token answer: $0.00095
GET /v1/models carries the prices in force.
Performance
last 7 days · OpenFill trafficTime to the first token, generation speed and cache hits on this model's own requests.
- First token
- 615 ms
- p95 1.75 s
- Throughput
- 161 tok/s
- Slowest 5% under 85.3 tok/s
- Cache hits
- 89%
- Of prompt tokens
- Requests
- 323
- 100% streamed
| Prompt | First token | Throughput | Cache hits |
|---|---|---|---|
| Under 1k | 556 ms | 165 tok/s | 22% |
| 1k to 4k | Pending | Pending | Pending |
| 4k to 16k | Pending | Pending | Pending |
| 16k to 64k | 878 ms | 144 tok/s | 92% |
| 64k to 256k | Pending | Pending | Pending |
| 256k and over | Pending | Pending | Pending |
Typical requestFirst token at p95
Uptime, last 24 hours
Each check is a chat completion through the public API, run the way the models board describes.
Uptime
Pending
Checks
0
Failures
0
Latency
Pending
Queue wait
Pending
Checks begin once capacity is serving this model.
deepseek-v4.1-flash Base URL https://api.openfill.ai/v1Set OPENFILL_API_KEY to a key from API keys before running an example. A key starts with of_live_ and is shown once.
import osfrom openai import OpenAI client = OpenAI( base_url=( "https://api.openfill.ai/v1" ), api_key=os.environ[ "OPENFILL_API_KEY" ],) r = client.chat.completions.create( model="deepseek-v4.1-flash", messages=[ {"role": "user", "content": "hi"} ],)print(r.choices[0].message.content)print(r.usage)import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.openfill.ai/v1", apiKey: process.env.OPENFILL_API_KEY,}); const r = await client.chat.completions.create({ model: "deepseek-v4.1-flash", messages: [{ role: "user", content: "hi" }],});console.log(r.choices[0].message.content);console.log(r.usage);curl "https://api.openfill.ai/v1/chat/completions" \ -H "Authorization: Bearer $OPENFILL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash", "messages": [ {"role": "user", "content": "hi"} ] }'