v2

latestOpenAPI 3.1.02026-07-26262762.2 KB
Models

Generate an image with FLUX1.1 [pro]

Submits an image generation task with FLUX1.1 [pro].

post/v1/flux-pro-1.1

Request body

promptstring nullable

Text prompt for image generation.

image_promptstring nullable

Optional base64 encoded image to use with Flux Redux.

widthinteger

Width of the generated image in pixels. Must be a multiple of 32.

heightinteger

Height of the generated image in pixels. Must be a multiple of 32.

prompt_upsamplingboolean

Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.

seedinteger nullable

Optional seed for reproducibility.

safety_toleranceinteger

Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.

output_format'jpeg' | 'png' | 'webp'
webhook_urlstring uri nullable

URL to receive webhook notifications

webhook_secretstring nullable

Optional secret for webhook signature verification

Example request

{
  "prompt": "ein fantastisches bild",
  "seed": 42,
  "safety_tolerance": 2
}

Response

Successful Response

OR