Open-Weight Models
Run leading open-weight models on Sarvam infrastructure through the same OpenAI-compatible
/v2 API, with your existing Sarvam API key and credits. Switching models is a one-line
change to the model field.
Sarvam 105B, Sarvam 105B Conversations, Sarvam Prism, GLM-5.3, GLM-5.3 Flash, Gemma 4 31B, and DeepSeek V4.1 Flash 1017 are serverless: any API key can call them. DeepSeek V4 Pro, Kimi K3.1 Pro, Qwen 3.8 27B, Clef, and EmbeddingGemma 2 are on Provisioned Throughput and are enabled per organisation.
For classification, routing, or scoring, use Sarvam Prism, or
Clef for questions about images, on the
Decisions API. They return a calibrated probability for every option instead of generated text.
For search and retrieval, EmbeddingGemma 2 returns text embeddings on POST /v2/embeddings.
Choose a model
Pick a use case, or filter by status and input type. Click a model ID to copy it.
Sarvam's flagship for Indian-language reasoning, coding, and agents.
- Context
- 128K
- Reasoning
- On (low), can turn off
- Input
- Text
- ₹ per 1M in / out
- ₹10 / ₹25
Tuned for real-time dialogue and voice agents in Indian languages.
- Context
- 32K
- Reasoning
- No
- Input
- Text
- ₹ per 1M in / out
- ₹10 / ₹25
Calibrated yes/no, choice, and score answers instead of generated text.
- Context
- 32K
- Reasoning
- No
- Input
- Text
- ₹ per 1M in / out
- ₹4 / ₹0
Software engineering and long-horizon agents.
- Context
- 1M
- Reasoning
- On, can't turn off
- Input
- Text
- ₹ per 1M in / out
- ₹126 / ₹390
Faster GLM-5.3 with image input.
- Context
- 1M
- Reasoning
- On, can't turn off
- Input
- TextImage
- ₹ per 1M in / out
- ₹13.5 / ₹45
Fast direct answers and image understanding.
- Context
- 256K
- Reasoning
- Off by default
- Input
- TextImage
- ₹ per 1M in / out
- ₹35 / ₹90
Low-cost reasoning for long documents and agents.
- Context
- 1M
- Reasoning
- On, can turn off
- Input
- TextImage
- ₹ per 1M in / out
- ₹14 / ₹55
Larger DeepSeek V4 for harder text reasoning.
- Context
- 1M
- Reasoning
- On, can turn off
- Input
- Text
- ₹ per 1M in / out
- ₹115 / ₹350
Always-on reasoning with image and video input.
- Context
- 1M
- Reasoning
- On, can't turn off
- Input
- TextImageVideo
- ₹ per 1M in / out
- ₹200 / ₹950
Mid-size reasoning model with image input and tool calling.
- Context
- 256K
- Reasoning
- On, can turn off
- Input
- TextImage
- ₹ per 1M in / out
- ₹18 / ₹230
Calibrated yes/no, choice, and score answers about text and images.
- Context
- 64K
- Reasoning
- No
- Input
- TextImage
- ₹ per 1M in / out
- ₹20 / ₹0
768-dimension text embeddings for search, retrieval, and clustering.
- Context
- 8K
- Reasoning
- No
- Input
- Text
- ₹ per 1M in / out
- ₹2 / ₹0
Prices are in ₹ per 1M tokens; reasoning is billed as output. See Pricing. Each model’s reasoning default, and how to turn it off, is under Reasoning.
Every chat model supports tool calling, streaming, and structured output (response_format).
Every model returns one completion per request: n > 1 returns 400. Support for log probabilities and other parameters varies by
model — see each model’s own Supported Parameters table, or
V2 feature support
for the full matrix.
All models as a table
Introductory pricing on sarvam-105b, sarvam-105b-conversations, and deepseekv4.1-flash-1017 runs through the end of 2026.
- Indian languages:
sarvam-105b, orsarvam-105b-conversationsfor voice agents - Coding and agents:
glm5.3, the strongest reasoning - Lowest cost:
glm5.3-flash, the lowest per-token price for open-weight chat - Fastest answers, with image input:
gemma4, which skips reasoning by default - Reasoning on images:
glm5.3-flashorkimi-k3.1-pro
Provisioned Throughput
Token Factory models are offered in two ways:
- Serverless: any Sarvam API key can call the model, billed per token. Sarvam 105B, Sarvam 105B Conversations, Sarvam Prism, GLM-5.3, GLM-5.3 Flash, Gemma 4 31B, and DeepSeek V4.1 Flash 1017 (including its high-throughput interactive variant) are serverless.
- Provisioned Throughput: capacity for the model is set up for your workload and enabled for your organisation, so every API key in it can call the model.
These models are on Provisioned Throughput:
To get access, contact us with the model you need and your expected volume. Without access:
- DeepSeek V4 Pro returns
400 invalid_request_error: “This model runs on Provisioned Throughput and is not enabled for your organisation”. It is listed inGET /v2/modelsfor every key. - The other Provisioned Throughput models return
404 not_found_error, the same as an unknown model, and aren’t listed inGET /v2/modelsuntil access is enabled.
In GET /v2/models, each model has an access field: "provisioned" for Provisioned Throughput
models and "standard" for serverless ones.
Quickstart
Already use the OpenAI SDK? Point base_url at https://api.sarvam.ai/v2 and pass your
Sarvam key as api_key. The endpoint also accepts Authorization: Bearer <key>. Native
Sarvam clients use the api-subscription-key header. See Authentication.
Common patterns
Streaming
Reasoning
Tool calling
Images (Gemma)
Set stream=True to receive server-sent events. Reasoning models stream
reasoning_content deltas first, then the final content.
Reasoning
Most models think before answering; Gemma 4 does only when you set an effort. Defaults, and whether thinking can be turned off, differ by model:
Send thinking and chat_template_kwargs through extra_body in the SDKs. Accepted effort values
are listed on each model page.
On the Responses API, do not send the string "max" to glm5.3 or glm5.3-flash. It returns 400.
Omit reasoning.effort instead: that gives max on glm5.3 and high on glm5.3-flash.
Reasoning tokens count toward max_tokens and are billed as output. If you see empty
content with finish_reason: "length", the model spent the whole budget thinking. Raise
max_tokens or lower the effort. On glm5.3, max_tokens defaults to 2048.
Troubleshooting
Production tips
Retry on 429 and 503
Rate limits and temporary overload are retryable. The OpenAI SDK retries these automatically
with backoff when you raise max_retries:
Budget tokens for reasoning
Set max_tokens well above your expected answer length, at least a few thousand for
high or max effort, because thinking tokens share the same budget.
Match effort to the task
Use low for extraction, classification and chat. Reserve high and max for math,
debugging and multi-step planning, where extra thinking improves quality at higher latency and cost.
Switch models without code changes
Read the model ID from configuration, for example model=os.environ.get("SARVAM_MODEL", "glm5.3"),
so you can compare models on your own prompts. Only change parameters the target model supports,
see the comparison table above.
Platform details
Endpoints and model discovery
- Chat:
POST https://api.sarvam.ai/v2/chat/completions, see the API reference. - Responses:
POST https://api.sarvam.ai/v2/responses, see the API reference. - Models:
GET /v2/modelslists the served models, including Provisioned Throughput models your organisation may not have access to yet.
Billing and rate limits
Usage is metered per token against your Sarvam credits, see Pricing. Reasoning is billed as output. Limits apply per API key, see Credits & Rate Limits.