Key Capabilities
- Text-to-image — Generate images from text descriptions
- High resolution — supports up to 4MP output resolution
- Reproducible — Use
seedfor deterministic generation - Format options — supports
jpegorpngoutput
Quick Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: flux-2-pro |
prompt | string | Yes | Text description for the image |
n | integer | No | Number of images to generate (1–4), default 1 |
size | string | No | Output resolution, e.g. 1024x1024, supports up to 4MP |
output_format | string | No | jpeg or png |
seed | integer | No | Random seed for reproducibility |
Response Fields
| Field | Description |
|---|---|
data[].b64_json | Base64-encoded image data |
created | Creation timestamp |
API Reference
View the interactive API Playground for FLUX.2 [pro].

