Translation API Docs
Welcome to our translation API! We use the most advanced AI language processing technology to create an API that automatically detects input languages and processes multiple languages translations at the same time. Our API returns the same JSON object with language codes as keys for easy-to-use responses. This allows you to send a result from your API directly as input to this API, no formatting required!
Getting Started
We offer a JavaScript library for quick/easy implementations HERE.
JavaScript API
Load this script in your application or API. Please note this is an asynchronous JavaScript API, so you must await each method in order to see the JSON response.
/translate.js
Once the script is loaded, call the "translate" method (example below)
let translation = await translate('es, ja', jsonObj);
API Methods
The "translate" method returns one large JSON object containing all of your translations with language codes as keys.
let translation = await translate('en, es, ja', jsonObj);
API Limits - per account
- 2,000 tokens per request
- 3,000 requests per second
Recommended Pricing
Pricing is token based. A token is approximately 4 english characters. The total tokens property in the result will tell you exactly how many tokens were used for the input plus the output. By using a custom/optimized implementation, it costs 12.5% less than Google Translate.
- 1,000 tokens (about 0.5 pages) = $0.07
- 1,000,000 tokens (about 500 pages) = $70
- $20 per month minimum
Expenses (100+ languages) - Optimized Translation Accuracy > Google Translate
- $0.005 per API request for 1,000 tokens processed
- $0.0005 per month for auth storage per account
- $10/yr API domain
Expenses - using Google Translate
- $0.081 per API request for 1,000 tokens processed
- $0.0005 per month for auth storage per account
- $10/yr API domain
Expenses (200+ languages) - Extreme Translation Accuracy
- $0.005 per second (5 second billed min boot time)
- $0.13 per 1,000 tokens
- $0.0005 per month for auth storage per account
- $10/yr API domain
- $50 per month for hosting provider
Translation Accuracy
You can measure translation accuracy using the BLEU (bilingual evaluation understudy) score algorithm. The BLEU score was created in 2002, scores range from 0-1. A score of 1 is a perfect translation, which never happens. Even human translators can only reach 0.6-0.7 points. At the time, the best translation system scored about 0.25 points. For comparision, Google translate scores up to a max of 0.53 and varies greatly depending on the language (Google Translate)
In our limited testing, we achieved up to a BLEU score of 0.68 points, almost on par with some of the best human translators!
We highly recommend running your own tests and reviewing your results with a translator to determine if the translations are suitable for your language and use case as it would be prohibitively expensive to run every test on every language to accurately access each language translation.
Supported Languages
- Afrikaans (af)
- Albanian (sq)
- Amharic (am)
- Arabic (ar)
- Armenian (hy)
- Azerbaijani (az)
- Basque (eu)
- Belarusian (be)
- Bengali (bn)
- Bosnian (bs)
- Bulgarian (bg)
- Burmese (my)
- Catalan (ca)
- Cebuano (ceb)
- Chinese (Simplified) (zh)
- Chinese (Traditional) (zh-TW)
- Croatian (hr)
- Czech (cs)
- Danish (da)
- Dutch (nl)
- English (en)
- Esperanto (eo)
- Estonian (et)
- Filipino (fil)
- Finnish (fi)
- French (fr)
- Galician (gl)
- Georgian (ka)
- German (de)
- Greek (el)
- Gujarati (gu)
- Haitian Creole (ht)
- Hausa (ha)
- Hebrew (he)
- Hindi (hi)
- Hmong (hmn)
- Hungarian (hu)
- Icelandic (is)
- Igbo (ig)
- Indonesian (id)
- Irish (ga)
- Italian (it)
- Japanese (ja)
- Javanese (jv)
- Kannada (kn)
- Kazakh (kk)
- Khmer (km)
- Kinyarwanda (rw)
- Korean (ko)
- Kurdish (ku)
- Kyrgyz (ky)
- Lao (lo)
- Latin (la)
- Latvian (lv)
- Lithuanian (lt)
- Luxembourgish (lb)
- Macedonian (mk)
- Malagasy (mg)
- Malay (ms)
- Malayalam (ml)
- Maltese (mt)
- Maori (mi)
- Marathi (mr)
- Mongolian (mn)
- Nepali (ne)
- Norwegian (no)
- Nyanja (ny)
- Odia (or)
- Pashto (ps)
- Persian (fa)
- Polish (pl)
- Portuguese (pt)
- Punjabi (pa)
- Romanian (ro)
- Russian (ru)
- Samoan (sm)
- Scots Gaelic (gd)
- Serbian (sr)
- Sesotho (st)
- Shona (sn)
- Sindhi (sd)
- Sinhala (si)
- Slovak (sk)
- Slovenian (sl)
- Somali (so)
- Spanish (es)
- Sundanese (su)
- Swahili (sw)
- Swedish (sv)
- Tajik (tg)
- Tamil (ta)
- Tatar (tt)
- Telugu (te)
- Thai (th)
- Turkish (tr)
- Turkmen (tk)
- Ukrainian (uk)
- Urdu (ur)
- Uyghur (ug)
- Uzbek (uz)
- Vietnamese (vi)
- Welsh (cy)
- Western Frisian (fy)
- Xhosa (xh)
- Yiddish (yi)
- Yoruba (yo)
- Zulu (zu)