FLUX 2 Max Edit
From 84.00 credits
ae_flux_2_max_edit
Edit one or more images with a text instruction. Choose the output size and JPEG or PNG format.
From 84.00 credits
Pricing
From 84.00 credits
| Condition | Charge |
|---|---|
| First processed megapixel | 84.00 credits |
| Each additional megapixel | 36.00 credits |
Input and output image processing count toward usage.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.seed | integer | unknown | No | The seed to use for the generation. | — |
request_body.prompt | string | Yes | The prompt to generate an image from. | — |
request_body.sync_mode | boolean | No | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | false |
request_body.image_size | object | string | No | The size of the generated image. If `auto`, the size will be determined by the model. | auto |
request_body.image_size.width | integer | No | The width of the generated image. | 512 |
request_body.image_size.height | integer | No | The height of the generated image. | 512 |
request_body.image_urls | array | Yes | List of URLs of input images for editing | — |
request_body.output_format | enum (jpeg | png) | No | The format of the generated image. | jpeg |
request_body.safety_tolerance | enum (1 | 2 | 3 | 4 | 5) | No | The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. | 2 |
request_body.enable_safety_checker | boolean | No | Whether to enable the safety checker. | true |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_flux_2_max_edit' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"prompt": "A high-fashion magazine cover featuring an android in an avant-garde geometric cloth dress, with logo prints from @Image1. The backdrop is an eye-catching scenery. The title text '\''FAL MAGAZINE'\'' spans the top in bold white serif font. Overlay text at the bottom right reads '\''THE FUTURE OF AI'\'' in a sleek, thin sans-serif font.",
"image_urls": [
"https://storage.googleapis.com/falserverless/example_inputs/flux2/max.jpg"
]
}
}
}'No response example available yet.

