API Documentation

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

NameTypeRequiredDescription
imageUrlstringYesURL of the image to upscale. Must be a valid and accessible image URL.
scalenumberNoScale factor. Valid values are 2, 4, 6, 8

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 generated successfully",
    "data": "https://api.soreal.app/assets/users/1/generations/1749381948150.png"
}

Error Codes

Status CodeDescription
400Bad Request - Invalid parameters, Insufficient credits
401Unauthorized - Invalid API key
429Too Many Requests - Rate limit exceeded
500Internal Server Error