Phota Enhance
From 156 credits/call
ae_phota_enhance
Improve an image’s quality and resolution, with optional identity preservation.
From 156 credits/call
Pricing
From 156 credits/call
| Condition | Charge |
|---|---|
| Per image | 156 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.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.image_url | string | Yes | URL/Base64 data URI of the image to enhance. | — |
request_body.sync_mode | boolean | No | If `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_images | integer | No | Number of images to generate. | 1 |
request_body.profile_ids | array | No | List of profile IDs to use for the image enhancement. The profiles sent over will be used as candidates for identity preservation. | — |
request_body.output_format | enum (jpeg | png | webp) | No | The format of the generated image. | jpeg |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest 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.



