Models

Generate an image with FLUX 3 Image Klein.

Changed on

Submits a text-to-image or image editing task with FLUX 3 Image Klein.

post/v1/flux-3-image-klein

Request

Request body

userstring nullable

Opaque identifier for the end user supplied by the calling platform.

promptstring required

Free-form prompt describing the image.

resolution'768sq' | '1k' | '1.5k' | '2k' | '4k' nullable

Equal-area size tier, as in flux-3-image: 768sq, 1k, 1.5k, 2k or 4k. Omitted: 1k for text-to-image; for edits the first reference's own size, or its nearest tier when aspect_ratio is set. Ignored when width and height are set.

widthinteger nullable

Exact output width in pixels, [64, 6256]; set together with height. Overrides resolution and aspect_ratio.

heightinteger nullable

Exact output height in pixels, [64, 6256]; width x height at most 16822272 pixels (16.8 MP, the largest 4k bin).

seedinteger nullable

Seed for reproducibility; random when omitted.

safety_toleranceinteger

Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.

output_format'jpeg' | 'png'

Output image format: jpeg (default) or png.

stepsinteger nullable

Denoising steps (default 16).

Response

Successful Response

idstring required
polling_urlstring required
costnumber nullable

Cost in credits for this request

input_mpnumber nullable

Input megapixels (2 decimal places)

output_mpnumber nullable

Output megapixels (2 decimal places)

Changes