Skip to navigation

Mayura

View as Markdown

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.

At a Glance

Model IDmayura:v1
What it doesEnglish ↔ Indian language translation with style, script, and numeral control
Languages11 (10 Indian + English), auto source detection, full list
APIsTranslation REST API (/translate)
Input limits1,000 characters per request, all limits
BenchmarksCorpus BLEU
PricingPricing page
Best forConversational translation, code-mixed text, colloquial output styles
Known limitations1,000-character cap; 11 languages. Use Sarvam-Translate for all 22 official Indian 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

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

from sarvamai import SarvamAI
client = SarvamAI(
api_subscription_key="YOUR_SARVAM_API_KEY"
)
response = client.text.translate(
input="मैं ऑफिस जा रहा हूँ",
source_language_code="hi-IN",
target_language_code="en-IN"
)
print(response)

Limits

LimitValue
Max input length per request1,000 characters (mayura:v1)
Longer textsSplit into chunks of ≤1,000 characters, or use sarvam-translate:v1 (2,000 characters)
Rate limitsSee Rate Limits

Next Steps