Skip to main content
POST
text-to-image

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for text-to-image models

text
string
required

The input text

Example:

"A beautiful landscape with mountains and a river"

Response

Successful text-to-image response.

error
string | null
required

Null on success; otherwise an error message.

output
string
required

Successful response with the generated image link

Example:

"https://api.bytez.com/image/1234567890"