Skip to main content
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.
This is an asynchronous API and will only return the asynchronous task’s task_id. You should use this task_id to request the Query Task Result API to retrieve the generated result.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

integer
Random seed used for generation. -1 means using a random seed. Range: -1 to 2147483647Value range: [-1, 2147483647]
string
Pixel dimensions of the output media (width*height), with each dimension ranging from 256 to 1536 pixels
string[]
List of input image URLs for the images to be edited, supporting up to 3 imagesArray length: 1 - 3
string
required
Text prompt describing the desired editing effect for the image

Response Information

string
required
Use the task_id to request the Query Task Result API to retrieve the generated output.