Skip to main content
POST
Translation Stream

Endpoint

POST /translation/stream

Authentication

Use either API key or JWT token.

Request body

Response stream events

  • session_info: request/session metadata
  • start: translation start with detected source language
  • chunk: partial translation content
  • complete: final translation output and metadata

Notes

  • Response is streamed as Server-Sent Events (SSE)
  • Keep the connection open until a complete event is received

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
text
string
required
target_language
string
required
source_language
string
model_name
string
prompt_name
string
prompt_version
string

Response

SSE stream started

The response is of type string.