Generating an image
To query an image model, use the.images
method and specify the image model you want to use.
Supported image models
See our models page for supported image models.Model Specific Parameters
Flux Schnell and Kontext [Pro/Max/Dev] models use the aspect_ratio parameter to set the output image size. Flux.1 Pro, Flux 1.1 Pro, and Flux.1 Dev use width and height parameters.Safety Checker
We have a built in safety checker that detects NSFW words but you can disable it by passing in"disable_safety_checker": "true"
. This works for every model except Flux Schnell Free and Flux Pro. If the safety checker is triggered and not disabled, it will return a 422 Unprocessable Entity
.