Sarvam Token Factory: Free API Key and Credits, Pricing in Rupees and Dollars, Every Model ID, and How to Call Sarvam 105B, GLM-5.3 and DeepSeek
Sarvam AI, the Bengaluru company behind the Sarvam models, opened Token Factory on November 16, 2026. It’s one API for a dozen popular open-weight AI models, including its own Sarvam 105B, GLM-5.3, DeepSeek V4.1 Flash, Kimi K3.1 Pro and Google’s Gemma 4, all running on GPUs in India and billed in rupees. Every new account gets ₹100 of free credits that never expire.
Here’s what most of the launch coverage missed: Token Factory isn’t the cheap option for most of its models. At today’s exchange rate, GLM-5.3 input costs about 19 times OpenRouter’s listed price, and Kimi K3.1 Pro about 9 times. The real bargains are Sarvam 105B, at an introductory ₹10 per million input tokens, and DeepSeek V4.1 Flash, at about half OpenRouter’s price. And one setting matters more than any price: by default, Sarvam may use your content to improve its models unless you opt out.
This guide covers how to get your free API key, your first call in Python, every model ID with prices in rupees and dollars, what Sarvam 105B is good at, how to switch from OpenRouter, and the errors you’re most likely to hit.
What Sarvam Token Factory is, in plain English
Big open-weight models such as GLM-5.3 or DeepSeek V4.1 Flash are free to download, but almost nobody can run them at home: they need data-center GPUs worth more than a house. So companies called inference providers run them for you and charge per token, the small chunks of text a model reads and writes. Together AI and Fireworks AI are well-known examples, and OpenRouter sells access to many of them through one API. Token Factory is Sarvam’s entry into that business.
Three things set it apart. The models run on Sarvam-operated GPUs in India, and Sarvam hosts the weights itself, so a request for DeepSeek or GLM never goes to those companies’ own overseas APIs. You pay in rupees, with the same account, key and credits as Sarvam’s speech, translation and document APIs. And it includes Sarvam’s own Sarvam 105B, a model built for Indian languages that you won’t find on OpenRouter.
The launch also started an argument. Several of the models, including DeepSeek, GLM, Kimi and Qwen, come from Chinese companies, and critics asked why a company known for “sovereign” Indian AI is serving them. Sarvam’s documentation stresses where the computing happens: on its own hardware in India, with no requests passed to the original developers.
Jake: "So it’s OpenRouter, but made in India?"
Ethan: "Close. It’s a smaller menu, all served from India, billed in rupees, and it includes Sarvam’s own Indian-language model."
Every Token Factory model, its ID and its price
Models come in two kinds. Serverless models work with any Sarvam key the moment you sign up. Provisioned Throughput models need Sarvam to set up capacity for your organization first. Prices are in rupees per million tokens and are the same on every plan. Thinking tokens are billed as output.
| Model | Model ID | Context | Input / output per 1M | Access |
|---|---|---|---|---|
| Sarvam 105B | sarvam-105b | 128K | ₹10 / ₹25* | Serverless |
| Sarvam 105B Conversations | sarvam-105b-conversations | 32K | ₹10 / ₹25* | Serverless |
| GLM-5.3 | glm5.3 | 1M | ₹126 / ₹390 | Serverless |
| GLM-5.3 Flash | glm5.3-flash | 1M | ₹13.5 / ₹45 | Serverless |
| Gemma 4 31B | gemma4 | 256K | ₹35 / ₹90 | Serverless |
| DeepSeek V4.1 Flash 1017 | deepseekv4.1-flash-1017 | 1M | ₹14 / ₹55* | Serverless |
| DeepSeek V4.1 Flash 1017 Interactive | deepseekv4.1-flash-1017-interactive | 1M | ₹25 / ₹105 | Serverless |
| DeepSeek V4 Pro | deepseekv4-pro | 1M | ₹115 / ₹350 | Provisioned |
| Kimi K3.1 Pro | kimi-k3.1-pro | 1M | ₹200 / ₹950 | Provisioned |
| Qwen 3.8 27B | qwen38-27b | 256K | ₹18 / ₹230 | Provisioned |
* Introductory prices for Sarvam 105B, Sarvam 105B Conversations and DeepSeek V4.1 Flash 1017 run until the end of 2026. Sarvam also lists two decision and search models: Sarvam Prism (sarvam-prism), which answers yes/no, choice and score questions with a probability for each option at ₹4 per million input tokens and nothing for output, and Clef plus EmbeddingGemma 2 on Provisioned Throughput. Model IDs are case-sensitive, so copy them exactly.
Which one to pick? Sarvam’s own suggestions are sensible: sarvam-105b for Indian languages, glm5.3 for coding and agents, glm5.3-flash for the lowest cost, and gemma4 for the fastest answers with image input. We cover the models themselves in our guides to GLM-5.3, DeepSeek V4.1 Flash, Gemma 4 and Kimi.
Is the Sarvam API free? Credits, plans and rate limits
You can start free. Sarvam gives ₹100 of free credits to every verified user at signup, they work on every Sarvam API, and they never expire. That doesn’t sound like much until you do the math: at Sarvam 105B’s introductory price, ₹100 buys about 10 million input tokens or 4 million output tokens. That’s enough to build and test a real prototype.
After that, you choose a plan. The plan doesn’t change the token prices; it changes your rate limits and support:
| Plan | Monthly fee | Best for | Rate limit: GLM-5.3, Gemma 4, DeepSeek | Rate limit: Sarvam 105B |
|---|---|---|---|---|
| Pay as you go | None | Prototyping and testing | 50 requests/min | 60 requests/min |
| Pro | ₹9,999 | Startups and proofs of concept | 200 requests/min | 200 requests/min |
| Growth | ₹49,999 | Production workloads | 1,000 requests/min | 300 requests/min |
| Business | ₹1,99,999 (credits included) | Sustained high volume | Ask Sarvam | Ask Sarvam |
Limits apply to your whole account, not to each key, so creating more keys doesn’t buy more requests. All prices exclude GST. When your credits run out you get error 402 (insufficient_quota_error), which is different from 429, too many requests. Adding credits doesn’t change your plan or your limits.
Jake: "₹100 free and it never expires?"
Ethan: "Yes. Spend it slowly while you learn. Just don’t leave a test script running in a loop overnight."
How to get a Sarvam API key
- Go to the Sarvam dashboard at indus.sarvam.ai and sign up or log in. Verify your account so the free ₹100 is added.
- Open Key Management and create a new API key. Copy it somewhere safe, such as a password manager.
- Save it as an environment variable called
SARVAM_API_KEY, so it never sits inside your code. On macOS or Linux:export SARVAM_API_KEY="your-api-key". In Windows PowerShell:$env:SARVAM_API_KEY = "your-api-key". - Install an SDK. Token Factory works with the OpenAI package you may already have (
pip install openai), or with Sarvam’s own:pip install -U sarvamaifor Python,npm install sarvamai@latestfor JavaScript.
The same key works for Token Factory and every other Sarvam API, so you don’t sign up for anything new.
Your first Token Factory call
If your code already talks to OpenAI, switching takes two lines: the base URL and the key. Here’s the OpenAI Python SDK calling Sarvam 105B:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.sarvam.ai/v2", # instead of https://api.openai.com/v1
api_key=os.environ["SARVAM_API_KEY"],
)
response = client.chat.completions.create(
model="sarvam-105b", # or "glm5.3", "glm5.3-flash", "gemma4", "deepseekv4.1-flash-1017"
messages=[{"role": "user", "content": "Explain UPI in two sentences."}],
max_tokens=2000,
)
print(response.choices[0].message.content)
With Sarvam’s own SDK the call looks almost the same:
import os
from sarvamai import SarvamAI
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
response = client.chat.completions_v2(
model="glm5.3",
messages=[{"role": "user", "content": "Explain UPI in two sentences."}],
max_tokens=1000,
)
print(response.choices[0].message.content)
And with plain cURL, for testing from a terminal:
curl -X POST https://api.sarvam.ai/v2/chat/completions \
-H "api-subscription-key: $SARVAM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm5.3", "messages": [{"role": "user", "content": "Explain UPI in two sentences."}], "max_tokens": 1000}'
Sarvam accepts both its own api-subscription-key header and the standard Authorization: Bearer header that the OpenAI SDK sends. Every chat model supports streaming, tool calling and structured output, and there’s an OpenAI-style Responses API at /v2/responses too. One limit to know: each request returns exactly one answer, and asking for more with n greater than 1 returns error 400.
Sarvam Token Factory pricing in dollars, and how it compares with OpenRouter
Here are Sarvam’s prices converted at ₹92.93 to the dollar (the rate on November 25, 2026), beside the price OpenRouter listed for the same model on the same day. OpenRouter routes requests to several hosting companies, so its listed price is the cheapest one it shows.
| Model | Sarvam (₹ per 1M, in / out) | Sarvam in dollars | OpenRouter listed price |
|---|---|---|---|
| Sarvam 105B | ₹10 / ₹25 | $0.11 / $0.27 | Not available |
| GLM-5.3 | ₹126 / ₹390 | $1.36 / $4.20 | $0.070 / $1.40 |
| GLM-5.3 Flash | ₹13.5 / ₹45 | $0.15 / $0.48 | $0.12 / $0.38 |
| Gemma 4 31B | ₹35 / ₹90 | $0.38 / $0.97 | $0.20 / $0.40 |
| DeepSeek V4.1 Flash 1017 | ₹14 / ₹55 | $0.15 / $0.59 | $0.30 / $1.20 |
| DeepSeek V4 Pro | ₹115 / ₹350 | $1.24 / $3.77 | $0.11 / $4.44 |
| Kimi K3.1 Pro | ₹200 / ₹950 | $2.15 / $10.22 | $0.24 / $8.40 |
| Qwen 3.8 27B | ₹18 / ₹230 | $0.19 / $2.47 | $0.035 / $1.50 |
Read it carefully, because the answer changes by model. DeepSeek V4.1 Flash is about half OpenRouter’s price on Sarvam during the introductory period, and Sarvam 105B isn’t sold anywhere else. GLM-5.3 Flash costs a little more on Sarvam. Gemma 4 costs about twice as much, and GLM-5.3, DeepSeek V4 Pro, Kimi K3.1 Pro and Qwen 3.8 27B cost much more on the input side, although DeepSeek V4 Pro’s output is actually a little cheaper on Sarvam. Two more things to add to Sarvam’s side of the bill: prices exclude GST, and the dollar figures move with the exchange rate.
So why would anyone pay more? Because price per token isn’t the only cost. If your customers are in India, keeping their data inside the country can matter more than a few rupees. Paying in rupees, from an Indian account, also avoids the foreign-card problems that trip up many Indian developers on overseas services. And if you need Indian-language quality, Sarvam 105B is the reason to be there at all.
Jake: "So I should use OpenRouter for GLM and Sarvam for Sarvam 105B?"
Ethan: "If the cheapest token is all you care about, yes. If your data has to stay in India, Sarvam is the only one of the two that promises that."
Sarvam 105B: what it is and whether it’s open source
Sarvam 105B is Sarvam’s flagship model, trained from scratch. It’s a mixture-of-experts model with more than 105 billion parameters split across 128 experts, so only a small part of it works on each word, which keeps it fast. It reads up to 128,000 tokens and is built for the 10 most-spoken Indian languages plus English, in native script, in romanized form such as Hindi typed in English letters, and in the mixed language most people actually text in.
Is Sarvam 105B open source? Yes. It’s released under the Apache 2.0 license, which allows commercial use, and the weights are on Hugging Face under sarvamai. A new checkpoint, sarvam-105b-1711, was uploaded on November 15, 2026, alongside the original from March. Running it yourself is another matter: Sarvam’s 4-bit GGUF file is about 64 GB, so you need roughly 80 GB or more of combined graphics and system memory. For almost everyone, the API is the practical route.
How good is it? On Sarvam’s own tests it wins 90% of head-to-head comparisons on Indian-language benchmarks and 84% on STEM, math and coding. Treat those as the maker’s numbers. For an independent view, Sarvam itself points developers to Artificial Analysis, which publishes scores for most of these models.
There’s also sarvam-105b-conversations, the same model tuned for real-time dialogue and voice agents. It has a smaller 32,000-token context and never thinks before answering, which keeps replies quick.
Jake: "Should I use Sarvam 105B even for English?"
Ethan: "For an Indian audience, test it. It was trained on the romanized and mixed-language text, the Hinglish, that Indian users really type, which English-first models see far less of. For pure English coding, Sarvam itself recommends GLM-5.3."
Thinking mode: the setting behind empty replies
Most Token Factory models are reasoning models: they think before they answer, and those thinking tokens count against max_tokens. Set the limit too low and the model spends all of it thinking, so you get an empty reply with finish_reason: "length". That’s the number one beginner mistake, and each model handles thinking differently:
| Model | Thinks by default? | How to turn it off |
|---|---|---|
sarvam-105b | Yes, at low effort | Send reasoning_effort=None in Python, or null in JSON |
sarvam-105b-conversations | Never | Already off |
glm5.3, glm5.3-flash | Yes | Can’t be turned off. Leave plenty of room in max_tokens |
kimi-k3.1-pro | Yes | Can’t be turned off |
deepseekv4.1-flash-1017, deepseekv4-pro | Yes | reasoning_effort: "none" |
qwen38-27b | Yes | reasoning_effort: "none", which you need for JSON output |
gemma4 | No | Already off. Set reasoning_effort to make it think |
Two details save a lot of confusion. On glm5.3, max_tokens defaults to just 2,048 if you leave it out, while the other models have no small default, so always set it yourself. And on qwen38-27b, structured JSON output only works with thinking turned off; with thinking on, the JSON lands in the thinking text and the reply comes back empty.
Moving from OpenRouter, Together AI or Fireworks
Sarvam publishes migration guides for all three, and for most apps the move is three changes: the base URL, the key and the model ID. These are the OpenRouter names and their Sarvam equivalents:
| OpenRouter model ID | Sarvam model ID | Access |
|---|---|---|
z-ai/glm-5.3 | glm5.3 | Serverless |
z-ai/glm-5.3-flash | glm5.3-flash | Serverless |
google/gemma-4-31b-it | gemma4 | Serverless |
deepseek/deepseek-v4.1-flash-1017 | deepseekv4.1-flash-1017 | Serverless |
deepseek/deepseek-v4-pro-0813 | deepseekv4-pro | Provisioned Throughput |
- Change the base URL from
https://openrouter.ai/api/v1tohttps://api.sarvam.ai/v2. - Swap your OpenRouter key for your Sarvam key. The
Authorization: Bearerheader your code already sends still works. - Replace each model name with its Sarvam ID from the table above.
If your app reads the base URL, key and model from configuration, you can switch without touching code at all. Features that only OpenRouter has, such as its provider routing options, won’t carry over, so remove them from your requests.
Use Token Factory in OpenCode (and why not Claude Code)
Coding agents that accept any OpenAI-compatible server can use Token Factory directly. In OpenCode, add Sarvam as a custom provider in opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"providers": {
"sarvam": {
"name": "Sarvam Token Factory",
"env": ["SARVAM_API_KEY"],
"package": "@opencode/ai/providers/openai-compatible",
"settings": { "baseURL": "https://api.sarvam.ai/v2" },
"models": {
"glm5.3": { "name": "GLM-5.3 (Sarvam)" },
"sarvam-105b": { "name": "Sarvam 105B" }
}
}
}
}
Then pick sarvam/glm5.3 in OpenCode. GLM-5.3 is Sarvam’s recommendation for coding and agents, and it can’t turn thinking off, so give it room. Watch the 50-requests-a-minute limit on Pay as you go: agents fire off many small requests, and a busy session can hit it.
Claude Code is a different story. It talks the Anthropic Messages API, and Sarvam’s documentation lists only OpenAI-style endpoints, so Claude Code can’t connect to Token Factory directly. If you want GLM inside Claude Code, Z.ai’s own Anthropic-compatible endpoint is the documented route, and our GLM-5.4 and Claude Code guide walks through it.
Jake: "Can I just point Claude Code at api.sarvam.ai?"
Ethan: "No, it’ll fail on the first request because the formats don’t match. Use OpenCode or any tool that speaks the OpenAI format."
Privacy: where your data goes, and the default to change
Sarvam is clear about where the work happens: inference runs on Sarvam-operated GPUs in India, and Sarvam hosts every model’s weights itself. When you call DeepSeek or Kimi through Token Factory, your prompt doesn’t travel to DeepSeek’s or Moonshot’s servers. For Indian businesses worried about where customer data ends up, that’s the main selling point.
⚠️ Turn this off before you send anything private
Sarvam’s Token Factory page says that, by default, it may use your content to train, fine-tune or improve its AI models unless you opt out in your account settings or by writing to Sarvam. Opt out first if you’re sending customer records, contracts or source code. For stricter needs, zero data retention, where prompts and replies aren’t kept at all, is available on request.
Large customers can also get dedicated capacity and an uptime commitment: Sarvam advertises 99.95% backed by an SLA. If your company runs on AWS, note that Sarvam’s speech and document models, though not the Token Factory chat models, can also be deployed inside your own AWS account through Amazon SageMaker and AWS Marketplace.
Common Token Factory errors and fixes
402 insufficient_quota_error
Your credits have run out. Add more in the dashboard. Upgrading your plan isn’t required just to keep going.
429 rate_limit_exceeded_error, or 503
You’re sending requests faster than your plan allows, or Sarvam is under heavy load. Retry with exponential backoff: wait one second, then two, then four. Remember that every key on your account shares one limit.
403 invalid_api_key_error
Sarvam returns 403, not the usual 401, for a wrong or missing key. Check that SARVAM_API_KEY is set in the same terminal or server your code runs in.
404 not_found_error for a model you know exists
Either the model ID has a typo (IDs are case-sensitive: glm5.3, not GLM-5.3), or it’s a Provisioned Throughput model such as Kimi K3.1 Pro or Qwen 3.8 27B that hasn’t been enabled for your organization. DeepSeek V4 Pro returns a 400 with a clear message instead.
An empty reply with finish_reason “length”
The model spent the whole budget thinking. Raise max_tokens or turn thinking off where the model allows it, using the table above.
400 when asking for several answers
Token Factory returns one answer per request. Remove n, or send separate requests.
Should you use Sarvam Token Factory?
Yes, if you’re building for Indian users, need Indian-language quality, want your data processed in India, or simply want to pay in rupees from an Indian account. Sarvam 105B at ₹10 per million input tokens is very cheap for a model of its size, and DeepSeek V4.1 Flash is a genuine bargain until the end of 2026.
Look elsewhere if the lowest price per token is all that matters and your data can leave India. For GLM-5.3, Gemma 4, Kimi K3.1 Pro and Qwen 3.8 27B, OpenRouter’s listed prices were lower on the day we compared. Many teams will end up using both: Sarvam for Indian-language and India-only work, a global provider for everything else. Because both speak the same OpenAI format, switching between them is a one-line change.
Jake: "What would you do first?"
Ethan: "Spend the free ₹100 on Sarvam 105B with your own real prompts in your users’ languages. Ten minutes of that tells you more than any benchmark."
Frequently asked questions
What is Sarvam Token Factory?
It is Sarvam AI’s service for running popular open-weight AI models, launched on November 16, 2026. You call Sarvam 105B, GLM-5.3, DeepSeek V4.1 Flash, Gemma 4 and others through one OpenAI-compatible API, and the models run on Sarvam’s GPUs in India.
Is the Sarvam API free?
Not forever, but you can start free. Every verified user gets ₹100 of free credits at signup, and they never expire. At Sarvam 105B’s introductory price that covers about 4 million output tokens, plenty for testing.
Is the Sarvam API key free?
Yes. Creating an account and an API key costs nothing. You only pay for what you use once the ₹100 of free credits runs out, and the Pay as you go plan has no monthly fee.
How do I get a Sarvam API key?
Sign in to the Sarvam dashboard at indus.sarvam.ai, open Key Management, and create a new key. Save it as an environment variable called SARVAM_API_KEY rather than pasting it into your code.
How much do Sarvam free credits cover?
₹100 buys about 10 million input tokens or 4 million output tokens of Sarvam 105B at its introductory price, or about 2.2 million output tokens of GLM-5.3 Flash. The credits work across every Sarvam API, including speech and translation.
What is Sarvam 105B pricing?
₹10 per million input tokens, ₹0.25 per million cached input tokens and ₹25 per million output tokens. That is an introductory price that runs until the end of 2026, and GST is extra.
Is Sarvam 105B open source?
Yes. Sarvam 105B is released under the Apache 2.0 license, and the weights are on Hugging Face under sarvamai. The newest checkpoint, sarvam-105b-1711, was uploaded on November 15, 2026.
Can I run Sarvam 105B locally?
Only on a very large machine. Sarvam’s own 4-bit GGUF of the model is about 64 GB, so you need roughly 80 GB or more of combined graphics and system memory. For everyone else, the API at ₹10 per million input tokens is the practical route.
Sarvam 105B vs GPT-OSS-120B: which is better?
They are similar in size and both are Apache 2.0 open-weight mixture-of-experts models. Sarvam 105B is built for 10 Indian languages plus English, including romanized and mixed-language text; GPT-OSS-120B is OpenAI’s English-first model. For Indian-language work, start with Sarvam 105B; otherwise test both on your own prompts.
Is Sarvam Token Factory cheaper than OpenRouter?
For DeepSeek V4.1 Flash, yes: it costs about half as much during the introductory period. For GLM-5.3, Gemma 4 31B, Kimi K3.1 Pro and Qwen 3.8 27B, OpenRouter’s listed prices were lower on November 25, 2026. Sarvam 105B is only on Sarvam.
What is the Sarvam API rate limit?
On Pay as you go, 50 requests per minute for GLM-5.3, Gemma 4 and DeepSeek V4.1 Flash, and 60 per minute for Sarvam 105B. The Pro plan raises both to 200, and Growth to 1,000 and 300.
Which models does Sarvam Token Factory have?
Serverless, for any key: Sarvam 105B, Sarvam 105B Conversations, Sarvam Prism, GLM-5.3, GLM-5.3 Flash, Gemma 4 31B and DeepSeek V4.1 Flash 1017. On Provisioned Throughput, enabled per organization: DeepSeek V4 Pro, Kimi K3.1 Pro, Qwen 3.8 27B, Clef and EmbeddingGemma 2.
Does Sarvam use my data to train its models?
By default it may. Sarvam’s Token Factory page says it may use your content to train, fine-tune or improve its models unless you opt out in account settings or by email. Turn it off before sending anything confidential.
Where does Sarvam Token Factory process my data?
On Sarvam-operated GPUs in India. Sarvam hosts the model weights itself, so requests for DeepSeek, GLM or Kimi are not forwarded to those companies’ own overseas APIs.
Can I use the OpenAI SDK with Sarvam?
Yes. Set base_url to https://api.sarvam.ai/v2, pass your Sarvam key as the api_key, and use a Sarvam model ID such as sarvam-105b or glm5.3. Sarvam accepts the Authorization: Bearer header the OpenAI SDK sends.
Why does Sarvam return an empty reply?
The model spent its whole token budget thinking. Reasoning tokens count against max_tokens, so raise max_tokens, or turn thinking off where the model allows it. You’ll see finish_reason set to length when this happens.
Why do I get a 404 for Kimi K3.1 Pro or Qwen 3.8 27B?
Those models run on Provisioned Throughput and must be enabled for your organization first. Until then they return 404, as if the model didn’t exist. Contact Sarvam with the model and your expected volume.
What does Sarvam error 402 mean?
Your credits have run out (insufficient_quota_error). Add credits in the Sarvam dashboard. It is different from 429, which means you are sending requests too fast.
Why does Sarvam return 403 instead of 401?
Sarvam returns 403 with invalid_api_key_error for a wrong or missing key. Check that the key is set in the environment where your code actually runs.
Is GST included in Sarvam prices?
No. All of Sarvam’s published prices are in Indian rupees and exclude GST, which is added to your bill.
Can I use Sarvam Token Factory with Claude Code?
Not directly. Claude Code speaks the Anthropic Messages API, and Sarvam’s documentation lists only OpenAI-style endpoints. Use an OpenAI-compatible tool such as OpenCode instead.
What is Sarvam Prism?
A decision model built on Sarvam 105B. Instead of writing text, it answers yes/no, choice and score questions with a probability for every option, at ₹4 per million input tokens and nothing for output.
Revision note. Written November 25, 2026, nine days after Sarvam opened Token Factory, with prices from Sarvam’s documentation and OpenRouter’s model list on that day. “Boond boond se sagar banta hai,” goes the Hindi proverb: drop by drop, an ocean fills. Token bills work the same way, so watch the small ones.