About this endpoint
What it does
Upscales an uploaded image by 2× or 4× and returns the processed image as a binary file. You can optionally enable an anime-optimized model variant and face enhancement on the upscaled result.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file (JPEG/PNG/WebP/BMP, max 20 MB) |
| anime | Boolean | No | Use anime-optimised model variant. Default: false. |
| scale | ENUM | No | Upscale factor. Allowed values: 2, 4. Default: 4. |
| face_enhance | Boolean | No | Also run GFPGAN face restoration on the upscaled result. Default: false. |
Response
Returns a binary file containing the upscaled image.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary response | String | Yes | The processed image returned as binary data. |