API Reference
Enhance and upscale image (Pro)
Upscale and enhance image resolution using the strongest SnapAPI enhancement model, working especially well for person images. Supports input images with maximum width and height <= 1500 px.
Model:
enhance-upscale-image-proCredit:6 (2x), 11 (4x)
post
/v1/images/enhance/proAuthorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more
Parameters
| Name | Type | Status | Description |
|---|---|---|---|
input_image | file | Required | Image file or URL to enhance. Maximum width and height must be <= 1500 px. |
zoom_factor | string | Required | Upscale factor. 24 (default: 2) |
enhance_faces | boolean | Optional | Enable face enhancement.(default: true) |
Responses
Image enhanced successfullySingleImageResponse
| Field | Type | Description |
|---|---|---|
created | integer | Unix timestamp of when the response was created |
data | object[] | |
url | string | URL to download the result image |
curl -X POST "https://api.snapapi.ai/v1/images/enhance/pro" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg" \
-F "zoom_factor=2" \
-F "enhance_faces=true"Response
{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapapi.ai/outputs/abc123.png"
}
]
}
