API Reference
Restore old images (Normal)
Restore and enhance old images, remove the scratches.
Model:
restore-imageCredit:1
post
/v1/images/restoreAuthorization — 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.
- Thời gian xử lý
- ≈ 2,2 giây
Yêu cầu đầu vào
Hình ảnh
- Định dạng
- JPEG, PNG, WEBP
- Độ phân giải tối đa
- 3000 × 3000 px
Parameters
| Name | Type | Status | Description |
|---|---|---|---|
input_image | file | Required | Image file or URL to restore. |
Responses
Image restored 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.snapedit.app/v1/images/restore" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg"Response
{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapedit.app/outputs/abc123.png"
}
]
}
