LiteLLMLiteLLM/ MODELS

Deepseekv4.1 Flash API Pricing

By DeepSeek · 1 providersarvam/deepseekv4.1-flash-1017Compare
Input / output
$0.1489 / $0.5851 per 1M tokens
Cache read
$0.00266 / 1M
Context
1M tokens
Max output
1M tokens

As of November 21, 2026, Deepseekv4.1 Flash costs $0.1489 per 1M input tokens and $0.5851 per 1M output tokens on Sarvam, with cache reads at $0.00266 per 1M tokens. It has a 1,048,576-token context window and returns up to 1,048,576 tokens per response.

Prices updated Checked

Deepseekv4.1 Flash 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.

Deepseekv4.1 Flash prices by provider in US dollars, token prices per 1M tokens, as of November 21, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
Sarvamsnapshot 1017sarvam/deepseekv4.1-flash-1017$0.1489$0.5851$0.002661M

What Deepseekv4.1 Flash costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Sarvam$0.5904

100 long-document requests with 100,000 input and 2,000 output tokens each

Sarvam$1.606

Deepseekv4.1 Flash cost calculator

At Sarvam's price ($0.1489 input, $0.5851 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $4.41 a day, about $132 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0004415
Per day
$4.41
Per month (30 days)
$132

Deepseekv4.1 Flash features

Input: text, image. Output: text.

Use Deepseekv4.1 Flash with LiteLLM

Call Deepseekv4.1 Flash 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="sarvam/deepseekv4.1-flash-1017",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: deepseekv4.1-flash
    litellm_params:
      model: sarvam/deepseekv4.1-flash-1017
      # 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 $LITELLM_API_KEY" \
  -d '{
    "model": "deepseekv4.1-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Deepseekv4.1 Flash FAQ

How much does Deepseekv4.1 Flash cost?

Deepseekv4.1 Flash costs $0.1489 per 1M input tokens and $0.5851 per 1M output tokens on Sarvam, with cache reads at $0.00266 per 1M tokens.

What is the context window of Deepseekv4.1 Flash?

Deepseekv4.1 Flash has a 1,048,576-token context window and returns up to 1,048,576 tokens per response.

Which providers offer Deepseekv4.1 Flash?

Deepseekv4.1 Flash is available from Sarvam through LiteLLM, using the model name sarvam/deepseekv4.1-flash-1017.

How do I call Deepseekv4.1 Flash with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="sarvam/deepseekv4.1-flash-1017", 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 Deepseekv4.1 Flash support?

Deepseekv4.1 Flash supports function calling, parallel tool calls, structured output, image input, reasoning and prompt caching. It does not support audio input and video input.

When did LiteLLM add Deepseekv4.1 Flash?

Deepseekv4.1 Flash was added to LiteLLM's model price file on November 18, 2026.

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. Provider pricing pages:

LiteLLM docs: Sarvam.

Provider pages: Sarvam.