DeepSeek V4 Flash 0731 (DigitalOcean) API

DigitalOcean · serves deepseek-v4-flash

Pricing

Input / 1M$0.08
Output / 1M$0.25
Blended / 1M$0.332
Cached input / 1M$0.03
Context window1,310,720 tokens
Max output943,718 tokens
LicenseOpen weights · MIT permissive
Knowledge cutoffMarch 2026 · source
Intelligence index51.8 Artificial Analysis Intelligence Index · source

textfunction-calling

Price verified 2026-09-05 (0 days ago) · sourcecorroborated

Sources

SourceInput / 1MOutput / 1MVerified
OpenRouter$0.08$0.252026-09-05
LiteLLM$0.10$0.202026-09-03
models.dev$0.08$0.252026-09-04

Two independent sources agree within 20%.

Cheaper providers for deepseek-v4-flash

ProviderBlended / 1MEndpoint
Baidu$0.15view →
Relace$0.245view →
AkashML$0.245view →

Compare all 22 providers serving deepseek-v4-flash →

Call it

Served via OpenRouter, pinned to DigitalOcean — the provider these prices are resolved from. Set OPENROUTER_API_KEY. Provider page.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-flash-0731",
    "messages": [{"role": "user", "content": "Hello"}],
    "provider": {"only": ["DigitalOcean"], "allow_fallbacks": false}
  }'
from openai import OpenAI  # pip install openai

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="...",  # OPENROUTER_API_KEY
)
resp = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash-0731",
    messages=[{"role": "user", "content": "Hello"}],
    extra_body={"provider": {"only": ["DigitalOcean"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)

Price unchanged since 2026-09-03 — 1 point on record.

Use this data

Raw JSON for this page: deepseek-v4-flash.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.