SnapeditAPI
Đăng nhậpBắt đầu miễn phí
Đăng nhập
API Reference

Enhance and upscale image (Pro)

Upscale and enhance image resolution using the strongest Snapedit enhancement model, working especially well for person images. Supports input images with maximum width and height <= 1500 px.

Model:enhance-upscale-image-pro
Credit:12 (2x), 19 (4x)
post/v1/images/enhance/pro

Authorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Thời gian xử lý trung bình

Cho mỗi yêu cầu.

2×
≈ 6 giây
4×
≈ 9,5 giây

Measured with two faces.

Yêu cầu đầu vào

Hình ảnh

Định dạng
JPEG, PNG, WEBP
Độ phân giải tối đa
1500 × 1500 px
Xem tất cả yêu cầu đầu vào

Parameters

NameTypeStatusDescription
input_image
fileRequiredImage file or URL to enhance. Maximum width and height must be <= 1500 px.
zoom_factor
stringRequiredUpscale factor.
24
(default: 2)
enhance_faces
booleanOptionalEnable face enhancement.(default: true)

Responses

Image enhanced successfullySingleImageResponse

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/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.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (2 examples)

Input

Input 1

Output

Output