Skip to content

Agentic Translation

Agentic Translation differs from /translation/translate and /translation/translate-batch 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 /translate-batch /agentic-translate
Speed Fast Medium Slower
Translation Size Single text Up to 20 at once Single text
Price Standard rate Standard rate 4x standard rate
Fluency Good Good Excellent (human-like)
Glossary support Yes Yes Yes

Start an asynchronous agentic translation task.

Endpoint: POST /translation/agentic-translate

Sent as JSON.

Field Type Required Description
sourceLanguage string yes Source language code (use auto for automatic detection)
targetLanguage string yes Target language code
textContent string yes Text to translate
glossaryId string no Glossary ID to apply during translation
prompt string no Custom prompt to guide translation
ignoreCache boolean no Ignore previously cached translation results
Header Required Description
X-Webhook-Url no URL to receive a POST notification with the translation result once the task completes

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"translation_id": "cmabc123translation",
"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",
"textContent": "Hello, World!",
"glossaryId": "glossary-123"
}'

Get the status and result of an agentic translation task by ID.

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

  • id: The translation_id returned from the agentic-translate endpoint

Success Response (200)

{
"status": "ok",
"timestamp": "2025-01-12T22:31:48.856Z",
"data": {
"id": "cmabc123translation",
"status": "READY",
"createdAt": "2025-01-12T22:31:00.000Z",
"completedAt": "2025-01-12T22:31:48.856Z",
"result": "Hallo, Welt!",
"sourceLanguage": "en",
"targetLanguage": "de"
}
}

status is one of PENDING, READY, or ERROR. result is present only when status is READY; error is present only when status is ERROR.

Terminal window
curl -X GET "https://platform.algebras.ai/api/v1/translation/agentic-translate/cmabc123translation" \
-H "X-Api-Key: your_api_key_here"