Flux-2
High-quality image generation with Pro and Flex modes
Flux-2
Versatile image generation with multiple quality tiers.
Model ID
flux-2
Price
$0.035-0.16/image
Speed
10-30 seconds
Type
Image
Modes & Pricing
| Mode | Resolution | Price | Best For |
|---|---|---|---|
| Pro | 1K | $0.035 | Balanced realism |
| Pro | 2K | $0.05 | Higher detail |
| Flex | 1K | $0.10 | High-contrast look |
| Flex | 2K | $0.16 | Maximum impact |
Parameters
For common parameters (request_type, callback_url), see Request Format.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode | string | Yes | - | pro-text-to-image, pro-image-to-image, flex-text-to-image, or flex-image-to-image |
prompt | string | Yes | - | Image description (max 10,000 characters) |
image_url | string | No | - | Reference image for image-to-image |
aspect_ratio | string | Yes | 16:9 | Output ratio. Options: 1:1, 9:16, 16:9, 4:3, 3:4, 21:9 |
output_format | string | No | jpeg | jpeg or png |
enableTranslation | boolean | No | true | Auto-translate prompts |
promptUpsampling | boolean | No | false | AI prompt enhancement |
Examples
Production Quality (Pro Mode)
Tips
- Polling: Wait 10 seconds, then poll every 3 seconds
- Timeout: Set max wait to 3 minutes
- Use
flux-devfor iteration,flux-profor production