Translation
Translate text with the synchronous or asynchronous Python client.
client.translate() returns TextResult. Its main fields are text, status, usage, processing_time, model_name, and job_id. The SDK validates both language names before sending the request.
Stream a response
Async client
For work that should not hold a connection open, use client.submit_text_job(task="translate", ...).
See the Translation guide, Async jobs, and Translation API.