Skip to main content
POST
translation

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for translation models

text
string
required

The input text

Example:

"Hello"

stream
boolean

Enable text streaming.

Response

Successful translation response.

error
string | null
required

Null on success; otherwise an error message.

output
string
required

Successful response with the translated text

Example:

"Bonjour"