apiprice Download 中文

Prices › DeepSeek

DeepSeek V4 Flash 0731 API pricing & setup

deepseek-v4-flash-0731 · deepseek/deepseek-v4-flash-0731

As of 2026-11-20, the cheapest DeepSeek V4 Flash 0731 channel is OpenRouter: $0.06 input / $0.18 output per 1M tokens (blended $0.09). Context 1M. Retired; DeepSeek's replacement is DeepSeek V4.1 Flash 1017.

Retired · third-party hosted DeepSeek changelog: the previous-generation V4 Flash (0731 was one of its updates) is retired; per the pricing page, requests to the legacy name deepseek-v4-flash are now served by DeepSeek-V4.1-Flash-1017 and billed at the Flash price. This row is a third-party OpenRouter host. Excluded from every “cheapest” ranking. api-docs.deepseek.com · checked 2026-10-17 21:10 UTC+8

→ DeepSeek hub: all prices, free access, setup

→ Is the DeepSeek API free? Pricing, off-peak hours & free routes

Blended$0.09
Input$0.06
Output$0.18
Context1M
Max outputUnknownnot published by the vendor · DeepSeek docs
Listed2026-07-31

Channel comparison (per 1M tokens)

DeepSeek V4 Flash 0731: price and access conditions by channel (per 1M tokens)
ChannelBlendedInputOutputCachedAccess & payment (this channel)NotesSource
OpenRouterThird-party host
$0.06 / $0.18
$0.09$0.06$0.18$0.015Direct access from mainland China: yesAlipay: yesReal-name ID required: noOverseas card required: no
conditions source2026-10-17
Third-party host: DeepInfra (fp8)
Quantized min $0.07 / $0.14 (fp4, Relace)
openrouter.ai
2026-11-20

Access & payment conditions are verified per channel (see the column above); unverified never counts as met.

How to use DeepSeek V4 Flash 0731 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

Qwen3.7 Flash ($0.055) ·

Related comparisons

DeepSeek V4.1 Flash 1017 vs Qwen3.8 Flash · DeepSeek V4.1 Flash 1017 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-11-17 · OpenRouter · 6 merged · net 0 DeepSeek V4 Flash 0731: Earlier that day: moved back and forth 2 times ($0.06 ⇄ $0.119), net change 0 (OpenRouter endpoint switching, not a provider price change; 6 entries merged)
    Show the 6 original entries
    1. DeepSeek V4 Flash 0731 input: $0.06 → $0.119 (OpenRouter basis change: DeepInfra → DigitalOcean (third-party host); not a provider price change)
    2. DeepSeek V4 Flash 0731 output: $0.18 → $0.238 (OpenRouter basis change: DeepInfra → DigitalOcean (third-party host); not a provider price change)
    3. DeepSeek V4 Flash 0731 cached: $0.015 → $0.0238 (OpenRouter basis change: DeepInfra → DigitalOcean (third-party host); not a provider price change)
    4. DeepSeek V4 Flash 0731 input: $0.119 → $0.06 (OpenRouter basis change: DigitalOcean → DeepInfra (third-party host); not a provider price change)
    5. DeepSeek V4 Flash 0731 output: $0.238 → $0.18 (OpenRouter basis change: DigitalOcean → DeepInfra (third-party host); not a provider price change)
    6. DeepSeek V4 Flash 0731 cached: $0.0238 → $0.015 (OpenRouter basis change: DigitalOcean → DeepInfra (third-party host); not a provider price change)
  • 2026-10-22 · OpenRouter · DeepSeek V4 Flash 0731 cached: $0.001414 → $0.015 (OpenRouter basis reverted: Baidu (third-party host, 89.9% discount, OpenRouter API only, pending manual check) → DeepInfra; not a provider price change. Manual revert of the Baidu price published at 22:11; the OpenRouter discount hold was enabled afterwards.)
  • 2026-10-22 · OpenRouter · DeepSeek V4 Flash 0731 output: $0.13332 → $0.18 (OpenRouter basis reverted: Baidu (third-party host, 89.9% discount, OpenRouter API only, pending manual check) → DeepInfra; not a provider price change. Manual revert of the Baidu price published at 22:11; the OpenRouter discount hold was enabled afterwards.)
  • 2026-10-22 · OpenRouter · DeepSeek V4 Flash 0731 input: $0.04444 → $0.06 (OpenRouter basis reverted: Baidu (third-party host, 89.9% discount, OpenRouter API only, pending manual check) → DeepInfra; not a provider price change. Manual revert of the Baidu price published at 22:11; the OpenRouter discount hold was enabled afterwards.)
  • 2026-10-22 · OpenRouter · 6 merged · net 0 DeepSeek V4 Flash 0731: Earlier that day: moved back and forth 2 times ($0.04444 ⇄ $0.06), net change 0 (OpenRouter endpoint switching, not a provider price change; 6 entries merged)
    Show the 6 original entries
    1. DeepSeek V4 Flash 0731 input: $0.04444 → $0.06 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
    2. DeepSeek V4 Flash 0731 output: $0.13332 → $0.18 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
    3. DeepSeek V4 Flash 0731 cached: $0.001414 → $0.015 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
    4. DeepSeek V4 Flash 0731 input: $0.06 → $0.04444 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change. This set went live in the 2026-10-22 22:11 (UTC+8) hourly update and was then manually reverted to DeepInfra (see the following revert entries).)
    5. DeepSeek V4 Flash 0731 output: $0.18 → $0.13332 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change. This set went live in the 2026-10-22 22:11 (UTC+8) hourly update and was then manually reverted to DeepInfra (see the following revert entries).)
    6. DeepSeek V4 Flash 0731 cached: $0.015 → $0.001414 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change. This set went live in the 2026-10-22 22:11 (UTC+8) hourly update and was then manually reverted to DeepInfra (see the following revert entries).)
  • 2026-10-21 · OpenRouter · DeepSeek V4 Flash 0731 cached: $0.015 → $0.001414 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change)
  • 2026-10-21 · OpenRouter · DeepSeek V4 Flash 0731 output: $0.18 → $0.13332 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change)
  • 2026-10-21 · OpenRouter · DeepSeek V4 Flash 0731 input: $0.06 → $0.04444 (OpenRouter basis change: DeepInfra → Baidu (third-party host); not a provider price change)
  • 2026-10-19 · DeepSeek V4 Flash 0731 max output: 943,718 → unknown tokens (Upstream anomaly: OpenRouter reported 943,718 (90% of the 1,048,576 context), which matches no official figure; the maximum output is not published by the vendor, so it is now shown as unknown)
  • 2026-10-19 · OpenRouter · DeepSeek V4 Flash 0731 cached: $0.001904 → $0.015 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
  • 2026-10-19 · OpenRouter · DeepSeek V4 Flash 0731 output: $0.17952 → $0.18 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
  • 2026-10-19 · OpenRouter · DeepSeek V4 Flash 0731 input: $0.05984 → $0.06 (OpenRouter basis change: Baidu → DeepInfra (third-party host); not a provider price change)
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 cached: $0.014 → $0.001904 (OpenRouter basis change: model list price → Baidu (third-party host); not a provider price change)
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 output: $0.14 → $0.17952 (OpenRouter basis change: model list price → Baidu (third-party host); not a provider price change)
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 input: $0.07 → $0.05984 (OpenRouter basis change: model list price → Baidu (third-party host); not a provider price change)
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 cached: $0.0065 → $0.014 (Correction: this row was hand-entered with wrong values; now re-fetched from the raw OpenRouter API (/api/v1/models))
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 output: $1.28 → $0.14 (Correction: this row was hand-entered with wrong values; now re-fetched from the raw OpenRouter API (/api/v1/models))
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 input: $0.0065 → $0.07 (Correction: this row was hand-entered with wrong values; now re-fetched from the raw OpenRouter API (/api/v1/models))
  • 2026-10-17 · OpenRouter · DeepSeek V4 Flash 0731 listed · $0.07 / $0.14 (Hand-added at 2026-10-17 01:59 UTC; added to the catalog for automatic fetching at 03:47 UTC; the hand-entered values were wrong and were corrected from the OpenRouter API)

FAQ

How much does the DeepSeek V4 Flash 0731 API cost?

Cheapest channel (OpenRouter): $0.06 input / $0.18 output per 1M tokens, verified 2026-11-20.

Can I use DeepSeek V4 Flash 0731 from China?

OpenRouter: direct yes, Alipay yes, ID required no, overseas card no

Is DeepSeek V4 Flash 0731 free?

No free route or deal recorded for this model; pay-as-you-go.

What is DeepSeek V4 Flash 0731's context window?

1M tokens