cURL
curl --request POST \ --url https://api.bytez.com/models/v2/Helsinki-NLP/opus-mt-en-zh \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "text": "Hello", "stream": true } '
{ "error": "<string>", "output": "Bonjour" }
Translate text from one language to another for multilingual communication, content localization, and language learning
Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'
Authorization
BYTEZ_KEY
'Authorization: YOUR_BYTEZ_KEY_HERE'
Schema for translation models
The input text
"Hello"
Enable text streaming.
Successful translation response.
Null on success; otherwise an error message.
Successful response with the translated text
"Bonjour"