Flux 2 Pro Image Generation
Images
Flux 2 Pro Image Generation
POST
Flux 2 Pro Image Generation
This is an asynchronous API that only returns an asynchronous task_id. You need to use the task_id to call the task result query API to obtain the image editing result.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API key}}.
Request Body
Random seed used for generation. -1 means using a random seed. Range: -1 to 2147483647Value range: [-1, 2147483647]
Pixel dimensions of the output media (width*height), with each dimension ranging from 256 to 1536 pixels
List of input image URLs for the images to be edited, supporting up to 3 imagesArray length: 1 - 3
Text prompt describing the desired editing effect for the image
Response Information
Use the task_id to request the Query Task Result API to retrieve the generated output.