FLUX Pro V1 Fill

60.00 credits/MP
ae_flux_pro_v1_fill

Fill, replace, or add content in a selected area of an image using a mask and text instructions.

Image
60.00 credits/MP

Pricing

60.00 AE credits per MP. Charge for successfully returned images. Round each image up to a whole MP, then sum. One MP is 1024 by 1024 pixels.

60.00 credits/MP

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNo The same seed and the same prompt given to the same version of the model will output the same image every time. —
request_body.promptstringYesThe prompt to fill the masked part of the image.—
request_body.mask_urlstringYesThe mask URL to inpaint the image. Needs to match the dimensions of the input image.—
request_body.image_urlstringYesThe image URL to generate an image from. Needs to match the dimensions of the mask.—
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.num_imagesintegerNoThe number of images to generate.1
request_body.output_formatenum (jpeg | png)NoThe format of the generated image.jpeg
request_body.enhance_promptbooleanNoWhether to enhance the prompt for better results.false
request_body.safety_toleranceenum (1 | 2 | 3 | 4 | 5 | 6)NoThe safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.2

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_pro_v1_fill' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "A knight in shining armour holding a greatshield with \"FAL\" on it",
      "mask_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg",
      "image_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg"
    }
  }
}'

No response example available yet.