Skip to content

Image Generation

POST/v1/run

Generate images using AI models like FLUX, Stable Diffusion, DALL-E, and more.

Request body

stringmodelrequired

Model name (e.g. flux/schnell, dall-e-3)

stringpromptrequired

Text description of the image

Optional<integer>width

Image width in pixels

Optional<integer>height

Image height in pixels

Optional<integer>num_images

Number of images to generate (default: 1)

Optional<string>mode

Set to async only when the selected model supports asynchronous execution

Optional<string>webhook_url

Public HTTPS callback URL for this async task only