DeepSeek V3.1 API Pricing
As of October 10, 2026, DeepSeek V3.1 is free to use from Ollama, the lowest of 12 providers. It has a 163,840-token context window and returns up to 163,840 tokens per response.
- Price
- Free
- Context window
- 163,840 tokens
- Max output
- 163,840 tokens
- Providers
- 12
- Added to LiteLLM
- August 2025
DeepSeek V3.1 pricing by provider
12 listings across 12 providers. 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 | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|
| Ollama | ollama/deepseek-v3.1:671b-cloud | $0 | $0 | – | – | – | 160K |
| Amazon Bedrock Mantle | bedrock_mantle/deepseek.v3.1 | $0.58 | $1.68 | – | – | – | 128K |
| Azure AI Foundry | azure_ai/deepseek-v3.1 | $1.23 | $4.94 | – | – | – | – |
| Baseten | baseten/deepseek-ai/DeepSeek-V3.1 | $0.50 | $1.50 | – | – | – | – |
| DeepInfra | deepinfra/deepseek-ai/DeepSeek-V3.1 | $0.25 | $0.95 | $0.216 | – | – | 160K |
| Fireworks AI | fireworks_ai/accounts/fireworks/models/deepseek-v3p1 | $0.56 | $1.68 | – | – | – | 128K |
| Google Vertex AI | vertex_ai/deepseek-ai/deepseek-v3.1-maas | $0.60 | $1.70 | $0.06 | $0.30 | $0.85 | 160K |
| Novita AI | novita/deepseek/deepseek-v3.1 | $0.27 | $1.00 | $0.135 | – | – | 128K |
| Replicate | replicate/deepseek-ai/deepseek-v3.1 | $0.672 | $2.016 | – | – | – | 160K |
| SambaNova | sambanova/DeepSeek-V3.1 | $3.00 | $4.50 | – | – | – | 128K |
| Together AI | together_ai/deepseek-ai/DeepSeek-V3.1 | $0.60 | $1.70 | – | – | – | 128K |
| Weights & Biases | wandb/deepseek-ai/DeepSeek-V3.1 | $0.55 | $1.65 | – | – | – | 161K |
What DeepSeek V3.1 costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Ollama | $0 |
| DeepInfra | $0.975 |
| Novita AI | $1.04 |
| Baseten | $1.75 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Ollama | $0 |
| DeepInfra | $2.69 |
| Novita AI | $2.90 |
| Baseten | $5.30 |
DeepSeek V3.1 features
- Function calling
- Parallel tool calls
- Structured output
- Reasoning
- Prompt caching
Use DeepSeek V3.1 with LiteLLM
Call DeepSeek V3.1 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="ollama/deepseek-v3.1:671b-cloud",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: deepseek-v3.1
litellm_params:
model: ollama/deepseek-v3.1:671b-cloud
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "deepseek-v3.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'DeepSeek V3.1 FAQ
How much does DeepSeek V3.1 cost?
DeepSeek V3.1 is free to use from Ollama, the lowest of 12 providers.
What is the context window of DeepSeek V3.1?
DeepSeek V3.1 has a 163,840-token context window and returns up to 163,840 tokens per response.
Which providers offer DeepSeek V3.1?
DeepSeek V3.1 is available from 12 providers through LiteLLM: Ollama, Amazon Bedrock Mantle, Azure AI Foundry, Baseten, DeepInfra, Fireworks AI, Google Vertex AI, Novita AI, Replicate, SambaNova, Together AI and Weights & Biases. The lowest price is on Ollama.
How do I call DeepSeek V3.1 with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="ollama/deepseek-v3.1:671b-cloud", 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 V3.1 support?
DeepSeek V3.1 supports function calling, parallel tool calls, structured output, reasoning and prompt caching.
When did LiteLLM add DeepSeek V3.1?
DeepSeek V3.1 was added to LiteLLM's model price file in August 2025.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
- docs.aws.amazon.com/bedrock/latest/userguide/model-card-deepseek-deepseek-v3-1.html
- prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'
- deepinfra.com/pricing
- fireworks.ai/pricing
LiteLLM docs: Ollama, Amazon Bedrock Mantle, Azure AI Foundry, Baseten, DeepInfra, Fireworks AI.
Provider pages: Ollama, Amazon Bedrock Mantle, Azure AI Foundry, Baseten, DeepInfra, Fireworks AI, Google Vertex AI, Novita AI, Replicate, SambaNova, Together AI, Weights & Biases.
