Phota Enhance

From 156 credits/call
ae_phota_enhance

Improve an image’s quality and resolution, with optional identity preservation.

UpscalingImage
From 156 credits/call

Pricing

From 156 credits/call
ConditionCharge
Per image156 credits/image

Charges depend on image count.

An omitted image count is charged as one image.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.image_urlstringYesURL/Base64 data URI of the image to enhance.—
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_imagesintegerNoNumber of images to generate.1
request_body.profile_idsarrayNoList of profile IDs to use for the image enhancement. The profiles sent over will be used as candidates for identity preservation.—
request_body.output_formatenum (jpeg | png | webp)NoThe format of the generated image.jpeg

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_phota_enhance' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_url": "https://v3b.fal.media/files/b/0a8b911d/Abk8vStrvmSPlzUqI_NN3_image_043.png"
    }
  }
}'

No response example available yet.