How do I run DeepSeek V4.1 Flash in OpenCode, Claude Code or Codex?
Standard Compute includes DeepSeek V4.1 Flash as deepseek/deepseek-v4.1-flash on every monthly plan from $19: one key for OpenCode, Claude Code and Codex, and a fixed compute budget where new requests get HTTP 402 at 100%.
| Model | DeepSeek's fast V4.1 model. DeepSeek's own API serves it under the name deepseek-flash. |
|---|---|
| Model ID | deepseek/deepseek-v4.1-flashShort form deepseek-v4.1-flash also works |
| Base URL | https://api.stdcmpt.com/v1Claude Code uses https://api.stdcmpt.com |
| Context | 1,048,576 tokensA request here takes up to about 850K input and 50K output tokens |
| Input | Text and images |
| Reasoning | On by default; can be switched off per request or on the Models page |
Copy a working config
Paste the config for your agent. The same ID works in all three.
{
"$schema": "https://opencode.ai/config.json",
"model": "standardcompute/deepseek/deepseek-v4.1-flash",
"provider": {
"standardcompute": {
"npm": "@ai-sdk/openai-compatible",
"name": "Standard Compute",
"options": {
"baseURL": "https://api.stdcmpt.com/v1",
"apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
},
"models": {
"deepseek/deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" },
"standardcompute": { "name": "Smart routing" }
}
}
}
}
Replace YOUR_API_KEY with a key from the dashboard. This config reads your key from STANDARDCOMPUTE_API_KEY; export it with a key from the dashboard. Full setup: OpenCode, Claude Code, Codex CLI.
What it costs
| Per 1M tokens | Peak | Off-peak |
|---|---|---|
| Input, cache miss | $0.30 | $0.15 |
| Input, cache hit | $0.006 | $0.003 |
| Output | $1.20 | $0.60 |
DeepSeek API rates. Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday; all other hours are off-peak. Source: DeepSeek API pricing, checked October 13, 2026.
At DeepSeek's rates, V4.1 Flash on its own rarely needs a plan. On a plan it works best under a stronger model: selected together, routine requests go to Flash and the hard ones go up.
What works differently here
- DeepSeek's own API is half price off-peak. If your agent runs mostly outside the peak windows and you only need this one model, paying DeepSeek directly can cost less.
- This is a different model from DeepSeek V4 Flash, which stays in the catalog and is text-only. A selection holding V4 Flash is not upgraded automatically.
- Reasoning only switches on or off. In our tests, setting the effort to low or high made no measurable difference, so the Models page offers just the off switch.
Other ways to run DeepSeek V4.1 Flash
| DeepSeek APIPay per token | First-party as deepseek-flash, with half-price off-peak hours. |
|---|---|
| OpenRouter hostsPay per token | Several hosts serve it at their own rates; image support varies by host. |
| Standard ComputeMonthly plan | V4.1 Flash next to frontier models on one key, with image input checked. |
FAQ
Can I send DeepSeek's own model name, deepseek-flash?
deepseek-flash?No, it returns model_not_found. DeepSeek's API uses deepseek-flash; Standard Compute uses deepseek/deepseek-v4.1-flash so names stay unambiguous next to DeepSeek V4 Flash.
Does DeepSeek V4.1 Flash read images?
Yes, on Standard Compute. We checked image input before admitting it. DeepSeek V4 Flash, the earlier model, is text-only.
Should I turn reasoning off?
For simple edits and tool calls, turning it off saves output tokens and time. Leave it on for anything that needs planning.
How fast and reliable is DeepSeek V4.1 Flash on Standard Compute?
Measured at our gateway over 14 days (September 29 to October 12, 2026, all customers pooled): the median time to first streamed token was 2.0 seconds and the 90th percentile 6.2 seconds, across 20,920 streamed requests. Between 04:00 and 12:00 UTC, which is night in the US, the median was 3.1 seconds and the 90th percentile 7.7 seconds. Of 29,793 requests, 32 (0.11%) ended in an error, all on October 9; another 144 hit a provider error and succeeded on an automatic retry.
Sources: DeepSeek API pricing
Create your key
Sign in, create a key in the dashboard and paste it into the config above.