Upscale Image API
Enhance the resolution and quality of images using advanced AI upscaling.
POST/api/image/upscale-image
Upscale an image to a higher resolution.
Request Body
| Field | Type | Description |
|---|---|---|
| imageDataUri | string | Required. The image to upscale (URL or Base64 Data URI). |
| outputResult | string | Optional. `'base64'` (default) or `'url'`. |
Example Request
curl -X POST 'https://codingmantra.com/api/image/upscale-image' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"imageDataUri": "https://example.com/low-res-image.jpg"
}'Example Response
{
"data": {
"upscaledImage": "https://..."
}
}