Today › AI API prices › DeepSeek
deepseek-coder API pricing (DeepSeek)
Input / 1M tokens$0.14
Output / 1M tokens$0.282.0× input
Context window128Kmax output 4K
Rank within DeepSeek1 / 16
Among all modelscheaper than 85%of 725 models
Cost for typical workloads
| Workload | This model | Median of all models |
|---|---|---|
| 10,000 chats (2,000 in / 500 out tokens) | $4.20 | $20.50 |
| 100 long summaries (50,000 in / 1,000 out) | $0.728 | $2.97 |
| 1,000 articles (500 in / 2,000 out) | $0.63 | $2.50 |
Similarly priced models from other providers
| Model | Provider | Input | Output | Context |
|---|---|---|---|---|
| deepseek-v4-flash | Fireworks AI | $0.14 | $0.28 | 1M |
| deepseek-v4-flash | Fireworks AI | $0.14 | $0.28 | 1M |
| gemini-2.5-flash-lite | Google Gemini | $0.1 | $0.4 | 1M |
| voxtral-small-2507 | Mistral AI | $0.1 | $0.4 | 33K |
| voxtral-small-latest | Mistral AI | $0.1 | $0.4 | 33K |
| gpt-4.1-nano | OpenAI | $0.1 | $0.4 | 1M |
Price history
| Date | Input | Output |
|---|---|---|
| 2026-10-03 | $0.14 | $0.28 |
Only dates with a change are listed (17 snapshots from 2026-10-03 to 2026-11-10).
Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.
About this page
deepseek-coder on DeepSeek costs $0.14 per million input tokens and $0.28 per million output tokens; it ranks 1 of 16 DeepSeek models by price, with a 128K context window.