Skip to main content
POST
text2text-generation

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for text2text-generation models

text
string
required

The input text

Example:

"Once upon a time there was a beautiful home where"

stream
boolean

Enable text streaming.

Response

Successful text2text-generation response.

error
string | null
required

Null on success; otherwise an error message.

output
string
required

Successful response with generated text

Example:

"Once upon a time there was a beautiful home where there was a happy cat"