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
Examples8
CODE
Ready-to-use code snippets for common workflows
upscale
Prosthetic Running Blade Catalog Photo$0.0013~7s
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/491bf548-85e6-4afb-92c8-4420c5963153.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/491bf548-85e6-4afb-92c8-4420c5963153.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": "200dfb96-5a33-45f8-96a5-6fd9b62b3618",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/491bf548-85e6-4afb-92c8-4420c5963153.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/491bf548-85e6-4afb-92c8-4420c5963153.jpg{
"taskType": "upscale",
"taskUUID": "200dfb96-5a33-45f8-96a5-6fd9b62b3618",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/491bf548-85e6-4afb-92c8-4420c5963153.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "200dfb96-5a33-45f8-96a5-6fd9b62b3618",
"imageUUID": "02a9d235-4bdb-4c18-99e0-53f5726c2ecb",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/4/ii/02a9d235-4bdb-4c18-99e0-53f5726c2ecb.jpg",
"cost": 0.0013,
"inputImageUUID": "78433942-2384-456a-baaa-30a685df2bc8"
}upscale
Herbarium Curator Catalogue Portrait$0.0026~16s
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/f9f39878-58b9-4254-9b40-d2a0613c0deb.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/f9f39878-58b9-4254-9b40-d2a0613c0deb.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": "8f6cbb6d-7e10-4334-9471-7d6c77df94bd",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/f9f39878-58b9-4254-9b40-d2a0613c0deb.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/f9f39878-58b9-4254-9b40-d2a0613c0deb.jpg{
"taskType": "upscale",
"taskUUID": "8f6cbb6d-7e10-4334-9471-7d6c77df94bd",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/f9f39878-58b9-4254-9b40-d2a0613c0deb.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "8f6cbb6d-7e10-4334-9471-7d6c77df94bd",
"imageUUID": "5b34c3a3-fcae-4d03-8cb0-a88a64fd8389",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/5/ii/5b34c3a3-fcae-4d03-8cb0-a88a64fd8389.jpg",
"cost": 0.0026,
"inputImageUUID": "c126baf8-e8a3-47f2-9fe7-ce55b916877a"
}upscale
Desert Observatory Night Relight$0.0013~10s
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/3623ba64-a143-45b5-809b-31e6ee6c13eb.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/3623ba64-a143-45b5-809b-31e6ee6c13eb.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": "9ef9bf83-9aed-4c73-9301-6fb6424f7e0a",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/3623ba64-a143-45b5-809b-31e6ee6c13eb.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/3623ba64-a143-45b5-809b-31e6ee6c13eb.jpg{
"taskType": "upscale",
"taskUUID": "9ef9bf83-9aed-4c73-9301-6fb6424f7e0a",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/3623ba64-a143-45b5-809b-31e6ee6c13eb.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "9ef9bf83-9aed-4c73-9301-6fb6424f7e0a",
"imageUUID": "de772343-550d-4bfc-b13b-d21279d6dc10",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/4/ii/de772343-550d-4bfc-b13b-d21279d6dc10.jpg",
"cost": 0.0013,
"inputImageUUID": "442130f4-200d-4d94-bfa5-1c3d699b813a"
}upscale
Saffron Apiary Smoker Colorway$0.0026~13s
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/834e30e7-92c3-454c-aa98-fa0db0ea0a32.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/834e30e7-92c3-454c-aa98-fa0db0ea0a32.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": "f807e06d-115e-4926-82c4-0a168ea00421",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/834e30e7-92c3-454c-aa98-fa0db0ea0a32.jpg"
}
}
]'runware run runware:504@1 \
upscaleFactor=4 \
inputs.image=https://assets.runware.ai/assets/inputs/834e30e7-92c3-454c-aa98-fa0db0ea0a32.jpg{
"taskType": "upscale",
"taskUUID": "f807e06d-115e-4926-82c4-0a168ea00421",
"model": "runware:504@1",
"upscaleFactor": 4,
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/834e30e7-92c3-454c-aa98-fa0db0ea0a32.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "f807e06d-115e-4926-82c4-0a168ea00421",
"imageUUID": "70458ea4-26c3-44bd-9424-e5524c27a1c9",
"imageURL": "https://im.runware.ai/image/os/a10dlim3/ws/5/ii/70458ea4-26c3-44bd-9424-e5524c27a1c9.jpg",
"cost": 0.0026,
"inputImageUUID": "579887d5-1a30-4738-8291-7972614a444c"
}
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"
}
}Response
{
"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"
}
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"
}
}Response
{
"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"
}
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"
}
}Response
{
"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"
}
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"
}
}Response
{
"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"
}