FLUX 2 PRO
Image
FLUX 2 PRO
POST
FLUX 2 PRO
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the image editing result.
Request Headers
Enum:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Random seed for generation. -1 means random seed. Range: -1 to 2147483647Range: [-1, 2147483647]
Output pixel dimensions (width*height), each dimension ranges from 256 to 1536 pixels
List of input image URLs for the images to be edited, up to 3 supportedArray length: 1 - 3
Text prompt describing the desired image editing effect
Response
Use the task_id to call the Get Async Task Result API to retrieve the generated output.