DeepSeek
DeepSeek API pricing
$0.0252 per million input tokens and $0.1008 per million output tokens. DeepSeek's own list price for the same model is $0.15 / $0.60 — we bill at 16.8% of list, which is 83% below, on the same model and the same upstream.
Price table
| Model id | Input / 1M | Output / 1M | vs official list |
|---|---|---|---|
| deepseek-v4.1-flash | $0.0252 | $0.1008 | −83% |
| deepseek-v4.1-flash-1017 | $0.0252 | $0.1008 | −83% |
| DeepSeek official (reference) | $0.1500 | $0.6000 | — |
What 1M tokens costs
| Workload | Tokens | Cost here | Official |
|---|---|---|---|
| 1M tokens of input | 1,000,000 in | $0.0252 | $0.15 |
| 1M tokens of output | 1,000,000 out | $0.1008 | $0.60 |
| Typical request | 1,500 in / 400 out | $0.000078 | $0.000465 |
| 1M typical requests | 1.5B in / 400M out | $78.12 | $465 |
That last row is the one that matters at scale: $77 vs $465 for the same million calls.
How the charge is computed
charge = prompt_tokens / 1e6 * 0.0252
+ completion_tokens / 1e6 * 0.1008
Billing is per token, in USD, from a prepaid balance. There is no subscription, no minimum spend, and credits do not expire. Failed authentication, rejected requests and absorbed upstream errors cost nothing.
Why it is cheaper than going direct
The discount comes from the group rate applied to the upstream list price, not from a downgraded endpoint. The model id resolves to the same upstream others use; the gateway keeps several routes and retries when one fails. If you want the mechanics, read the model page.
Calling 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."}]
}'
Any OpenAI SDK works: set base_url to https://todapi.work/v1. See the migration note if you are moving an existing integration.
DeepSeek vs other models here
| Model | Input / 1M | Output / 1M |
|---|---|---|
| gpt-6-luna | $0.016 | $0.080 |
| deepseek-v4.1-flash | $0.0252 | $0.1008 |
| glm-5.3-flash | $0.0252 | $0.0756 |
| claude-sonnet-5-5 | $0.76 | $3.80 |
Full list on the pricing page. If you are deciding between providers rather than models, the OpenRouter comparison covers access and payment differences.
FAQ
Is the DeepSeek API free anywhere?
DeepSeek has run promotional free tiers; the gateway does not. Here you pay the rates above from a prepaid balance — but at 16.8% of list, a few dollars goes a long way.
How much is 1 million tokens?
Input: $0.0252. Output: $0.1008. A typical 1,500/400 request is $0.000078.
Is it the same model as DeepSeek serves directly?
Yes — same model id family, same upstream. The discount is applied at the group level.