← All models
FLUX.2 [flex] is Black Forest Labs' image model with adjustable quality-speed trade-offs and strong text rendering. Use FLUX.2 [flex] with an API.
images
Details
- Accepts
- text + image
Pricing
- Price
- 6.25 cr / megapixel
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | The seed to use for the generation. |
| promptrequired | string | The prompt to generate an image from. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| image_size | — | The size of the generated image. |
| output_format | stringenum: jpeg, png | The format of the generated image. |
| guidance_scale | number | The guidance scale to use for the generation. |
| safety_tolerance | stringenum: 1, 2, 3, 4, 5 | The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. |
| num_inference_steps | integer | The number of inference steps to perform. |
| enable_safety_checker | boolean | Whether to enable the safety checker. Disabling it requires account authorization; unauthorized requests are always checked. |
| image_urls | array | List of URLs of input images for editing |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | The seed used for the generation. |
| images | array | The generated images. |