For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CommunityAPI StatusAPI PricingSign Up
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
  • Getting Started
    • Welcome
    • Quickstart
    • SDKs & Libraries
    • Building for Indian Languages
    • Models
      • Saaras
      • Bulbul
      • Mayura
      • Sarvam Translate
      • Sarvam 30B
      • Sarvam 105B
      • Sarvam Vision
      • Sarvam M (Legacy)
      • Saarika (Legacy)
    • Credits & Rate Limits
    • Errors & Troubleshooting
    • Talk to us
    • Pricing
    • Changelog
  • API Guides & Tutorials
LogoLogo
CommunityAPI StatusAPI PricingSign Up
On this page
  • Key Features
  • Language Support
  • Corpus BLEU (Bilingual Evaluation Understudy) Benchmark
  • Key Capabilities
  • Next Steps
Getting StartedModels

Mayura

||View as Markdown|
Was this page helpful?
Previous

Sarvam Translate

Next
Built with

Mayura is our powerful translation model designed to convert text between English and Indian languages while preserving meaning and context. It supports advanced features such as:

  • Customizable translation styles
  • Script control
  • Intelligent handling of code-mixed content

For example:
"मैं ऑफिस जा रहा हूँ" → "I am going to the office"
This preserves the original meaning across different scripts and languages.

Key Features

Language Support

Support for 11 languages (10 Indian + English). Automatic language detection available by setting source_language_code to “auto”.

Translation Modes

Multiple translation styles: formal, modern-colloquial, classic-colloquial, and code-mixed for different contexts.

Script Control

Flexible output script options: Roman, native, and spoken forms for customized text representation.

Smart Processing

Numeral format control for improved translation accuracy.

Context Preservation

Maintains meaning and context across languages while handling cultural nuances appropriately.

Code-Mixed Support

Intelligent handling of mixed-language content common in Indian conversations.

Language Support

Mayura supports bidirectional translation between the following languages:

Languages (Code):

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

All of the above supports both English ↔ Indian language translations.

All Indian languages support bidirectional translation with English. To enable automatic language detection, set source_language_code to “auto” in your API request.

Use the Sarvam-Translate model to support all 22 official Indian languages.

Corpus BLEU (Bilingual Evaluation Understudy) Benchmark

Corpus BLEU score is a metric that evaluates the overall quality of machine translation by comparing it to reference translations across an entire dataset. Higher scores (closer to 100) indicate better performance.

0510152025303540Corpus BLEU Score18.14Bengali27.32Gujarati24.86Hindi23.86Kannada14.64Malayalam32.56Marathi27.57Odia9.19Punjabi6.78Tamil37.57TeluguLanguages

Key Capabilities

Basic Usage
Translation Modes
Script Control
Advanced Options

Simple translation between languages with default settings. Perfect for getting started with the Mayura API.

1from sarvamai import SarvamAI
2
3client = SarvamAI(
4 api_subscription_key="YOUR_SARVAM_API_KEY"
5)
6
7response = client.text.translate(
8 input="मैं ऑफिस जा रहा हूँ",
9 source_language_code="hi-IN",
10 target_language_code="en-IN"
11)
12
13print(response)

Next Steps

Developer quickstart

Learn how to integrate translation into your application.

API Reference

Complete API documentation for translation endpoints.

Cookbook

Step-by-step tutorial for translation implementation.