← All models
deepseek-ai/deepseek-v4-flash
deepseek-ai/deepseek-v4-flashAt a glance
- Context window
- 1M tokens
- Max output
- 10K tokens
- Knowledge to
- —
- Released
- —
Pricing
- Input
- 1,999
- Output
- 1,999
- Cached input
- —
- Cache write
- —
IRR / 1M tokens · This model has no separate cache rate.
Capabilities
Input & output
Input: —
Output: —
Reasoning
—
Quick start
from openai import OpenAI
client = OpenAI(
api_key="ir-...",
base_url="https://iranrouter.com/v1",
)
resp = client.chat.completions.create(
model="deepseek-ai/deepseek-v4-flash",
messages=[{"role": "user", "content": "سلام!"}],
)
print(resp.choices[0].message.content)Only base_url and the key change; the rest of your code stays as it is.