FLUX Lora Fill

42.00 credits/MP
ae_flux_lora_fill

Fill, replace, or restore selected areas of an image using a mask, text guidance, reference images, and optional style settings.

Image
42.00 credits/MP

Pricing

42.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.

42.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.lorasarrayNo The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image. —
request_body.loras[].pathstringYesURL or the path to the LoRA weights.—
request_body.loras[].scalenumberNo The scale of the LoRA weight. This is used to scale the LoRA weight before merging it with the base model. 1
request_body.promptstringNoThe prompt to generate an image from.""
request_body.mask_urlstringYes The mask to area to Inpaint in. —
request_body.image_urlstringYesURL of image to use for fill operation—
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.fill_imageobject | unknownNoUse an image fill input to fill in particular images into the masked area.—
request_body.fill_image.use_promptbooleanNoWhether to use the prompt as well in the generation, along with the redux image.false
request_body.fill_image.fill_image_urlarray | string | unknownNoURLs of images to be filled into the masked area.—
request_body.fill_image.in_context_fillbooleanNoUses the provided fill image in context with the base image to fill in more faithfully. Will increase price.false
request_body.image_sizeobject | stringNoThe size of the generated image.—
request_body.image_size.widthintegerNoThe width of the generated image.512
request_body.image_size.heightintegerNoThe height of the generated image.512
request_body.num_imagesintegerNoThe number of images to generate. This is always set to 1 for streaming output.1
request_body.paste_backbooleanNoSpecifies whether to paste-back the original image onto to the non-inpainted areas of the outputtrue
request_body.accelerationenum (none | regular)NoAcceleration level for image generation. 'regular' balances speed and quality.none
request_body.output_formatenum (jpeg | png)NoThe format of the generated image.jpeg
request_body.guidance_scalenumberNo The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. 30
request_body.resize_to_originalbooleanNoResizes the image back to the original size. Use when you wish to preserve the exact image size as the originally provided image.false
request_body.num_inference_stepsintegerNoThe number of inference steps to perform.28
request_body.enable_safety_checkerbooleanNoIf set to true, the safety checker will be enabled.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_lora_fill' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "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.