Flux 2 Pro
Authorizations
API Key for API endpoints
Body
Text description of the image to generate.
Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:3 Resolution of the generated image
1K, 2K, 4K List of input images for image-to-image generation. Maximum 4 images. Must be jpeg, png, gif, or webp.
Number of results to generate (1-4)
1 <= x <= 4Response
Generation submission accepted
Generation id.
Queue status
IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELED Normalized input payload for the generation task.
Credit usage breakdown for the request
Machine-readable generation error code. Present when status is FAILED.
Sanitized human-readable failure message. Present when status is FAILED.