LiteLLMModels

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.

By DeepSeekModel ID ollama/deepseek-v3.1:671b-cloudPrices updated Checked
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.

ProviderModel name in LiteLLMInputOutputCache readBatch inBatch outContext
Ollamaollama/deepseek-v3.1:671b-cloud$0$0–––160K
Amazon Bedrock Mantlebedrock_mantle/deepseek.v3.1$0.58$1.68–––128K
Azure AI Foundryazure_ai/deepseek-v3.1$1.23$4.94––––
Basetenbaseten/deepseek-ai/DeepSeek-V3.1$0.50$1.50––––
DeepInfradeepinfra/deepseek-ai/DeepSeek-V3.1$0.25$0.95$0.216––160K
Fireworks AIfireworks_ai/accounts/fireworks/models/deepseek-v3p1$0.56$1.68–––128K
Google Vertex AIvertex_ai/deepseek-ai/deepseek-v3.1-maas$0.60$1.70$0.06$0.30$0.85160K
Novita AInovita/deepseek/deepseek-v3.1$0.27$1.00$0.135––128K
Replicatereplicate/deepseek-ai/deepseek-v3.1$0.672$2.016–––160K
SambaNovasambanova/DeepSeek-V3.1$3.00$4.50–––128K
Together AItogether_ai/deepseek-ai/DeepSeek-V3.1$0.60$1.70–––128K
Weights & Biaseswandb/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

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.

Python SDK
from litellm import completion

response = completion(
    model="ollama/deepseek-v3.1:671b-cloud",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: deepseek-v3.1
    litellm_params:
      model: ollama/deepseek-v3.1:671b-cloud
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl 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:

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.