API Reference
Upscale Image
POST
https://api.soreal.app/create-image/upscale
Description
Upscale an existing image to a higher resolution.
This endpoint requires 4 credits per image processed.
Parameters
| Name | Type | Required | Default | Options | Description |
|---|---|---|---|---|---|
| imageUrl | string | Yes | N/A | N/A | URL of the image to upscale. Must be a valid and accessible image URL. |
| scale | number | No | 4 | 2, 4, 6, 8 | Scale factor for image upscaling. |
Example Request Headers
{
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}Example Request Body
{
"imageUrl": "https://example.com/path/to/image.jpg",
"scale": 2
}Example Response
{
"success": true,
"message": "Image upscaled successfully",
"data": {
"imageUrl": "https://api.soreal.app/assets/users/1/generations/1749381948150.png",
"creditBalance": 1000
}
}Error Codes
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters, Insufficient credits |
| 401 | Unauthorized - Invalid API key |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |