Skip to navigation

Sarvam Models

View as Markdown

Sarvam Models hear, speak, translate, and read across 22 Indian languages and English, including code-mixed input such as Hinglish, the way people actually talk and write. Use them to power voice agents, transcribe calls and meetings, give your product a natural voice, localize content, and turn scanned documents into structured data.

This page covers one model per section. Each section says what the model is for, shows what it returns, and ends with a first call you can copy in Python, JavaScript, or cURL.

Prices on this page are pay-as-you-go rates

Pro, Growth, and Business plans have their own per-unit rates. See Pricing, Credits & Rate Limits for every plan, or compare and switch plans on the Sarvam Dashboard.

Start here

Pick a task to jump to its model. Click a model ID to copy it.

Speech to textSaaras v4Transcribe or translate speech, live or in batch.
Text to speechBulbul v4 Flash200+ natural Indian voices, streamed or as files.
Formal translationSarvam TranslateOfficial-sounding text in all 22 scheduled languages.
Conversational translationMayuraEveryday, code-mixed, or romanized output.
DocumentsSarvam VisionParse PDFs and scans, or extract fields.
One API key

The same key and credits work for every model on the platform.

One SDK

The sarvamai package for Python and JavaScript covers every model.

One field to switch

Change model and keep the rest of your code as it is.

Set up once

Every example on this page assumes the SDK is installed and your key is in SARVAM_API_KEY. Get a key from Key Management on the Sarvam Dashboard.

pip install -U sarvamai
export SARVAM_API_KEY="your-api-key"

Speech to text

Saaras v4 turns speech into text, from a 5-second voice note to a 2-hour call recording. It detects the spoken language for you, and it’s tuned for 8 kHz telephony audio, so it fits voice agents and contact centres as well as recorded media.

Saaras v4

Latest

Speech to text for 22 Indian languages and English. One mode parameter returns a transcript, an English translation, verbatim text, romanized text, or code-mixed text.

Best for

  • Voice agents and IVR on 8 kHz telephony audio
  • Call analytics, with speaker diarization on batch
  • Code-mixed speech such as Hinglish, and domain terms via keyterms
Languages
23, detected automatically
APIs
REST · Batch · Realtime
Audio per request
30 s on REST, 2 hr per batch file
Output modes
5, set with mode
Pay-as-you-go₹0.49 / min, billed per secondRates on other plans

One recording, five outputs

The mode parameter picks the kind of text you get back. The audio and the endpoint stay the same. These are live outputs for a Hindi recording of “मेरा फोन नंबर है 9840950950”:

modeYou getOutput
transcribe (default)Text in the spoken language, with numbers as digitsमेरा फ़ोन नंबर है 9840950950।
translateEnglish textMy phone number is 9840950950.
verbatimEvery word exactly as spokenमेरा फ़ोन नंबर है नौ आठ चार शून्य नौ पाँच शून्य नौ पाँच शून्य।
translitEvery word as spoken, in Roman scriptMera phone number hai nau aath chaar shoonya nau paanch shoonya nau paanch shoonya.
codemixEnglish words in English, the rest in native scriptमेरा phone number है 9840950950.

Choose how to send audio

All three APIs run Saaras v4 with the same five modes. Pick by how the audio reaches you.

RESTRealtime streamingBatch
AudioA clip up to 30 sA live stream over WebSocketFiles up to 2 hours, 20 per job
ResultsThe transcript in the responsePartial transcripts while the user speaks, then a final one per turnDownloaded when the job completes
ExtrasWord timestampsTurn detection with voice activity detectionSpeaker diarization, word timestamps
Best forVoice notes, commandsVoice agents, live captionsCalls, meetings, bulk pipelines

See Which API to Use for the full comparison.

Transcribe your first clip

import os
from sarvamai import SarvamAI
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
response = client.speech_to_text.transcribe(
file=open("audio.wav", "rb"), # up to 30 s
model="saaras:v4",
mode="transcribe", # or translate, verbatim, translit, codemix
)
print(response.transcript)

The response holds the transcript and the detected language. language_probability is included when you leave language_code unset and Saaras detects the language:

{
"request_id": "20261203_531f4cbb-8af3-413c-9cc6-6c4f1db194ba",
"transcript": "मेरा फ़ोन नंबर है 9840950950।",
"language_code": "hi-IN",
"language_probability": 1.0
}

Good to know

  • Send WAV, MP3, AAC, FLAC, OGG, and more. The format is detected for you.
  • Set language_code when you know the language, or leave it unset for automatic detection.
  • Pass up to 50 names, brands, or domain terms as keyterms to help Saaras spell them right. See Keyterm Prompting.

Hindi hi-IN · Bengali bn-IN · Tamil ta-IN · Telugu te-IN · Kannada kn-IN · Malayalam ml-IN · Marathi mr-IN · Gujarati gu-IN · Punjabi pa-IN · Odia od-IN · English en-IN · Assamese as-IN · Urdu ur-IN · Nepali ne-IN · Konkani kok-IN · Kashmiri ks-IN · Sindhi sd-IN · Sanskrit sa-IN · Santali sat-IN · Manipuri mni-IN · Bodo brx-IN · Maithili mai-IN · Dogri doi-IN

Saaras also recognizes Global English alongside Indian English.

Text to speech

Bulbul turns text into natural speech in 10 Indian languages and English. Start with Bulbul v4 Flash for new work: it has 200+ voices and the lower price. Both Bulbul models share one request and response shape, so moving between them is a change to model and speaker.

Bulbul v4 Flash

Latest

Natural Indian voices: 200+ voices across 11 languages, each tuned for a kind of work such as support calls, companionship, narration, or news.

Best for

  • Voice agents and IVR prompts, streamed over WebSocket
  • Narration, e-learning, and audio content
  • Code-mixed text, such as Hindi with English words
Languages
11
APIs
REST · HTTP stream · WebSocket
Text per request
2,500 chars on REST
Voices
200+, tuned by use case
Pay-as-you-go₹2 / 1K charactersRates on other plans

Hear Bulbul v4 Flash

Each voice is tuned for a kind of work, such as support calls, narration, or news. Play a sample, then copy its speaker value into your request.

Aparna · Customer support
Shubh · Banking
Anand · Documentary
Ashok · News
Aparna · Education, English
Sanchita · Companion, English

Browse all 200+ voices →

Generate your first audio

import os
from sarvamai import SarvamAI
from sarvamai.play import save
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
audio = client.text_to_speech.convert(
text="आपका order confirm हो गया है।",
language_code="hi-IN",
model="bulbul:v4-flash",
speaker="aparna_hi_customer",
)
save(audio, "output.wav") # decodes the base64 audio for you

The response is {"request_id": "...", "audios": ["<base64 audio>"]}. Join the audios strings and decode them to get the audio file.

Good to know

  • Shape the delivery with pace (0.5 to 2.0), pitch (-0.5 to 0.5), loudness (0.1 to 2.5), and temperature (0.01 to 1.0), on both models.
  • Choose output_audio_codec: wav (default), mp3, aac, flac, opus, linear16, mulaw, or alaw.
  • Set speech_sample_rate from 8 kHz for telephony up to 48 kHz on REST, and up to 24 kHz when streaming. The default is 22,050 Hz.
  • Control how brand names and acronyms are spoken with a pronunciation dictionary (dict_id).

Already using named speakers such as shubh? Bulbul v3 keeps them:

Bulbul v3

API default

37 named speakers such as Shubh, Ritu, and Simran, on the same request and response contract as v4 Flash.

Best for

  • Integrations already tuned to a v3 speaker
  • Classic named voices, such as shubh
Languages
11
APIs
REST · HTTP stream · WebSocket
Text per request
2,500 chars on REST
Speakers
37 named voices
Pay-as-you-go₹3 / 1K charactersRates on other plans

Hindi hi-IN · English en-IN · Bengali bn-IN · Gujarati gu-IN · Kannada kn-IN · Malayalam ml-IN · Marathi mr-IN · Odia od-IN · Punjabi pa-IN · Tamil ta-IN · Telugu te-IN

Both models speak all 11. Bulbul v4 Flash has dedicated voices for nine of them, and any v4 voice speaks Malayalam and Odia. For code-mixed speech, write Indic words in their native script and English words in English, for example आपका order confirm हो गया है.

Formal translation

Sarvam Translate translates text into formal, official-sounding language across all 22 scheduled Indian languages and English. Use it for government notices, legal and policy text, and anything that must cover every scheduled language with one model.

Sarvam Translate

Formal translation across all 22 scheduled Indian languages and English, for text that has to read as official.

Best for

  • Government and public-service communication
  • Legal, policy, and public notices
  • One model for every scheduled Indian language
Languages
23
Style
Formal
Source language
Set in source_language_code
Text per request
2,000 chars
Pay-as-you-go₹2 / 1K charactersRates on other plans

See the output

A live output for “Your EMI of Rs. 3000 is pending. Please pay by Friday.” translated to Hindi:

आपकी 3000 रुपये की ईएमआई लंबित है। कृपया शुक्रवार तक भुगतान कर दें।

Translate your first sentence

import os
from sarvamai import SarvamAI
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
response = client.text.translate(
input="Your EMI of Rs. 3000 is pending. Please pay by Friday.",
source_language_code="en-IN",
target_language_code="hi-IN",
model="sarvam-translate:v1",
)
print(response.translated_text)

The response holds the translation and the source language:

{
"request_id": "20261202_9ecfd602-3089-42ef-8690-f8ebdf3a5252",
"translated_text": "आपकी 3000 रुपये की ईएमआई लंबित है। कृपया शुक्रवार तक भुगतान कर दें।",
"source_language_code": "en-IN"
}

Good to know

  • Always set model="sarvam-translate:v1". A request without model goes to Mayura.
  • Set source_language_code to the input’s language. Sarvam Translate doesn’t detect it.
  • Set speaker_gender to Male or Female (the default) to match the speaker’s grammatical gender in languages such as Hindi, where verb forms change with it.
  • Set numerals_format="native" for native digits, such as ३००० in Hindi.
  • To translate whole files and keep their layout, use Document Translation.

Assamese as-IN · Bengali bn-IN · Bodo brx-IN · Dogri doi-IN · English en-IN · Gujarati gu-IN · Hindi hi-IN · Kannada kn-IN · Kashmiri ks-IN · Konkani kok-IN · Maithili mai-IN · Malayalam ml-IN · Manipuri mni-IN · Marathi mr-IN · Nepali ne-IN · Odia od-IN · Punjabi pa-IN · Sanskrit sa-IN · Santali sat-IN · Sindhi sd-IN · Tamil ta-IN · Telugu te-IN · Urdu ur-IN

Conversational translation

Mayura translates text the way people talk, in 10 Indian languages and English. Pick a style with mode, from formal to code-mixed, and get the output in native or Roman script. Use it for chat, customer support, app copy, and SMS.

Mayura

API default

Translation that sounds the way people talk: formal, colloquial, or code-mixed, in native or Roman script.

Best for

  • Chat, customer support, and app copy
  • Hinglish-style output that keeps everyday English words
  • Romanized output for SMS and search
Languages
11, source detected with auto
Styles
4, set with mode
Output script
Native or Roman
Text per request
1,000 chars
Pay-as-you-go₹2 / 1K charactersRates on other plans

One sentence, three styles

mode sets how the text sounds, and output_script sets the script it’s written in. Live outputs for “Your EMI of Rs. 3000 is pending. Please pay by Friday.” translated to Hindi:

modeoutput_scriptOutput
formalnative (default)आपका 3000 रुपये का EMI लंबित है। कृपया शुक्रवार तक भुगतान कर दीजिए।
modern-colloquialnative (default)आपका Rs. 3000 का EMI pending है। Please Friday तक pay कर दीजिए।
modern-colloquialromanAapka Rs. 3000 ka EMI pending hai. Please Friday tak pay kar dijiye.

mode also takes classic-colloquial and code-mixed, and output_script also takes fully-native and spoken-form-in-native. See Mayura for each one.

Translate your first message

import os
from sarvamai import SarvamAI
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
response = client.text.translate(
input="Your EMI of Rs. 3000 is pending. Please pay by Friday.",
source_language_code="auto", # detect the input language
target_language_code="hi-IN",
model="mayura:v1",
mode="modern-colloquial",
)
print(response.translated_text)

The response has the same shape as Sarvam Translate’s. With "auto", source_language_code in the response is the language Mayura detected.

Good to know

  • mayura:v1 is the default model on POST /translate, so existing calls without model already use it.
  • Keep each request to 1,000 characters. Split longer text by sentence.
  • Set speaker_gender to Male or Female (the default) to match the speaker’s grammatical gender in languages such as Hindi.
  • Set numerals_format="native" for native digits, such as ३००० in Hindi.

Bengali bn-IN · English en-IN · Gujarati gu-IN · Hindi hi-IN · Kannada kn-IN · Malayalam ml-IN · Marathi mr-IN · Odia od-IN · Punjabi pa-IN · Tamil ta-IN · Telugu te-IN

Documents

Sarvam Vision reads PDFs and scanned pages in 22 Indian languages and English. You call it through Document AI: pick the operation that matches the output you need, and Sarvam Vision does the reading.

Sarvam Vision

A 3B vision language model that reads PDFs and scans in 23 languages, keeping tables, reading order, and layout.

Best for

  • Digitizing scanned archives and records
  • Invoices, KYC, and forms, as structured fields
  • RAG ingestion of documents in Indian languages
Languages
23
APIs
Document AI · Parse · Extract
Input
PDF, PNG, JPEG
Output
HTML, Markdown, JSON, CSV, XLSX
Pay-as-you-goParse ₹0.50 / page · Extract from ₹1 / pageRates on other plans

Parse or Extract

ParseExtract
You wantThe whole document as clean textSpecific values, such as a total or an ID number
You sendA PDF, PNG, or JPEGA PDF, PNG, or JPEG, plus a schema of the fields
You getHTML, Markdown, or JSON, with tables and reading order keptJSON, CSV, or XLSX
Best forArchives, search, RAGKYC, invoices, forms
Price pay-as-you-go₹0.50 / pageFrom ₹1 / page (all rates)

Parse your first document

A Document AI call runs as a job. Submit the file, poll until the job finishes, then fetch the output.

import os
import time
from sarvamai import SarvamAI
client = SarvamAI(api_subscription_key=os.environ["SARVAM_API_KEY"])
# 1. Submit: one call creates and starts the job
with open("sample-document.pdf", "rb") as f:
job = client.doc_ai.parse(
file=[("sample-document.pdf", f, "application/pdf")],
language="hi-IN",
output_format="md",
)
# 2. Poll until the job finishes
while True:
status = client.doc_ai.get_status(job_id=job.job_id)
if status.status in {"completed", "partially_completed", "failed", "rejected"}:
break
time.sleep(5)
# 3. Fetch: a link to a ZIP with the Markdown output
print(status.status, client.doc_ai.get_download_url(job_id=job.job_id).url)

Good to know

  • Document AI uses language (not language_code) and output_format values "md", "html", or "json".
  • The Python example needs sarvamai 0.1.50 or later, and the JavaScript example 1.1.23 or later.
  • The Parse and Extract guides cover every option, with cURL. Page and file-size limits are in Languages, Formats & Limits.

Hindi hi-IN · Bengali bn-IN · Tamil ta-IN · Telugu te-IN · Marathi mr-IN · Gujarati gu-IN · Kannada kn-IN · Malayalam ml-IN · Assamese as-IN · Urdu ur-IN · Sanskrit sa-IN · Nepali ne-IN · Dogri doi-IN · Bodo brx-IN · Punjabi pa-IN · Odia od-IN · Konkani kok-IN · Maithili mai-IN · Sindhi sd-IN · Kashmiri ks-IN · Manipuri mni-IN · Santali sat-IN · English en-IN

Build with Sarvam Models

The models chain together with the same key and SDK. Each card below opens a guide for a common pipeline.

Next steps