Translation

Learn how to convert text into different languages using Murf AI’s Translation API.

Murf provides a robust Translation API that enables you to seamlessly convert text from one language to another. It supports high-quality translations across major global languages.

Whether you’re localizing product descriptions, articles or scripts, our Translation API is designed to scale with your needs.

Quickstart

The Translate Text endpoint allows you to convert input text into your desired target language. You can use the Python SDK or the REST API directly to integrate the API into your app.

1from murf import Murf
2
3client = Murf(
4 api_key="YOUR_API_KEY", # Not required if you have set the MURF_API_KEY environment variable
5)
6client.text.translate(
7 target_language="es-ES",
8 texts=["Hello, world!", "How are you?"],
9)

Supported Languages

The Translation API supports a wide range of languages. Below is a list of supported languages:

LocaleLanguage & Accent
en-USEnglish - US & Canada
en-UKEnglish - UK
en-INEnglish - India
en-AUEnglish - Australia
en-SCOTTEnglish - Scotland
es-MXSpanish - Mexico
es-ESSpanish - Spain
fr-FRFrench - France
de-DEGerman - Germany
it-ITItalian - Italy
nl-NLDutch - Netherlands
pt-BRPortuguese - Brazil
zh-CNChinese - China
ja-JPJapanese - Japan
ko-KRKorean - Korea
hi-INHindi - India
ta-INTamil - India
bn-INBengali - India
hr-HRCroatian - Croatia
sk-SKSlovak - Slovakia
pl-PLPolish - Poland
el-GRGreek - Greece

API Limits

PlanFreePay-as-you-goEnterprise
Rate Limit1,000 requests/hr10,000 requests/hrCustom
Concurrency LimitUp to 5Up to 15Custom
Characters per Sentence4,0004,0004,000
Sentences per Request101010

FAQs

We support 23 languages and are constantly expanding our language coverage. A full list of supported target_language codes can be found in the Supported Languages section.

No, the source_language can be automatically detected by the API. You only need to provide the target_language.

Funds are consumed based on the number of output characters. You’ll see both values (characters_input and characters_output) in the API response and your dashboard.

Yes, the Translation API allows up to 10 sentences per request, with each sentence being up to 4,000 characters long.