Skip to main content
POST
FLUX 2 DEV
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.
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 generated result.

Request Headers

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

Request Body

integer
Random seed for generation. -1 means random seed. Range: -1 to 2147483647Range: [-1, 2147483647]
string
Output pixel dimensions (width*height), each dimension ranges from 256 to 1536 pixels
array
List of LoRAs to apply, up to 3 supportedArray length: 0 - 3
array
List of input image URLs for the images to be edited, up to 3 supportedArray length: 1 - 3
string
required
Text prompt describing the desired image editing effect

Response

string
required
Use the task_id to call the Get Async Task Result API to retrieve the generated output.