Developers
The TranslateWise API
Translate from your own code with the same AI and the same prepaid credits as the website. Three endpoints and one API key.
Getting started
Three steps to your first call
Step 1
Ask for a key
API keys are issued by our team. Email support@translatewise.me from the address of your TranslateWise account.
Step 2
Send it with every request
Put the key in the
X-API-Keyheader. Keep it on your server; anyone with the key can spend your credits.Step 3
Top up credits
API calls use the same credit balance as the website: 1 credit per word (€0.01). Buy credits from your dashboard.
Base URL
https://www.translatewise.me/api/v1/publicReference
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /translate | Translate a text with AI. The result comes back in the same response, or later when you order human review. |
| GET | /status/{translation_id} | Look up a translation you made with your key, including its text once completed. |
| GET | /credits | Your credit balance and its value in euros, plus 30-day usage. |
Body of POST /translate
| Field | Type | Required | Notes |
|---|---|---|---|
text | string | Yes | The text to translate, up to 60,000 characters. You pay 1 credit per word. |
source_language | string | Yes | Language code such as en, de or pt-BR, or auto to detect it. |
target_language | string | Yes | Language code of one of the 100 languages on the languages page. |
tone | string | No | auto (default), formal or informal. |
human_review | boolean | No | false (default). true orders AI + human review: a translator checks and corrects the AI draft. 2.5 credits per word, minimum 100 credits, core languages only (en, es, fr, de, it, pt, ru, zh, ja, ko, ar, hi, az). The response has status pending_human_review, translated_text null and a deadline; fetch the reviewed text later with GET /status/{translation_id}. If it is not delivered by the deadline, the credits go back to your balance automatically. |
The list of language codes is on the languages page. Your account glossary is applied automatically.
Examples
Make a request
curl -X POST https://www.translatewise.me/api/v1/public/translate \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world",
"source_language": "en",
"target_language": "es",
"tone": "informal"
}'Responses
What comes back
error message with the HTTP status below.POST /translate
{
"translation_id": "cm4x…",
"translated_text": "Hola mundo",
"source_language": "en",
"target_language": "es",
"word_count": 2,
"credits_used": 2,
"human_review": false,
"status": "completed"
}POST /translate with human_review: true
{
"translation_id": "cm4y…",
"translated_text": null,
"source_language": "en",
"target_language": "de",
"word_count": 120,
"credits_used": 300,
"human_review": true,
"status": "pending_human_review",
"deadline": "2026-11-30T10:00:00.000Z"
}GET /status/{translation_id}
{
"translation_id": "cm4x…",
"status": "completed",
"source_language": "en",
"target_language": "es",
"word_count": 2,
"created_at": "…",
"completed_at": "…",
"translated_text": "Hola mundo",
"translation_type": "ai"
}GET /credits
{
"balance": 1250,
"credits_used_30d": 430,
"credits_purchased_30d": 1000,
"currency": "EUR",
"value": "12.50"
}Errors
| Status | When |
|---|---|
400 | A required field is missing, the text is longer than 60,000 characters, or a language code is not supported. With human_review: true, also when the language pair is outside our core languages. |
401 | The X-API-Key header is missing, or the key is unknown, inactive or expired. |
402 | Not enough credits. The body includes required_credits and current_balance. |
500 | The translation failed. Credits are only deducted after a successful translation. |
Ready to connect?
Write to support@translatewise.me with what you are building and we will set up your key.