Real-ESRGAN
Real-ESRGAN is a deep learning-based image super-resolution model that enhances low-resolution images by inferring high-frequency detail and preserving texture quality. It uses generative adversarial techniques to upscale images while reducing noise and maintaining natural appearance.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples4
CODE
Ready-to-use code snippets for common workflows
Pixelated Arcade Alley Sign

import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:504@1',
upscaleFactor: 4,
inputs: {
image: 'https://assets.runware.ai/assets/inputs/84cbd04e-9d9b-4f7c-b6ef-cbfdcdec661e.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84cbd04e-9d9b-4f7c-b6ef-cbfdcdec661e.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "3b7abc57-90ef-40dc-aa1b-415f5b39c09a",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84cbd04e-9d9b-4f7c-b6ef-cbfdcdec661e.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/84cbd04e-9d9b-4f7c-b6ef-cbfdcdec661e.jpg{
"taskType": "upscale",
"taskUUID": "3b7abc57-90ef-40dc-aa1b-415f5b39c09a",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84cbd04e-9d9b-4f7c-b6ef-cbfdcdec661e.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "3b7abc57-90ef-40dc-aa1b-415f5b39c09a",
"imageUUID": "35151ed3-fdb1-434c-8975-2c95dda6e0e8",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/3/ii/35151ed3-fdb1-434c-8975-2c95dda6e0e8.jpg",
"cost": 0.0006,
"inputImageUUID": "6d69ecd9-adb6-4221-b09b-095bda6d327c"
}Snowy Tramline Evening Facade

import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:504@1',
upscaleFactor: 4,
inputs: {
image: 'https://assets.runware.ai/assets/inputs/994588bb-c245-4ee6-87b0-c44400b2beb3.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/994588bb-c245-4ee6-87b0-c44400b2beb3.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "e76de50d-fcc8-4a2c-b7ca-fc609c54c777",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/994588bb-c245-4ee6-87b0-c44400b2beb3.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/994588bb-c245-4ee6-87b0-c44400b2beb3.jpg{
"taskType": "upscale",
"taskUUID": "e76de50d-fcc8-4a2c-b7ca-fc609c54c777",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/994588bb-c245-4ee6-87b0-c44400b2beb3.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "e76de50d-fcc8-4a2c-b7ca-fc609c54c777",
"imageUUID": "3c4dbc8e-f539-4013-a8df-9272c32169cd",
"imageURL": "https://im.runware.ai/image/os/a02d21/ws/4/ii/3c4dbc8e-f539-4013-a8df-9272c32169cd.jpg",
"cost": 0.0006,
"inputImageUUID": "817fee08-4a00-4022-8f37-89fcd10382da"
}Weathered Station Mural Fragments

import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:504@1',
upscaleFactor: 4,
inputs: {
image: 'https://assets.runware.ai/assets/inputs/32054489-fe80-41de-bee3-61aadd0c6b88.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/32054489-fe80-41de-bee3-61aadd0c6b88.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "67080314-0d7f-481f-a8b7-2fd12c33cb09",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/32054489-fe80-41de-bee3-61aadd0c6b88.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/32054489-fe80-41de-bee3-61aadd0c6b88.jpg{
"taskType": "upscale",
"taskUUID": "67080314-0d7f-481f-a8b7-2fd12c33cb09",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/32054489-fe80-41de-bee3-61aadd0c6b88.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "67080314-0d7f-481f-a8b7-2fd12c33cb09",
"imageUUID": "f1293d4e-e5d4-42e5-8131-6892517a4ee4",
"imageURL": "https://im.runware.ai/image/os/a02d21/ws/4/ii/f1293d4e-e5d4-42e5-8131-6892517a4ee4.jpg",
"cost": 0.0006,
"inputImageUUID": "05bad6e0-ada4-4637-99ef-7e65b95bc7a6"
}Pixelated Seaside Ferris Wheel

import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:504@1',
upscaleFactor: 4,
inputs: {
image: 'https://assets.runware.ai/assets/inputs/171b3e27-5f9f-43c2-95fc-b77a6b6042bd.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/171b3e27-5f9f-43c2-95fc-b77a6b6042bd.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "32774e2f-e05b-4a47-a34f-4e1eeba03822",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/171b3e27-5f9f-43c2-95fc-b77a6b6042bd.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/171b3e27-5f9f-43c2-95fc-b77a6b6042bd.jpg{
"taskType": "upscale",
"taskUUID": "32774e2f-e05b-4a47-a34f-4e1eeba03822",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/171b3e27-5f9f-43c2-95fc-b77a6b6042bd.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "32774e2f-e05b-4a47-a34f-4e1eeba03822",
"imageUUID": "2c52d7ed-a248-488e-a5c7-a7a3911d313a",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/3/ii/2c52d7ed-a248-488e-a5c7-a7a3911d313a.jpg",
"cost": 0.0013,
"inputImageUUID": "22a55295-a10e-4ebe-aa14-184319882ce6"
}