services / translate
textoperational · 14 ms
Text Translation
Translate text between 21 languages: en, de, fr, es, it, pt, nl, pl, sv, cs, el, ru, uk, tr, ar, hi, id, vi, zh, ja, ko. Runs on our own server (Argos Translate), so the text is not sent to a third party. Max 1000 characters per call. source_lang defaults to auto-detect; confidence is the detection confidence. Pairs without a direct model are translated via English.
Run free trial ↗3 free calls per day with the example input. Paid: $0.009 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| text * | string | Text to translate (max 1000 characters per call; longer text is truncated) |
| target_lang * | en | de | fr | es | it | pt | nl | pl | sv | cs | el | ru | uk | tr | ar | hi | id | vi | zh | ja | ko | Target language, ISO 639-1 code (e.g. 'de', 'fr', 'ja') |
| source_lang | string = "auto" | Source language code. Default: 'auto' (auto-detect). Use ISO 639-1 codes. |
Output
| Field | Type | Description |
|---|---|---|
| original_text | string | The original input text |
| translated_text | string | The translated text in the target language |
| source_lang | string | Detected or specified source language code |
| target_lang | string | Target language code as specified |
| confidence | number,null | Language detection confidence (0 to 1) when source_lang is auto, else null |
| pivot_language | string,null | 'en' when the pair was translated via English |
| service | string | Always: 'Argos Translate (local)' |
Example response (data)
{
"original_text": "Hello, how are you?",
"translated_text": "Hallo, wie geht es Ihnen?",
"source_lang": "en",
"target_lang": "de",
"confidence": 1,
"pivot_language": null,
"service": "Argos Translate (local)"
}