Skip to main content
POST
Flux 2 Flex Image Generation
This is an asynchronous API that only returns an async 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 async 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 editing the images to be processed. Supports up to 3 images.Array 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.