DeepSeek · LLM API pricing

DeepSeek-V3.1 API pricing: cheapest provider

7 providers sell DeepSeek-V3.1. DeepInfra is cheapest; the most expensive charges 7.9× as much for the same model.

  • Cheapest$0.425per 1M · DeepInfra
  • Input · output$0.25 / $0.95per 1M tokens
  • Price gap7.9×across 7 providers
  • Context164Kmax tokens
$0.425 DeepInfra7.9× spread$3.38 SambaNova
Already paying for DeepSeek-V3.1? Check if you overpay →

Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices

Ranked for your volume

DeepSeek-V3.1 monthly cost by provider

Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.

More requirements: caching, context, features, provider

Share this page URL to keep your scenario. 7 of 7 providers meet these assumptions.

ProviderEstimated / monthInput / 1MOutput / 1MCached input / 1MContext
1
DeepInfraInference provider - lowest for your volumePricing page
$4.40$0.25$0.95$0.216163,840
2
Novita AIInference providerPricing page
$4.70$0.27$1.00$0.135131,072
3
SiliconFlowInference providerPricing page
$4.70$0.27$1.00Not listed164,000
$8.80$0.55$1.65Not listed161,000
5
Fireworks AIInference providerPricing page
$8.96$0.56$1.68Not listed128,000
6
ReplicateInference providerPricing page
$10.75$0.672$2.02Not listed163,840
7
SambaNovaInference providerPricing page
$39.00$3.00$4.50Not listed131,072

Order depends on listed price for your volume only. No provider pays for its position.

Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.

Price history

The cheapest price has not changed since tracking started on Sep 28, 2026: $0.425 per 1M tokens at DeepInfra. All price changes

Switch to the cheapest provider

Switch to DeepInfra

Already using the OpenAI SDK? Change the base URL, key and model name:

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.deepinfra.com/v1/openai",
    api_key=os.environ["DEEPINFRA_API_KEY"],
)
response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3.1",
    messages=[{"role": "user", "content": "Hello"}],
)
Base URL from DeepInfra's API docs, model name from the open pricing datasets. Check the model page in DeepInfra's docs before you switch production traffic.

Compare DeepSeek-V3.1 with another model

Or pick any model

Before you pick a provider

Context windows differ by provider, from 128K to 164K tokens. A cheaper host may not accept your longest prompts.

2 of 7 providers list a cached-input price. Repeated system prompts or documents can cost much less there than the standard input rate shown above.