> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX 2 PRO

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.

<Tip>
  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](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="seed" type="integer" default={-1}>
  Random seed for generation. -1 means random seed. Range: -1 to 2147483647

  Range: \[-1, 2147483647]
</ParamField>

<ParamField body="size" type="string">
  Output pixel dimensions (width\*height), each dimension ranges from 256 to 1536 pixels
</ParamField>

<ParamField body="images" type="array">
  List of input image URLs for the images to be edited, up to 3 supported

  Array length: 1 - 3
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text prompt describing the desired image editing effect
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
