Model
deepseek-v4.1-flash API
DeepSeek's cheap general-purpose tier, at 16.8% of the official list price. Same model, same upstream, same speed — the discount comes from the group rate, not from a downgraded endpoint.
Pricing
| Unit | Price |
|---|---|
| Input, per 1M tokens | $0.0252 |
| Output, per 1M tokens | $0.1008 |
| Typical request (1,500 in / 400 out) | $0.000078 |
| DeepSeek official list, same tokens | ≈ $0.000465 |
DeepSeek's own list price for the same model is $0.15 / $0.60 per 1M, so the table above is 83% below list (16.8% of it). Full breakdown on DeepSeek API pricing, every model on the price list.
Model ids and aliases
The same model answers to a few names, and all of them bill identically:
deepseek-v4.1-flash— the stable id; the gateway picks a current upstream build.deepseek-v4.1-flash-1017— the dated build (what people call "V4 1 Flash 1017"), pinned to one upstream.- "DeepSeek V4.1 Flash", "DeepSeek V4 1 Flash" — the human names; use one of the ids above in the request.
If a client or tutorial shows a different spelling, list what your key actually exposes with GET /v1/models rather than guessing.
Call it
curl https://todapi.work/v1/chat/completions \
-H "Authorization: Bearer $TODAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Summarise this changelog."}]
}'
from openai import OpenAI
client = OpenAI(api_key="sk-...", base_url="https://todapi.work/v1")
resp = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Summarise this changelog."}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.TODAPI_KEY, baseURL: "https://todapi.work/v1" });
const resp = await client.chat.completions.create({
model: "deepseek-v4.1-flash",
messages: [{ role: "user", content: "Summarise this changelog." }],
});
console.log(resp.choices[0].message.content);
What it is good for
- Extraction, classification and routing where the cheapest capable model wins.
- Long-form drafting where output quality matters more than the last 3% of benchmark score.
- Batch jobs where the bill scales with tokens rather than requests.
Limits
Requests are limited per key and per account, and streaming requests hold a concurrency slot while open. A 429 means back off with jitter; a 402 means the prepaid balance is empty and retrying cannot help. The gateway retries across upstreams before a 5xx reaches you.
FAQ
How much does it cost?
$0.0252 / 1M input and $0.1008 / 1M output, in USD from a prepaid balance.
Is it the same model DeepSeek serves?
Yes — the same model id and upstream. The rate is discounted at the group level, not by swapping in a smaller model.
Does it support streaming?
Yes. Set stream: true and consume server-sent events; the frames match OpenAI's format.