POST
/
models
/
v2
/
bigscience
/
mt0-small
curl --request POST \
  --url https://api.bytez.com/models/v2/bigscience/mt0-small \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Translate this to French: Hello"
}'
{
  "output": "Bonjour"
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
text
string
required

Input text for text-to-text generation.

Example:

"Translate this to French: Hello"

Response

200 - application/json
Successful response with transformed text.
output
string

Generated text.