Sarvam AI
Sign Up
DeepSeek

DeepSeek V4.1 Flash API

Call DeepSeek V4.1 Flash through a single API, hosted in India.

  • Chat Completions and Responses APIs
  • 1M-token context, tool calling and image input
  • Free credits on signup
  • Chat
  • Reasoning
  • Vision
  • Serverless · India

India builds with Sarvam

Why run DeepSeek V4.1 Flash on Sarvam

  • Hosted in India

    Model weights run on Sarvam's GPUs, hosted in India.

  • Zero data retention on request

    ISO 27001:2022 certified and SOC 2 Type II attested.

  • ₹14.00 per 1M input tokens

    Cached input ₹0.25, output ₹55.00 per 1M tokens.

From key to first response

  1. Get an API key

    Create your key in the Sarvam dashboard.

  2. Install the SDK

    Use the sarvamai SDK or your current client.

  3. Call the model

    Set the model ID and max_tokens, then send.

Start with step one.

Get your API key

What our customers are saying

Aadhaar logo
With Sarvam, we’re showing that critical systems don’t have to choose between adopting AI and staying sovereign.
Bhuvnesh Kumar CEO, UIDAI

Two model IDs, one API

Both endpoints accept the same requests. Change the model ID to switch.

  • deepseekv4.1-flash-1017

    For long documents, agents and batch work. Benchmarked at about 130 tokens per second per user.

    Input
    ₹14.00
    Cached input
    ₹0.25
    Output
    ₹55.00
    • Speed: about 130 tokens/s per user
    • Admission: none at inference layer
    • Limits: your API rate limits only
    • Context window: 1M tokens
  • deepseekv4.1-flash-1017-interactive

    For chat assistants and user-facing agents. Designed to sustain 200 tokens per second per user.

    Input
    ₹25.00
    Cached input
    ₹0.50
    Output
    ₹105.00
    • Speed: designed for 200 tokens/s
    • Admission: holds per-user speed
    • Limits: rate limits and admission
    • Context window: 1M tokens

Prices are per 1M tokens, excluding GST.

What teams build with DeepSeek V4.1 Flash

  • Cost-efficient agents

    Run agents over large codebases and log sets.

  • Software engineering

    Build full programs from a written spec.

  • Long-context analysis

    Read long documents, charts and images.

Try a prompt before you write code.

Try in the playground

Other models on Token Factory

Prices per 1M tokens, excluding GST.

Model Deployment Input Cached input Output Get access
Gemma 4 31B Google · 256K context Serverless ₹35.00 ₹10.00 ₹90.00 Try now
GLM 5.3 Z.ai · 1M context Serverless ₹126.00 ₹20.00 ₹390.00 Try now
GLM 5.3 Flash Z.ai · 1M context Serverless ₹13.50 ₹2.50 ₹45.00 Try now
Sarvam Prism Sarvam · 32K context Serverless ₹4.00 - - Try now
Qwen 3.8 27B Alibaba · 256K context Serverless ₹18.00 ₹5.00 ₹230.00 Try now
Sarvam 105B Sarvam · 128K context Serverless ₹10.00 ₹0.25 ₹25.00 Try now
Sarvam 105B Conversations Sarvam · 32K context Serverless ₹10.00 ₹0.25 ₹25.00 Try now
EmbeddingGemma 2 Google · 8K context Serverless ₹2.00 - - Try now
Clef Cloudflare · 64K context Serverless ₹20.00 - - Try now
DeepSeek V4 Pro DeepSeek · 1M context Provisioned throughput ₹115.00 ₹4.00 ₹350.00 Request access
Kimi K3.1 Pro Moonshot AI · 1M context Provisioned throughput ₹200.00 ₹20.00 ₹950.00 Request access

Build on Sarvam Token Factory

Get your API key