DeepSeek Coder API Pricing
- Input / output
- $0.14 / $0.28 per 1M tokens
- Cache read
- $0.014 / 1M
- Context
- 128K tokens
- Max output
- 4K tokens
As of November 24, 2026, DeepSeek Coder costs $0.14 per 1M input tokens and $0.28 per 1M output tokens on DeepSeek, with cache reads at $0.014 per 1M tokens. It has a 128,000-token context window and returns up to 4,096 tokens per response.
DeepSeek Coder pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| DeepSeek | deepseek/deepseek-coder | $0.14 | $0.28 | $0.014 | 128K |
What DeepSeek Coder costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| DeepSeek | $0.42 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| DeepSeek | $1.456 |
DeepSeek Coder cost calculator
At DeepSeek's price ($0.14 input, $0.28 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $2.80 a day, about $84.00 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.00028
- Per day
- $2.80
- Per month (30 days)
- $84.00
DeepSeek Coder features
Input: text. Output: text.
- Function calling
- Prompt caching
Use DeepSeek Coder with LiteLLM
Call DeepSeek Coder through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="deepseek/deepseek-coder",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: deepseek-coder
litellm_params:
model: deepseek/deepseek-coder
api_key: os.environ/DEEPSEEK_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "deepseek-coder",
"messages": [{"role": "user", "content": "Hello!"}]
}'DeepSeek Coder FAQ
How much does DeepSeek Coder cost?
DeepSeek Coder costs $0.14 per 1M input tokens and $0.28 per 1M output tokens on DeepSeek, with cache reads at $0.014 per 1M tokens.
What is the context window of DeepSeek Coder?
DeepSeek Coder has a 128,000-token context window and returns up to 4,096 tokens per response.
Which providers offer DeepSeek Coder?
DeepSeek Coder is available from DeepSeek through LiteLLM, using the model name deepseek/deepseek-coder.
How do I call DeepSeek Coder with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="deepseek/deepseek-coder", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does DeepSeek Coder support?
DeepSeek Coder supports function calling and prompt caching.
When did LiteLLM add DeepSeek Coder?
DeepSeek Coder was added to LiteLLM's model price file in May 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.
LiteLLM docs: DeepSeek.
Provider pages: DeepSeek.