Skip to content

Agentic Tranlation

Agentic Translation differs from /translation/translate and /translation/batch-translate endpoints by using an advanced translation pipeline. Agentic Translation performs translation through multiple iterations, where each iteration fetches relevant context, estimates quality, provides feedback, and measures fluency. In most cases, this approach produces translations that sound more natural and “human-like”.

Feature/translate/batch-translate/agentic-translate
SpeedFastMediumSlower
Translation SizeSingle textUp to 20 at onceSingle text
PriceStandard rateStandard rateStandard rate (while experimental)
FluencyGoodGoodExcellent (human-like)
Dictionary supportYesYesYes

Start an asynchronous agentic translation task.

Endpoint: POST /translation/agentic-translate

{
"sourceLanguage": "en",
"targetLanguage": "de",
"text": "Hello, World!",
"options": {
"uiSafe": false,
"glossaryId": "glossary-123"
}
}

Parameters:

  • sourceLanguage: Source language code
  • targetLanguage: Target language code
  • text: Text to translate
  • options: Optional configuration object
    • uiSafe: Whether to ensure UI-safe translations (optional)
    • glossaryId: Glossary ID to use for translation (optional)

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"id": "task-123456",
"status": "pending"
}
}
Terminal window
curl -X POST "https://platform.algebras.ai/api/v1/translation/agentic-translate" \
-H "X-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"sourceLanguage": "en",
"targetLanguage": "de",
"text": "Hello, World!",
"options": {
"uiSafe": false,
"glossaryId": "glossary-123"
}
}'

Get the status of an agentic translation task by ID.

Endpoint: GET /translation/agentic-translate/{id}

  • id: Task ID returned from the agentic-translate endpoint

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"id": "task-123456",
"status": "completed",
"result": "Hallo, Welt!",
"progress": 100
}
}
Terminal window
curl -X GET "https://platform.algebras.ai/api/v1/translation/agentic-translate/task-123456" \
-H "X-Api-Key: your_api_key_here"