Skip to main content
POST
Translate text with streaming response (Server-Sent Events)

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required
targetLanguage
string
required
Example:

"fa"

Response

200 - text/event-stream

Server-Sent Events stream

Events:

  • event: start - Translation started
  • event: chunk - Translation chunk with progress
  • event: complete - Translation complete with full content
  • event: error - Error occurred