Skip to content
Black Forest LabsChecking

FLUX.2 Dev / Text to Image

flux-2-dev-text-to-image

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

Parameters

Required
prompt: stringrequired
aspectRatio: stringrequired

The size of the generated media in pixels

outputFormat: stringrequired
Advanced (2)
customWidth: integer

256–1536

customHeight: integer

customHight 256–1536

Request preview

{
  "model": "flux-2-dev-text-to-image",
  "input": {
    "aspectRatio": "9:16",
    "customWidth": 1024,
    "customHeight": 1024,
    "outputFormat": "png"
  }
}

The web playground sends this body with your signed-in session. From code, send the same body with an API key.

Estimated charge

Loading price…

Credits are reserved when a task is accepted and charged only on success. Failed tasks release the reservation; unconfirmed outcomes remain reserved until verified.