DeepSeek V4.1 Flash
By DeepSeek. 763.2 billion parameters, a context window of 1,048,576 tokens and the licence mit.
Facts
- Released
- 2026-09-10 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- mit the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 763.2 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- 228.1 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
- Knowledge cutoff
- Unknown
- Context window
- 1,048,576 tokens the maximum position embeddings in the model configuration model configuration, read
- 1,048,576 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 393,216 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls, with the efforts max, high, low OpenRouter, read
- Inputs and outputs
- text, image in, text out Hugging Face, read
- Good for
- Vision: Hugging Face files it under image-text-to-text Hugging Face, read
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| DekaLLM through OpenRouter | 0.040 USD | 1.00 USD | 1,048,576 | OpenRouter endpoints, read | |
| DekaLLM through OpenRouter | 0.040 USD | 1.00 USD | 1,048,576 | OpenRouter endpoints, read | |
| Morph through OpenRouter | 0.098 USD | 0.390 USD | 1,048,576 | OpenRouter endpoints, read | |
| Morph through OpenRouter | 0.098 USD | 0.390 USD | 1,048,576 | OpenRouter endpoints, read | |
| OpenInference through OpenRouter | 0.100 USD | 0.500 USD | 1,048,576 | OpenRouter endpoints, read | |
| OpenInference through OpenRouter | 0.100 USD | 0.500 USD | 1,048,576 | OpenRouter endpoints, read | |
| Relace through OpenRouter | 0.100 USD | 0.500 USD | 1,048,576 | OpenRouter endpoints, read | |
| Relace through OpenRouter | 0.100 USD | 0.500 USD | 1,048,576 | OpenRouter endpoints, read | |
| Sail Research through OpenRouter | 0.130 USD | 0.750 USD | 1,048,576 | OpenRouter endpoints, read | |
| Sail Research through OpenRouter | 0.130 USD | 0.750 USD | 1,048,576 | OpenRouter endpoints, read | |
| DeepInfra through OpenRouter | 0.140 USD | 0.420 USD | 1,048,576 | OpenRouter endpoints, read | |
| DeepInfra through OpenRouter | 0.140 USD | 0.420 USD | 1,048,576 | OpenRouter endpoints, read | |
| Alibaba through OpenRouter | 0.150 USD | 0.600 USD | 1,000,000 | OpenRouter endpoints, read | |
| Alibaba through OpenRouter | 0.150 USD | 0.600 USD | 1,000,000 | OpenRouter endpoints, read | |
| DeepSeek through OpenRouter | 0.150 USD | 0.600 USD | 1,048,576 | OpenRouter endpoints, read | |
| DeepSeek through OpenRouter | 0.150 USD | 0.600 USD | 1,048,576 | OpenRouter endpoints, read | |
| StreamLake through OpenRouter | 0.165 USD | 0.660 USD | 1,024,000 | OpenRouter endpoints, read | |
| StreamLake through OpenRouter | 0.165 USD | 0.660 USD | 1,024,000 | OpenRouter endpoints, read | |
| Deep Infra direct | 0.200 USD | 0.600 USD | 1,048,576 | models.dev, read | |
| Wafer through OpenRouter | 0.200 USD | 0.600 USD | 1,048,576 | OpenRouter endpoints, read | |
| Wafer through OpenRouter | 0.200 USD | 0.600 USD | 1,048,576 | OpenRouter endpoints, read | |
| CoreWeave direct | 0.200 USD | 0.650 USD | 1,048,576 | models.dev, read | |
| CoreWeave through OpenRouter | 0.200 USD | 0.650 USD | 1,048,576 | OpenRouter endpoints, read | |
| CoreWeave through OpenRouter | 0.200 USD | 0.650 USD | 1,048,576 | OpenRouter endpoints, read | |
| Fireworks through OpenRouter | 0.220 USD | 0.660 USD | 1,048,576 | OpenRouter endpoints, read | |
| Fireworks through OpenRouter | 0.220 USD | 0.660 USD | 1,048,576 | OpenRouter endpoints, read | |
| GMICloud through OpenRouter | 0.225 USD | 0.900 USD | 1,048,575 | OpenRouter endpoints, read | |
| GMICloud through OpenRouter | 0.225 USD | 0.900 USD | 1,048,575 | OpenRouter endpoints, read | |
| Krea through OpenRouter | 0.225 USD | 0.900 USD | 1,048,576 | OpenRouter endpoints, read | |
| Krea through OpenRouter | 0.225 USD | 0.900 USD | 1,048,576 | OpenRouter endpoints, read | |
| Phala through OpenRouter | 0.276 USD | 1.10 USD | 1,048,576 | OpenRouter endpoints, read | |
| Phala through OpenRouter | 0.276 USD | 1.10 USD | 1,048,576 | OpenRouter endpoints, read | |
| Novita through OpenRouter | 0.285 USD | 1.14 USD | 1,048,576 | OpenRouter endpoints, read | |
| Novita through OpenRouter | 0.285 USD | 1.14 USD | 1,048,576 | OpenRouter endpoints, read | |
| AtlasCloud through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| AtlasCloud through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| BaseTen through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| BaseTen through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| BaseTen through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| BaseTen through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Baseten direct | 0.300 USD | 1.20 USD | 1,048,576 | models.dev, read | |
| DigitalOcean through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| DigitalOcean through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Hugging Face direct | 0.300 USD | 1.20 USD | 1,048,576 | models.dev, read | |
| Makora through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Makora through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Modal through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Modal through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Nebius Token Factory direct | 0.300 USD | 1.20 USD | 1,048,000 | models.dev, read | |
| NextBit through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| NextBit through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Parasail through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Parasail through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| SiliconFlow through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| SiliconFlow through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Together through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Together through OpenRouter | 0.300 USD | 1.20 USD | 1,048,576 | OpenRouter endpoints, read | |
| Together AI direct | 0.300 USD | 1.20 USD | 1,048,576 | models.dev, read | |
| Venice through OpenRouter | 0.375 USD | 1.50 USD | 1,000,000 | OpenRouter endpoints, read | |
| Venice through OpenRouter | 0.375 USD | 1.50 USD | 1,000,000 | OpenRouter endpoints, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| F16 estimate | 1,422 GiB | 1,494 GiB | 1,496 GiB |
| Q8_0 estimate | 755 GiB | 794 GiB | 796 GiB |
| Q4_0 estimate | 400 GiB | 421 GiB | 423 GiB |
Start it with a local runtime
Use it from your harness
Set up for Baseten with the model deepseek-ai/DeepSeek-V4.1-Flash. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"baseten": {
"npm": "@ai-sdk/openai-compatible",
"name": "Baseten",
"options": {
"baseURL": "https://inference.baseten.co/v1",
"apiKey": "{env:BASETEN_API_KEY}"
},
"models": {
"deepseek-ai/DeepSeek-V4.1-Flash": {
"name": "DeepSeek V4.1 Flash",
"limit": {
"context": 1048576,
"output": 393216
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"baseten": {
"baseUrl": "https://inference.baseten.co/v1",
"api": "openai-completions",
"apiKey": "$BASETEN_API_KEY",
"models": [
{
"id": "deepseek-ai/DeepSeek-V4.1-Flash"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Baseten documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Baseten documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- DeepInfra, model
deepseek-ai/DeepSeek-V4.1-Flash - Hugging Face, model
deepseek-ai/DeepSeek-V4.1-Flash - Nebius Token Factory, model
deepseek-ai/DeepSeek-V4.1-Flash - Together AI, model
deepseek-ai/DeepSeek-V4.1-Flash - CoreWeave, model
deepseek-ai/DeepSeek-V4.1-Flash - OpenRouter, model
deepseek/deepseek-v4.1-flash
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by deepseek-ai Hugging Face, read
- Artificial Analysis Intelligence Index: 39.5 published by Artificial Analysis OpenRouter, read
Sources of this page
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.