DeepSeek V4.1 Flash API pricing & setup
As of 2026-10-17, the cheapest DeepSeek V4.1 Flash channel is Official (China): ¥2 input / ¥8 output per 1M tokens (blended $0.523). Context 1M.
→ DeepSeek hub: all prices, free access, setup
→ Is the DeepSeek API free? Pricing, off-peak hours & free routes
Context: 1M · Max output: 944K · Modalities: text, image · Listed: 2026-09-10
Channel comparison (per 1M tokens)
| Channel | Blended | Input | Output | Cached | Access & payment (this channel) | Notes | Source |
|---|---|---|---|---|---|---|---|
| Official (China) ¥2 / ¥8 | $0.523 | $0.299 | $1.19 | $0.006 | ✓CN direct✓Alipay✓ID✗Intl card conditions source2026-10-17 | 显示高峰价;空闲时段约五折 Off-peak: ¥1 / ¥4 | api-docs.deepseek.com 2026-10-17 |
| Official (Intl) $0.3 / $1.2 | $0.525 | $0.3 | $1.2 | $0.006 | ?CN direct·unverified?Alipay·unverified?ID·unverified?Intl card·unverified | Peak price shown; off-peak ~50% off Off-peak: $0.15 / $0.6 | api-docs.deepseek.com 2026-10-17 |
| OpenRouter $0.3 / $1.2 | $0.525 | $0.3 | $1.2 | $0.006 | ✓CN direct✓Alipay✗ID✗Intl card conditions source2026-10-17 | Original vendor endpoint: DeepSeek Quantized min $0.09 / $0.18 (fp4, Decart) | openrouter.ai 2026-10-17 |
Access & payment conditions are verified per channel (see the column above); unverified never counts as met.
Free & deals
- OpenCode Zen offers DeepSeek V4.1 Flash Free (model ID deepseek-v4.1-flash-free) free for a limited time — input/output/cache free; provider is zero-retention per the docs · official
How to use DeepSeek V4.1 Flash in Claude Code / Codex / OpenCode
Claude Code(Anthropic compatible): ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
OpenAI compatible base URL: https://api.deepseek.com · DEEPSEEK_API_KEY
Check the provider docs for exact model IDs. Source · Claude Code · Codex
Cheaper alternatives
GPT-5.6 Luna ($0.45) · Hunyuan HY3 Preview ($0.285) · ERNIE X1.1 Preview ($0.261) ·
Compare
DeepSeek V4.1 Flash vs Qwen3.8 Flash · DeepSeek V4.1 Flash vs GPT-6 Luna · Doubao Seed 2.1 Pro vs DeepSeek V4 Pro (0813) · Compare any two →
Rankings: Cheapest LLM APIs · LLM APIs usable from mainland China · All DeepSeek models
Price history
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash cached: $0.009 → $0.006 (OpenRouter basis change: model list price → DeepSeek (original vendor); not a provider price change)
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash output: $0.7 → $1.2 (OpenRouter basis change: model list price → DeepSeek (original vendor); not a provider price change)
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash input: $0.04 → $0.3 (OpenRouter basis change: model list price → DeepSeek (original vendor); not a provider price change)
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash cached: $0.0016 → $0.009 (Aligned with the raw OpenRouter API value (old record did not match the API at 2026-10-17 03:44 UTC))
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash output: $0.144 → $0.7 (Aligned with the raw OpenRouter API value (old record did not match the API at 2026-10-17 03:44 UTC))
- 2026-10-17 · OpenRouter · DeepSeek V4.1 Flash input: $0.032 → $0.04 (Aligned with the raw OpenRouter API value (old record did not match the API at 2026-10-17 03:44 UTC))
FAQ
How much does the DeepSeek V4.1 Flash API cost?
Cheapest channel (Official (China)): ¥2 input / ¥8 output per 1M tokens, verified 2026-10-17.
Can I use DeepSeek V4.1 Flash from China?
Official (China): direct yes, Alipay yes, ID required yes, overseas card no; Official (Intl): direct unverified, Alipay unverified, ID required unverified, overseas card unverified; OpenRouter: direct yes, Alipay yes, ID required no, overseas card no
Is DeepSeek V4.1 Flash free?
OpenCode Zen offers DeepSeek V4.1 Flash Free (model ID deepseek-v4.1-flash-free) free for a limited time — input/output/cache free; provider is zero-retention per the docs
What is DeepSeek V4.1 Flash's context window?
1M tokens