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.

Image
From 84.00 credits

Pricing

From 84.00 credits
ConditionCharge
First processed megapixel84.00 credits
Each additional megapixel36.00 credits

Input and output image processing count toward usage.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNoThe seed to use for the generation.—
request_body.promptstringYesThe prompt to generate an image from.—
request_body.sync_modebooleanNoIf `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_sizeobject | stringNoThe size of the generated image. If `auto`, the size will be determined by the model.auto
request_body.image_size.widthintegerNoThe width of the generated image.512
request_body.image_size.heightintegerNoThe height of the generated image.512
request_body.image_urlsarrayYesList of URLs of input images for editing—
request_body.output_formatenum (jpeg | png)NoThe format of the generated image.jpeg
request_body.safety_toleranceenum (1 | 2 | 3 | 4 | 5)NoThe safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.2
request_body.enable_safety_checkerbooleanNoWhether to enable the safety checker.true

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request 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.