Esc to close · ⌘K / Ctrl-K opens search anywhere
Serve Hindi and Indian-language chat on India-resident Krutrim and Sarvam models.
Krutrim + Sarvam, India routesSovereigntyBeginner8 min
For Indian-language products you want models that were built for Indic text and that stay in India. Krutrim and Sarvam cover this — point a system prompt at them and pin residency.
You'll use: India-resident Indic models + data_policy: "india_only". Browse them in the model catalog.
from openai import OpenAI
client = OpenAI(base_url="https://api.bharatrouter.com/v1", api_key="br-...")
r = client.chat.completions.create(
model="gemma-4-e4b-it",
messages=[
{"role": "system", "content": "Aap ek sahaayak hain. Hamesha Hindi mein jawab dein."},
{"role": "user", "content": "Maharashtra ki raajdhaani kya hai?"},
],
extra_body={"data_policy": "india_only", "optimize": "price"},
)
print(r.choices[0].message.content)| Model | Good for | Residency |
|---|---|---|
gemma-4-e4b-it | General Hindi/English chat, India-resident route | 🇮🇳 India |
sarvam/<model> | Sarvam Indic models — bring your own Sarvam key (BYOK) | 🇮🇳 India |
Krutrim is listed first by design — it's the home model. Add a fallback chain across these three for resilience without ever leaving India.
More recipes in the Cookbook, or see the fullAPI reference.