Token Factory
Token Factory serves leading open-weight LLMs on Sarvam infrastructure through
one OpenAI-compatible API. It uses the same API key, SDK, and credits as every other Sarvam
API: there is nothing new to sign up for. Switching models is a one-line change to the model field.
Switch from OpenAI in two lines
Point your client at https://api.sarvam.ai/v2, pass your Sarvam key, and pick a model.
Python (OpenAI SDK)
Python (Sarvam SDK)
cURL
Models
Introductory pricing runs through the end of 2026. See Pricing.
Need a yes/no, a label, or a score instead of generated text? Sarvam Prism (sarvam-prism)
is a System-1 decision model built on Sarvam 105B. On POST /v2/systemone it returns a calibrated probability for every option, at ₹4 per 1M input tokens (₹0 output).
DeepSeek V4 Pro, Kimi K3.1 Pro,
Qwen 3.8 27B, Clef (a decision model that also reads images),
and EmbeddingGemma 2 (text embeddings on POST /v2/embeddings)
are on Provisioned Throughput and are enabled per organisation. See Pricing
for rates.
Moving from another provider? Follow the guide for OpenRouter, Fireworks AI, or Together AI.