Skip to content

Image Generation

POST/v1/run

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

Request body

stringmodelrequired

Current model identifier, for example bfl/flux-1/schnell.

stringpromptrequired

Text description of the image

Optional<string>aspect_ratio

Output aspect ratio. Flux 1 Schnell defaults to 16:9.

Optional<number>guidance_scale

Prompt guidance strength from 1 to 20.

Optional<jpeg | png>output_format

Output image format. Flux 1 Schnell defaults to jpeg.

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