Joyai Image Edit

120.00 credits/MP
ae_joyai_image_edit

Edit an existing image using a text instruction, such as adding, removing, or changing visual details.

Image
120.00 credits/MP

Pricing

120.00 AE credits per MP. Charge for successfully returned images. Charge proportionally to actual pixels. One MP is 1,000,000 pixels.

120.00 credits/MP

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNoRandom seed for reproducibility.—
request_body.promptstringYesThe edit instruction describing what changes to make to the image.—
request_body.image_urlstringYesURL of the input image to edit.—
request_body.sync_modebooleanNoIf True, return image as data URI.false
request_body.output_formatenum (jpeg | png)NoOutput image format.jpeg
request_body.guidance_scalenumberNoControls how closely the output follows the edit instruction.5
request_body.negative_promptstringNoText describing what should not appear in the output image.""
request_body.num_inference_stepsintegerNoNumber of denoising steps.30
request_body.enable_safety_checkerbooleanNoEnable safety checking on input and output.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_joyai_image_edit' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "Add a red hat to the dog",
      "image_url": "https://storage.googleapis.com/falserverless/example_inputs/dog.png"
    }
  }
}'

No response example available yet.