Sarvam Translate

Sarvam Translate enables high-quality translation between English and 22 Indian languages. It provides comprehensive coverage of all scheduled Indian languages with automatic language detection and formal translation style, making it ideal for official and professional communication needs.

Key Features

Wide Language Support

Support for all 22 scheduled Indian languages and English with automatic language detection capabilities.

Formal Style Translation

Default translation mode is formal to ensure clarity and consistency in professional communications.

Preprocessing Option

Optional smart preprocessing for better handling of complex input text and improved translation quality.

Numeral Format Control

Option to choose between international and native numeral systems for culturally appropriate translations.

Automatic Detection

Built-in language identification to automatically detect source language when unknown.

Comprehensive Coverage

Complete support for all official Indian languages as per the Constitution of India.

Language Support

Sarvam Translate supports all 22 scheduled Indian languages as per the Constitution of India:

LanguageCode
Assameseas-IN
Bengalibn-IN
Bodobrx-IN
Dogridoi-IN
Englishen-IN
Gujaratigu-IN
Hindihi-IN
Kannadakn-IN
Kashmiriks-IN
Konkanikok-IN
Maithilimai-IN
Malayalamml-IN
Manipurimni-IN
Marathimr-IN
Nepaline-IN
Odiaod-IN
Punjabipa-IN
Sanskritsa-IN
Santalisat-IN
Sindhisd-IN
Tamilta-IN
Telugute-IN
Urduur-IN

Supports bidirectional translation for all listed languages.

All languages support bidirectional translation. Use source_language_code="auto" for automatic language detection when the source language is unknown.

Key Capabilities

Simple translation between any of the 22 supported Indian languages and English with automatic language detection.

1from sarvamai import SarvamAI
2
3client = SarvamAI(api_subscription_key="YOUR_API_SUBSCRIPTION_KEY")
4
5response = client.text.translate(
6 input="भारत एक महान देश है। इसकी संस्कृति बहुत पुरानी और समृद्ध है।",
7 source_language_code="hi-IN",
8 target_language_code="gu-IN",
9 model="sarvam-translate:v1"
10)
11
12print(response)

The output_script option is not supported in Sarvam Translate. For script control, use the Mayura model.

Next Steps