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

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

Request Body

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

Response

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