API Documentation

Everything you need to integrate AIbit Translator — a fast, affordable REST API for translating text, JSON, and HTML across 190+ languages. Send your first request in two minutes.

Base URLhttps://aibit-translator.p.rapidapi.com/api/v1/translator

Getting Started

The AIbit Translator API turns any text, JSON document, or HTML page into 190+ languages with a single REST call. No SDK, no lock-in — if your language can make an HTTP request, you can use it. You'll send your first translation in under two minutes.

1. Get an API key

The API is distributed through RapidAPI. Create a free account, subscribe to the free tier (1,000 requests/month, no credit card required), and copy your key from the X-RapidAPI-Key field.

Get your free API key on RapidAPI →

2. Base URL

Every endpoint is a path under one base URL:

Base URL
https://aibit-translator.p.rapidapi.com/api/v1/translator

3. Your first request

Send a POST to /text with a form-encoded body. This translates “Hello, world” from English to Vietnamese:

cURL
curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/text" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "from=en" \
--data-urlencode "to=vi" \
--data-urlencode "text=Hello, world"

You'll get back a clean JSON response:

200 OK
{
"trans": "Xin chào thế giới"
}
Bodies are sent as application/x-www-form-urlencoded, not JSON. Every language's HTTP client has a helper for this (URLSearchParams, requests data dict,http_build_query). See Code Examples for ready-to-paste snippets.

Authentication

Authentication is handled entirely through RapidAPI headers. Attach these two headers to every request — RapidAPI validates your key and forwards the call to AIbit:

ParameterTypeRequiredDescription
X-RapidAPI-KeystringrequiredYour personal API key from the RapidAPI dashboard.
X-RapidAPI-HoststringrequiredAlways aibit-translator.p.rapidapi.com
Headers
X-RapidAPI-Key: YOUR_API_KEY
X-RapidAPI-Host: aibit-translator.p.rapidapi.com
Content-Type: application/x-www-form-urlencoded
Keep your key secret. Never expose X-RapidAPI-Key in client-side code — call the API from your backend and proxy the result. A missing or invalid key returns an HTTP 302 redirect to the pricing page.

Translate Text

Translate a plain string between any two supported languages.

POSThttps://aibit-translator.p.rapidapi.com/api/v1/translator/text

Body parameters

ParameterTypeRequiredDescription
fromstringrequiredSource language code, or auto to detect it automatically.
tostringrequiredTarget language code.
textstringrequiredText to translate. Up to 1,037,299 characters per request.
providerstringoptionalTranslation engine: google (default), baidu, yandex, or microsoft.

Request

cURL
curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/text" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "from=en" \
--data-urlencode "to=vi" \
--data-urlencode "text=Hello, world"

Response

200 OK
{
"trans": "Xin chào thế giới"
}

Auto-detecting the source language

Set from=auto and the API detects the source language for you. When (and only when) you use auto, the response also includes detection metadata:

200 OK — from=auto
{
"trans": "Xin chào thế giới",
"source_language_code": "en",
"source_language": "English",
"trust_level": 1
}
Response fieldDescription
transThe translated text.
source_language_codeDetected source code (only when from=auto).
source_languageHuman-readable source language (only when from=auto).
trust_levelDetection confidence 0–1 (only when from=auto).
dictDictionary data for single words, when available (usually null).

Translate JSON

Translate a JSON document while preserving its exact structure. Only string values are translated — keys, numbers, booleans, arrays, and nesting are returned untouched. Perfect for app localization and CMS content.

POSThttps://aibit-translator.p.rapidapi.com/api/v1/translator/json

Body parameters

ParameterTypeRequiredDescription
fromstringrequiredSource language code, or auto.
tostringrequiredTarget language code.
jsonstring (JSON)requiredA stringified JSON object or array. Only string values are translated; keys, numbers, booleans and structure are preserved.
protected_pathsstring (JSON array)optionalDot-notation paths whose values must NOT be translated — e.g. ["user.id","meta.slug"].
common_protected_pathsstring (JSON array)optionalKeys protected at every nesting level, wherever they appear.
providerstringoptionalgoogle (default), baidu, yandex, or microsoft.

Key protection

Use protected_paths to keep specific values in the original language — IDs, slugs, brand names, enum values. Pass a JSON array of dot-notation paths. Below, meta.id is left as-is while everything else is translated to French:

cURL
curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode 'from=en' \
--data-urlencode 'to=fr' \
--data-urlencode 'json={"title":"Hello","meta":{"id":"abc-123"}}' \
--data-urlencode 'protected_paths=["meta.id"]'

Response

200 OK
{
"trans": {
"title": "Bonjour",
"meta": {
"id": "abc-123"
}
}
}
common_protected_paths works like protected_paths but matches a key wherever it appears at any nesting depth — handy for a field like id that repeats across many objects.

Translate HTML

Translate an HTML fragment or full page tag-safe. All tags, attributes, classes, and inline styles are preserved — only the visible text nodes are translated. Ideal for translating rich content, emails, and rendered pages without breaking markup.

POSThttps://aibit-translator.p.rapidapi.com/api/v1/translator/html

Body parameters

ParameterTypeRequiredDescription
fromstringrequiredSource language code, or auto.
tostringrequiredTarget language code.
htmlstringrequiredHTML markup. Tags, attributes and classes are kept intact — only visible text nodes are translated.
providerstringoptionalgoogle (default), baidu, yandex, or microsoft.

Request

cURL
curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/html" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode 'from=en' \
--data-urlencode 'to=es' \
--data-urlencode 'html=<p>Hello <b>world</b></p>'

Response

200 OK
{
"trans": "<p>Hola <b>mundo</b></p>"
}

Detect Language

Identify the language of a piece of text without translating it.

POSThttps://aibit-translator.p.rapidapi.com/api/v1/translator/detect-language

Body parameters

ParameterTypeRequiredDescription
textstringrequiredText whose language you want to identify. Up to 1,037,299 characters.

Request

cURL
curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/detect-language" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode 'text=Bonjour tout le monde'

Response

200 OK
{
"trust_level": 1,
"source_lang_code": "fr",
"source_lang": "French"
}

List Languages

Fetch the full list of supported languages and their codes at runtime — useful for populating a language picker.

GEThttps://aibit-translator.p.rapidapi.com/api/v1/translator/support-languages

Request

cURL
curl "https://aibit-translator.p.rapidapi.com/api/v1/translator/support-languages" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com"

Response

200 OK
[
{ "code": "auto", "language": "Automatic" },
{ "code": "en", "language": "English" },
{ "code": "vi", "language": "Vietnamese" }
]

Code Examples

A complete, copy-paste translation request in four languages. Swap YOUR_API_KEY for your key and you're live.

curl -X POST "https://aibit-translator.p.rapidapi.com/api/v1/translator/text" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: aibit-translator.p.rapidapi.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "from=en" \
--data-urlencode "to=vi" \
--data-urlencode "text=Hello, world"

Supported Languages

AIbit supports the language codes below. Use auto as the source to detect the input language automatically. Search by name or ISO code, and click a row to copy the code.

199 of 199 language codes

CodeLanguage
autoAutomatic
abAbkhaz
aceAcehnese
achAcholi
afAfrikaans
sqAlbanian
alzAlur
amAmharic
arArabic
hyArmenian
asAssamese
awaAwadhi
ayAymara
azAzerbaijani
banBalinese
bmBambara
baBashkir
euBasque
btxBatak Karo
btsBatak Simalungun
bbcBatak Toba
beBelarusian
bemBemba
bnBengali
bewBetawi
bhoBhojpuri
bikBikol
bsBosnian
brBreton
bgBulgarian
buaBuryat
yueCantonese
caCatalan
cebCebuano
nyChichewa (Nyanja)
zhChinese (Simplified)
zh-cnChinese (Simplified)
zh-twChinese (Traditional)
cvChuvash
coCorsican
crhCrimean Tatar
hrCroatian
csCzech
daDanish
dinDinka
dvDivehi
doiDogri
dovDombe
nlDutch
dzDzongkha
enEnglish
eoEsperanto
etEstonian
eeEwe
fjFijian
filFilipino (Tagalog)
tlFilipino (Tagalog)
fiFinnish
frFrench
fr-frFrench (French)
fr-caFrench (Canadian)
fyFrisian
ffFulfulde
gaaGa
glGalician
lgGanda (Luganda)
kaGeorgian
deGerman
elGreek
gnGuarani
guGujarati
htHaitian Creole
cnhHakha Chin
haHausa
hawHawaiian
heHebrew
iwHebrew
hilHiligaynon
hiHindi
hmnHmong
huHungarian
hrxHunsrik
isIcelandic
igIgbo
iloIloko
idIndonesian
gaIrish
itItalian
jaJapanese
jvJavanese
jwJavanese
knKannada
pamKapampangan
kkKazakh
kmKhmer
cggKiga
rwKinyarwanda
ktuKituba
gomKonkani
koKorean
kriKrio
kuKurdish (Kurmanji)
ckbKurdish (Sorani)
kyKyrgyz
loLao
ltgLatgalian
laLatin
lvLatvian
lijLigurian
liLimburgan
lnLingala
ltLithuanian
lmoLombard
luoLuo
lbLuxembourgish
mkMacedonian
maiMaithili
makMakassar
mgMalagasy
msMalay
ms-arabMalay (Jawi)
mlMalayalam
mtMaltese
miMaori
mrMarathi
chmMeadow Mari
mni-mteiMeiteilon (Manipuri)
minMinang
lusMizo
mnMongolian
myMyanmar (Burmese)
nrNdebele (South)
newNepalbhasa (Newari)
neNepali
nsoNorthern Sotho (Sepedi)
noNorwegian
nusNuer
ocOccitan
orOdia (Oriya)
omOromo
pagPangasinan
papPapiamento
psPashto
faPersian
plPolish
ptPortuguese
pt-ptPortuguese (Portugal)
pt-brPortuguese (Brazil)
paPunjabi
pa-arabPunjabi (Shahmukhi)
quQuechua
romRomani
roRomanian
rnRundi
ruRussian
smSamoan
sgSango
saSanskrit
gdScots Gaelic
srSerbian
stSesotho
crsSeychellois Creole
shnShan
snShona
scnSicilian
szlSilesian
sdSindhi
siSinhala (Sinhalese)
skSlovak
slSlovenian
soSomali
esSpanish
suSundanese
swSwahili
ssSwati
svSwedish
tgTajik
taTamil
ttTatar
teTelugu
tetTetum
thThai
tiTigrinya
tsTsonga
tnTswana
trTurkish
tkTurkmen
akTwi (Akan)
ukUkrainian
urUrdu
ugUyghur
uzUzbek
viVietnamese
cyWelsh
xhXhosa
yiYiddish
yoYoruba
yuaYucatec Maya
zuZulu

Translation Engines

One API, multiple engines. Set the provider parameter to pick the engine best suited to your language pair. If you omit it, google is used.

Google

default

provider=google · Balanced quality & speed

The default and best all-round choice. Widest language coverage (all 190+ codes), sub-200ms latency, and reliable for both short strings and long documents. Use it unless you have a specific reason not to.

Microsoft

provider=microsoft · Strong on European & business text

A solid alternative for formal, business, and technical content across major European languages. Good fallback when you want a second opinion on Google's output.

Yandex

provider=yandex · Best for Russian & CIS languages

Pick Yandex when translating to or from Russian, Ukrainian, and other CIS-region languages, where it often reads more naturally than the alternatives.

Baidu

provider=baidu · Best for Chinese

The go-to engine for Simplified/Traditional Chinese and other East-Asian pairs — strong handling of idioms and mixed-script content.

Not sure which to use? Start with google — it has the widest coverage and lowest latency. Switch engines per request and benchmark on your content for the best results.

Errors & Rate Limits

The API uses conventional HTTP status codes. 2xx means success; 4xx means a problem with your request; 5xx means a transient server error that is safe to retry.

StatusNameMeaning
200OKSuccess. All translate endpoints return 200 on success.
302FoundRedirect to the RapidAPI pricing page — your API key is missing or invalid.
400Bad RequestValidation failed: unknown language code, a missing required field, or malformed json.
403ForbiddenYour IP address has been blocked.
429Too Many RequestsYou exceeded your plan's rate limit. Back off and retry.
500Internal Server ErrorAn upstream engine error occurred. The request is safe to retry.

Rate limits by plan

Rate limits and monthly quotas depend on your RapidAPI subscription. Exceeding your rate limit returns 429 Too Many Requests — back off and retry.

PlanPriceRequestsRate limit
Free$01,000 / mo5 req/s
Pro$9.99100,000 / mo20 req/s
MEGA$1204,500,000 / mo200 req/s
Enterprise$20010,000,000 / mo300 req/s
Unlimited$750Unlimited500 req/s
Need more headroom? The Enterprise and Unlimited plans remove overage fees and add dedicated capacity. Compare plans on RapidAPI →

Frequently Asked Questions

Yes — AIbit actually uses Google Translate, Microsoft, Yandex, and Baidu under the hood. You get the same translation quality at a fraction of the cost. You can even switch engines per request to pick the best one for your language pair.
Click 'Get Free API Key' — you'll be taken to RapidAPI where you can sign up for free in under a minute (no credit card required). Once registered, your API key is ready to use immediately with 1,000 free requests per month.
On the Pro and MEGA plans, additional requests are billed at $0.00003 per request (about $0.03 per 1,000 requests). Enterprise and Unlimited plans have no overage fees — you get a hard cap or true unlimited usage. You'll never get a surprise bill without warning.
Free: 5 req/s — Pro: 20 req/s — MEGA: 200 req/s — Enterprise: 300 req/s — Unlimited: 500 req/s. All plans support burst requests. If you need a custom rate limit, contact us for a dedicated plan.
Yes, this is one of our key features. JSON translation preserves all keys, data types, and nested structure — only the string values are translated. HTML translation keeps all tags, classes, and attributes intact, translating only visible text content. Perfect for app localization and website translation.
We do not store or log the content of your translations. Requests are proxied to the underlying translation engines (Google, Microsoft, etc.) and discarded immediately after the response. We only retain basic usage metrics (request count, latency) for billing and monitoring purposes.
We guarantee 99.9% uptime (less than 9 hours downtime per year). Our infrastructure runs 3 backend replicas with automatic failover — if one node goes down, traffic is instantly routed to healthy nodes. Enterprise and Unlimited plans include priority support with a 1-hour response SLA.
Absolutely. You can upgrade, downgrade, or cancel your plan at any time from your RapidAPI dashboard. No lock-in, no cancellation fees. If you cancel, you keep access until the end of your current billing period.