Text as Input
Text-to-Image
Run the stable-diffusion-xl-base-1.0
model to generate images from text.
POST
Authorizations
Provide your API key as Key your-key-here
in the Authorization
header.
Body
application/json
Input text to generate an image.
Example:
"A cat in a bowtie"
Flag to determine if the response is JSON formatted. If false
, returns raw image data.
Example:
true
Response
200 - application/json
Successful response with the generated image link.
Generated image link or string.