LiteLLMLiteLLM/ MODELS

DeepSeek Coder API Pricing

By DeepSeek · 1 providerdeepseek/deepseek-coderCompare
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.

Prices updated Checked

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.

DeepSeek Coder prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
DeepSeekdeepseek/deepseek-coder$0.14$0.28$0.014128K

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.

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.

Python SDK
from litellm import completion

response = completion(
    model="deepseek/deepseek-coder",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: deepseek-coder
    litellm_params:
      model: deepseek/deepseek-coder
      api_key: os.environ/DEEPSEEK_API_KEY
Call the proxy
curl 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.