Deepseek v4 Flash 0731 vs DeepSeek V3.1
Live API pricing and availability, side by side. Both models run on FastInfra's OpenAI-compatible endpoint — switching between them is a one-line change.
Pricing
Price per 1M tokens
Prices are live and sync automatically from wholesale providers.
| Deepseek v4 Flash 0731 | DeepSeek V3.1 | |
|---|---|---|
| Input | $0.08 | $0.26 |
| Output | $0.19 | $1.00 |
| Default provider | DeepInfra | DeepInfra |
| Providers available | 5 | 4 |
On input tokens, Deepseek v4 Flash 0731 is currently 3.1× cheaper than DeepSeek V3.1 on FastInfra. Output-token pricing and quality trade-offs differ per workload — test both with the free tier.
Quickstart
Try both in 30 seconds
Same endpoint, same SDK — only the model string changes.
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.fastinfra.ai/v1")
for model in ["deepseek/deepseek-v4-flash-0731", "DeepSeek-V3.1"]:
response = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": "Hello!"}]
)
print(model, "->", response.choices[0].message.content)