Skip to main content
POST
/
v3
/
async
/
flux-2-flex
Flux 2 Flex Image Generation
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/flux-2-flex \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "seed": 123,
  "size": "<string>",
  "images": [
    {}
  ],
  "prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
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

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

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

Response Information

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