DeepSeek V4 Flash 0731 (Baidu) API
Baidu · serves deepseek-v4-flash
Pricing
| Input / 1M | $0.05 |
|---|---|
| Output / 1M | $0.10 |
| Blended / 1M | $0.15cheapest of 22 |
| Cached input / 1M | $0.01 |
| Context window | 1,310,720 tokens |
| Max output | 131,072 tokens |
| License | Open weights · MIT permissive |
| Knowledge cutoff | March 2026 · source |
| Intelligence index | 51.8 Artificial Analysis Intelligence Index · source |
textfunction-calling
Price verified 2026-09-05 (0 days ago) · sourcecorroborated
Sources
| Source | Input / 1M | Output / 1M | Verified |
|---|---|---|---|
| OpenRouter | $0.05 | $0.10 | 2026-09-05 |
| LiteLLM | $0.08 | $0.18 | 2026-09-03 |
| models.dev | $0.05 | $0.10 | 2026-09-04 |
Two independent sources agree within 20%.
Call it
Served via OpenRouter, pinned to Baidu — 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": ["Baidu"], "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": ["Baidu"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)Price history
| Date | Input / 1M | Output / 1M |
|---|---|---|
| 2026-09-05 | $0.05 | $0.10 |
| 2026-09-03 | $0.07 | $0.13 |
2 price points on record · a new point is added only when the price actually changes.
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.