Skip to content
Black Forest LabsChecking

FLUX.2 Klein 4B / Text to Image

flux-2-klein-4b-text-to-image

text to imageOutput: ImageInput: text
Loading price…
Official list price · Not verified

What it does

Generate an image from a text prompt.

Optional custom size · fixed price

Input parameters

Only the fields this model accepts. Required fields must be provided.

FieldTypeRequiredDefaultAllowed values and constraints
prompt
stringrequired—
customWidth
integeroptional1024

256–1536

customHeight
integeroptional1024

customHight

256–1536

aspectRatio
stringrequired"9:16"

One of: "custom", "3:2", "2:3", "16:9", "9:16", "4:3", "3:4", "1:1"

outputFormat
stringrequired"png"

One of: "png", "jpeg", "webp(lossless)", "webp(lossy)"

Limits and behaviour

  • Asynchronous only: submit a task, then poll for the result.
  • customWidth: 256–1536
  • customHeight: 256–1536