Generate image from text
POST/images/generations
Generates one or more images from a text prompt using a text-to-image model. This operation is asynchronous: the response returns a job_id with status queued. Poll Get image result until the status is completed to retrieve the generated images.
Request
Responses
- 200
- 400
- 401
- 404
- 422
Accepted
Bad Request
Unauthorized
Not Found
Validation Error
Was this page helpful?