Image Editing Text Removal

48 credits/call
ae_image_editing_text_removal

Remove text, watermarks, or logos from an image and fill the area to blend with the surrounding background.

Image
48 credits/call

Pricing

48 credits/call
ConditionCharge
Each call48 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNoThe same seed and the same prompt given to the same version of the model will output the same image every time.—
request_body.image_urlstringYesURL of the image containing text to be removed.—
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.aspect_ratiostring | unknownNoThe aspect ratio of the generated image.—
request_body.output_formatenum (jpeg | png)NoThe format of the generated image.jpeg
request_body.guidance_scalenumberNoThe 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.3.5
request_body.safety_toleranceenum (1 | 2 | 3 | 4 | 5 | 6)NoThe safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive.2
request_body.num_inference_stepsintegerNoNumber of inference steps for sampling.30

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit first, then query with the returned task_id until the task completes.

Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_image_editing_text_removal' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "aspect_ratio": "9:16",
      "guidance_scale": 3.5,
      "image_url": "https://v3b.fal.media/files/b/0ab1cbb2/0qB8Vmlk_b7Ed-9EOTnX8_0i9MOJcA.png",
      "num_inference_steps": 30,
      "output_format": "png",
      "seed": 42
    }
  }
}'
Response exampleresponse.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "afb8c86f-874c-42c3-b71c-52a6becd933f"
}