- Published on
- Views
Sarvam Token Factory: What India's New Inference Platform Hosts, and How to Call It From Java
- Authors

- Name
- Javed Shaikh

Sarvam's platform page. Screenshot from sarvam.ai.
On November 16, 2026, Sarvam AI launched Token Factory: an inference platform that serves large language models from GPUs located in India, behind one OpenAI-compatible API. The catalog includes Sarvam's own model, Sarvam 105B, and open-weight models from DeepSeek, Zhipu (GLM), Moonshot (Kimi), Alibaba (Qwen) and Google (Gemma).
The reaction on LinkedIn split in two within a day. One side called it a milestone for Indian AI. The other side asked why a company that received government GPU support to build an Indian model is now hosting Chinese ones. One comment put the criticism in a single line: "So you're just an inference provider of Chinese models now."
I am glad an Indian company is building at this layer, and I also think both camps are arguing about the wrong thing. The useful questions for a developer are narrower. Does India have its own LLM or not? What exactly is Token Factory? What does it cost, how do I call it, and what should I check before putting it near production?
Prices, model IDs and limits below were read from Sarvam's documentation on November 20, 2026. Three of the prices are marked introductory through the end of 2026. Treat the numbers as a snapshot.
Who is Sarvam, and what did it build before this?
Sarvam was founded in August 2023 by Dr. Vivek Raghavan and Dr. Pratyush Kumar and is based in Bengaluru. Its about page lists Lightspeed, Peak XV Partners, Khosla Ventures, HCLTech, Bessemer Venture Partners and NVIDIA as investors. Analytics India Magazine reports that the company was selected under the IndiaAI Mission and received a ₹98.68 crore GPU subsidy covering 4,096 NVIDIA H100 GPUs.
Before Token Factory, Sarvam's API business was mostly about Indian languages and voice. Its documentation lists these model families:
| Model | What it does |
|---|---|
| Saaras | Speech to text |
| Bulbul | Text to speech |
| Mayura, Sarvam-Translate | Translation and text processing |
| Sarvam Vision | Document intelligence |
| Sarvam 105B, Sarvam 30B | Reasoning LLMs |
That list is the answer to "what problem is Sarvam solving". A support call in Marathi, a loan form scanned in Tamil, a voice bot that has to understand Hindi mixed with English: global models handle these less well than they handle English, and Sarvam's products are built around that gap.
Does India have its own LLM, or is Sarvam only calling other models?
It has its own, and the distinction between two generations of Sarvam models matters here.
The older one, Sarvam-M (24B parameters, May 2025), was built on top of Mistral Small, according to Analytics India Magazine. That was a fine-tune of a French open-weight model. It has since been deprecated and is no longer available through the API.
The current one, Sarvam 105B, is a different case. Sarvam's engineering post from March 6, 2026 and the model page describe it as follows:
- A Mixture-of-Experts transformer with 128 sparse experts and more than 105B total parameters, "trained from scratch".
- Pre-trained on 12 trillion tokens. The smaller Sarvam 30B was pre-trained on 16 trillion.
- Trained "entirely in India on compute provided under the IndiaAI mission".
- A tokenizer covering the 22 scheduled Indian languages across 12 scripts, with a large share of the multilingual training budget spent on the 10 most-spoken ones.
- Weights published on Hugging Face and on AIKosh, the government's model repository. The docs list the license as Apache 2.0.
So the comment asking "is it a Chinese model retrained?" has a clear answer for Sarvam 105B: Sarvam says it is not, and the weights are public for anyone who wants to inspect the architecture.
The benchmark figures for Sarvam 105B (for example 98.6 on Math500 and a 90% pairwise win rate on Indian-language tasks) come from Sarvam's own tables, and the Indian-language comparison was scored by an LLM judge. I have not seen an independent evaluation. Other builders quoted in the LinkedIn coverage say plainly that Sarvam's models are not yet competitive with the frontier.
What is Token Factory?
Token Factory is the part of Sarvam's API that serves LLMs. The docs describe it in one sentence: it "serves open-weight LLMs (Sarvam 105B, GLM, Gemma, DeepSeek, Kimi) on one OpenAI-compatible API", using the same key, SDK and credits as the speech and translation APIs.
Two terms need defining.
An open-weight model is a model whose trained parameters have been published as files. Anyone with enough GPU memory can download those files and run the model. Running it does not require any connection to the lab that trained it.
An inference provider is a company that does that hosting for you and charges per token. Together AI, Fireworks and Groq are providers of this kind outside India. Token Factory puts Sarvam in the same business, with the hardware in India.
Sarvam's launch animation for Token Factory. Recorded from Sarvam's site.
From the caller's side, the path of a request looks like this:
One endpoint, several models, hardware in India
The model changes with one string in the request. The endpoint, the key and the bill stay the same.
Which models does it host, and what do they cost?
These are the serverless models, the ones any API key can call. Prices are in rupees per million tokens, from the pricing page.
| Model ID | Built by | Context | Input | Cached input | Output |
|---|---|---|---|---|---|
sarvam-105b | Sarvam (India) | 128K | ₹10 | ₹0.25 | ₹25 |
sarvam-105b-conversations | Sarvam (India) | 32K | ₹10 | ₹0.25 | ₹25 |
deepseekv4.1-flash-1017 | DeepSeek (China) | 1M | ₹14 | ₹0.25 | ₹55 |
glm5.3-flash | Zhipu / Z.ai (China) | 1M | ₹13.5 | ₹2.5 | ₹45 |
gemma4 (Gemma 4 31B) | Google (US) | 256K | ₹35 | ₹10 | ₹90 |
glm5.3 | Zhipu / Z.ai (China) | 1M | ₹126 | ₹20 | ₹390 |
The sarvam-105b, sarvam-105b-conversations and deepseekv4.1-flash-1017 prices are introductory through the end of 2026. There is also an interactive DeepSeek endpoint tuned for coding agents (₹25 in, ₹105 out) and Sarvam Prism, a decision model built on Sarvam 105B that is billed on input only.
A second group is available only on Provisioned Throughput, which Sarvam enables per organization: DeepSeek V4 Pro, Kimi K3.1 Pro, Qwen 3.8 27B, a decision model called Clef, and EmbeddingGemma 2 for embeddings.
A note on the count, because the public debate keeps quoting it. Analytics India Magazine says six of eight models are Chinese. One LinkedIn post says twelve models, three of them Sarvam's. The docs list thirteen model IDs across both groups. The disagreement comes from whether variants and provisioned-only models are counted. The table above is what a new account can call today.
What does that mean for a real workload?
Take a customer-support assistant where each request carries 1,500 input tokens (system prompt, retrieved policy text, the customer's message) and produces 300 output tokens. At 100,000 requests a month:
| Model | Cost per request | 100,000 requests |
|---|---|---|
sarvam-105b | (1,500 × ₹10 + 300 × ₹25) / 1,000,000 = ₹0.0225 | ₹2,250 |
deepseekv4.1-flash-1017 | (1,500 × ₹14 + 300 × ₹55) / 1,000,000 = ₹0.0375 | ₹3,750 |
gemma4 | (1,500 × ₹35 + 300 × ₹90) / 1,000,000 = ₹0.0795 | ₹7,950 |
glm5.3 | (1,500 × ₹126 + 300 × ₹390) / 1,000,000 = ₹0.306 | ₹30,600 |
Two things move these numbers in practice. Cached input is priced far below fresh input (₹0.25 against ₹10 on Sarvam 105B), so a long system prompt that repeats across requests costs much less than the table suggests. In the other direction, reasoning models produce thinking tokens before the answer, and the response reports them under usage.completion_tokens_details.reasoning_tokens. Read the usage object from a few hundred real calls before you put a figure in a budget.
How do I call it?
The base URL is https://api.sarvam.ai/v2. Authentication is a header named api-subscription-key; the docs say the endpoint also accepts Authorization: Bearer <key>, which is what OpenAI-compatible clients send. Every verified signup gets ₹100 of credits that do not expire.
The wire format, in curl:
curl -X POST https://api.sarvam.ai/v2/chat/completions \
-H "api-subscription-key: $SARVAM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sarvam-105b",
"messages": [{"role": "user", "content": "Explain UPI in two sentences."}],
"max_tokens": 500
}'
The same call from plain Java 17, with no dependencies. This sends a Hindi support question to Sarvam 105B and handles the status codes a caller has to distinguish:
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
public class SarvamChat {
private static final String URL = "https://api.sarvam.ai/v2/chat/completions";
public static void main(String[] args) throws Exception {
String apiKey = System.getenv("SARVAM_API_KEY");
if (apiKey == null || apiKey.isBlank()) {
throw new IllegalStateException("Set SARVAM_API_KEY first");
}
String body = """
{
"model": "sarvam-105b",
"messages": [
{"role": "system", "content": "You are a support assistant for a bank. Answer in the user's language."},
{"role": "user", "content": "मेरा UPI ट्रांजैक्शन फेल हो गया लेकिन पैसे कट गए। अब क्या करूं?"}
],
"max_tokens": 500,
"temperature": 0.2
}
""";
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(5))
.build();
HttpRequest request = HttpRequest.newBuilder(URI.create(URL))
.timeout(Duration.ofSeconds(60))
.header("api-subscription-key", apiKey)
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response =
client.send(request, HttpResponse.BodyHandlers.ofString());
switch (response.statusCode()) {
case 200 -> System.out.println(response.body());
case 402 -> System.err.println("Credits exhausted: " + response.body());
case 403 -> System.err.println("Key rejected: " + response.body());
case 429, 503 -> System.err.println("Back off and retry: " + response.body());
default -> System.err.println(response.statusCode() + ": " + response.body());
}
}
}
The response follows the OpenAI chat completion shape. The fields worth knowing:
choices[0].message.contentholds the answer.choices[0].message.reasoning_contentholds the model's thinking, when the model reasons.usageholdsprompt_tokens,completion_tokens,total_tokens, and the cached and reasoning token counts.
The status codes differ from what OpenAI users may expect. A bad key returns 403, not 401. Exhausted credits return 402. Rate limiting returns 429, and an overloaded model can return 503. On the pay-as-you-go plan the limit is 60 requests per minute for the Sarvam 105B models and 50 for the others.
For a Spring Boot service, the OpenAI compatibility means Spring AI's OpenAI starter should need only configuration, since it sends the key as a Bearer token:
spring.ai.openai.base-url=https://api.sarvam.ai
spring.ai.openai.api-key=${SARVAM_API_KEY}
spring.ai.openai.chat.completions-path=/v2/chat/completions
spring.ai.openai.chat.options.model=sarvam-105b
The existing ChatClient code stays as it is. The same idea applies to LangChain4j or any other client that lets you override the base URL.
The documentation is not fully consistent yet. The quickstart and the Sarvam 105B page still show /v1/chat/completions, which serves only Sarvam's own models, while the Token Factory pages use /v2 for everything. One page says rate limits apply per account and another says per API key. Use /v2, and confirm the rate-limit scope with Sarvam before you design around it.
Who is this useful for?
Students and individual developers. ₹100 of credit is about 4,400 requests of the size used in the cost example above on Sarvam 105B. That is enough to build a small project, compare Indian-language answers across four models, and learn the OpenAI-style API that most of the industry uses, without a card.
Product teams. A team that already calls an OpenAI-compatible endpoint can switch by changing the base URL, the key and the model ID. That makes an A/B comparison between Sarvam 105B and DeepSeek or GLM on your own prompts a one-day task. Nishant Soni, founder of NonBioS.ai, made a related point in the LinkedIn coverage: his team could not find a stable, high-throughput provider for Kimi and DeepSeek, and that availability problem is what Token Factory addresses for him.
Banks, insurers, government and other regulated organizations. For them the interesting property is location. A request to a US-hosted API sends customer text out of the country. A request to Token Factory is processed on hardware in India. For a compliance team that has blocked external LLM APIs on data-localization grounds, that changes the conversation, though it does not end it, as the next section explains.
Is this "sovereign AI", or reselling Chinese models?
Both descriptions are partly accurate, because "sovereign" is being used for four different layers at once. A LinkedIn post by Kalpit Patel compressed the criticism well: "Server in India. Models from China. Chips from America."
Separating the layers gives a clearer picture:
| Layer | When you call sarvam-105b | When you call glm5.3 or deepseekv4.1-flash-1017 |
|---|---|---|
| Who trained the weights | Sarvam, in India | A Chinese lab |
| Who runs the inference software | Sarvam | Sarvam |
| Where the prompt is processed | India | India |
| Who made the GPUs | NVIDIA | NVIDIA |
Hosting a Chinese open-weight model in India does not make the model Indian. Its training data, its refusals and its blind spots were decided elsewhere. What hosting does change is where your data goes: the weights are files running on Sarvam's machines, and the lab that produced them is not in the request path.
The criticism that carries more weight is about priorities, and it has two parts.
The first is public money. Analytics India Magazine notes that Sarvam was supported under the IndiaAI Mission with the expectation of contributing to India's own foundation-model capability, and asks whether such a company should be judged on commercial success or on original research. The supporters' answer, given by investor Hemant Mohapatra of Lightspeed (who acknowledged his bias) and by others, is that global providers already earn money serving these same models to Indian customers, and that inference revenue can fund research. I have not seen a source confirming which GPUs Token Factory runs on, so the claim that subsidized hardware is serving Chinese models is an inference, not an established fact.
The second is "anyone with GPUs can do this". That undersells the engineering. Serving a 105B-parameter model at interactive speed for many users is a scheduling and memory problem. Sarvam's engineering post describes fused kernels, custom scheduling and splitting prefill from decode. Its launch post claims a first token in 200 ms and 330 tokens per second for a single user on Sarvam 105B, and 95.7% of DeepSeek prompt tokens served from cache. But the criticism is right that this is not a moat. JarvisLabs launched a similarly named product about two months earlier, and a person associated with it says their benchmarks came out on par with or faster than Sarvam's. Both sets of numbers are vendor claims.
The question I would want answered is the one Kalpit Patel asked: what share of Token Factory's tokens will be served by Sarvam's own models, and will Sarvam publish it? That single number would show whether the hosted models are funding Sarvam 105B or replacing it.
What should a team check before using it?
- Data retention. Analytics India Magazine mentions zero-data-retention options for enterprises. I could not find a retention or residency statement in the public docs. Get it in writing before sending customer data.
- Latency on your prompts. The 200 ms and 330 tokens per second figures are Sarvam's, measured on Sarvam's workload. Measure time to first token and tokens per second with your own prompt sizes, from your own region, at your own concurrency.
- Quality in your languages. If the use case is Marathi or Tamil support, build a set of 100 real questions with known good answers and run all four serverless models through it. The price difference between Sarvam 105B and GLM-5.3 is more than 13 times on this workload, so the comparison is worth a day.
- Price after December. Three prices are introductory. Budget for a change in January 2027.
- Model behavior. A model trained in another country reflects that country's training choices. For regulated or public-facing use, test the refusal behavior and the factual answers on the topics your users will raise.
- Throughput limits. 60 requests per minute is fine for a prototype and thin for a production support queue. The Pro plan (₹9,999 a month) raises it to 200.
Final thought
Sarvam has done two separate things, and the debate keeps merging them.
It trained Sarvam 105B from scratch in India and published the weights. That is the sovereign-model work, and it should be judged on independent evaluations, which are still thin.
It also built an inference business that serves that model alongside foreign open-weight models from Indian hardware. That is infrastructure work. It solves a real problem for teams that need data to stay in the country, and it is the kind of business that can pay for the first kind of work.
For a developer, the practical position is simple: there is now an India-hosted, rupee-priced, OpenAI-compatible endpoint where an Indian model and its foreign competitors can be compared with one changed string. I would use the free credits to run that comparison on my own prompts before forming an opinion on either the model or the debate.
Sources
- Sarvam docs: Token Factory, models, pricing and rate limits, Sarvam 105B model page
- Sarvam engineering post on Sarvam 30B and 105B, March 6, 2026
- Sarvam: about the company
- Analytics India Magazine: Sarvam's Token Factory sparks India's sovereign AI debate again, November 18, 2026
- LinkedIn News: Sarvam AI's big bet gets people talking, November 19, 2026, including Sarvam's launch post and the comments quoted above
