Skip to content

Latest commit

History

History
63 lines (51 loc) · 3.34 KB

File metadata and controls

63 lines (51 loc) · 3.34 KB

Image Upscaling

Enhance the resolution and quality of your images using Runware's advanced upscaling API. Transform low-resolution images into sharp, high-definition visuals. Upscaling refers to the process of enhancing the resolution and overall quality of images. This technique is particularly useful for improving the visual clarity and detail of lower-resolution images, making them suitable for various high-definition applications.

Request

To upscale an image, send a request in the following format:

[
{
"taskType": "imageUpscale",
"taskUUID": "19abad0d-6ec5-40a6-b7af-203775fa5b7f",
"inputImage": "fd613011-3872-4f37-b4aa-0d343c051a27",
"outputType": "URL",
"outputFormat": "JPG",
"upscaleFactor": 2
}
]

Parameters

ParameterTypeDescription
taskTypestringMust be set to "imageUpscale" for this operation.
taskUUIDUUIDv4 stringUnique identifier for the task, used to match async responses.
inputImageUUIDv4 stringThe UUID of the image to be upscaled. Can be from a previously uploaded or generated image.
upscaleFactorintegerThe level of upscaling to be performed. Can be 2, 3, or 4. Each will increase the image size by that factor.
outputFormatstringSpecifies the format of the output image. Supported formats are: PNG, JPG and WEBP.
includeCostbooleanOptional. If set to true, the response will include the cost of the operation.

Response

Responses will be delivered in the following format:

{
"data": [
{
"taskType": "imageUpscale",
"taskUUID": "19abad0d-6ec5-40a6-b7af-203775fa5b7f",
"imageUUID": "e0b6ed2b-311d-4abc-aa01-8f3fdbdb8860",
"inputImageUUID": "fd613011-3872-4f37-b4aa-0d343c051a27",
"imageURL": "https://im.runware.ai/image/ws/0.5/ii/e0b6ed2b-311d-4abc-aa01-8f3fdbdb8860.jpg",
"cost": 0
}
]
}

Response Parameters

ParameterTypeDescription
taskTypestringThe type of task, in this case "imageUpscale".
taskUUIDUUIDv4 stringThe unique identifier matching the original request.
imageUUIDUUIDv4 stringThe UUID of the upscaled image.
imageURLstringThe URL where the upscaled image can be downloaded from.
costnumberThe cost of the operation (included if includeCost was set to true).

Note: The NSFW filter occasionally returns false positives and very rarely false negatives.