P-Image Upscale

P-Image Upscale is an image upscaling model from Pruna that increases resolution using AI with a configurable target from 1 to 8 megapixels. It includes optional detail enhancement and realism enhancement controls for improving output quality, particularly effective on AI-generated images. It supports JPEG and PNG output formats with both synchronous and asynchronous processing.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples8
CODE
Ready-to-use code snippets for common workflows
upscale
Lichen Green Microscope Colorway Master$0.02~19s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
upscaleFactor: 4,
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/175b4f54-0c3e-46f2-a515-c1d7ecd2324d.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": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/175b4f54-0c3e-46f2-a515-c1d7ecd2324d.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": "81198a45-d528-466b-93eb-dc6cd4fc8835",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/175b4f54-0c3e-46f2-a515-c1d7ecd2324d.jpg"
}
}
]'runware run prunaai:p-image@upscale \
upscaleFactor=4 \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/175b4f54-0c3e-46f2-a515-c1d7ecd2324d.jpg{
"taskType": "upscale",
"taskUUID": "81198a45-d528-466b-93eb-dc6cd4fc8835",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/175b4f54-0c3e-46f2-a515-c1d7ecd2324d.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "81198a45-d528-466b-93eb-dc6cd4fc8835",
"imageUUID": "c5b1b911-9c2b-4340-9402-ee13898fd538",
"imageURL": "https://im.runware.ai/image/os/a01d21/ws/4/ii/c5b1b911-9c2b-4340-9402-ee13898fd538.jpg",
"cost": 0.02,
"inputImageUUID": "20e1f5b5-de35-430e-b7b1-d7379d36b306"
}upscale
Falconry Hood Auction Catalog Image$0.02~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: 'prunaai:p-image@upscale',
upscaleFactor: 4,
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/505b6898-8d32-45d9-83b2-b2f25d9799e1.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": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/505b6898-8d32-45d9-83b2-b2f25d9799e1.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": "32075ece-52c5-4247-81c1-0985b1de9807",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/505b6898-8d32-45d9-83b2-b2f25d9799e1.jpg"
}
}
]'runware run prunaai:p-image@upscale \
upscaleFactor=4 \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/505b6898-8d32-45d9-83b2-b2f25d9799e1.jpg{
"taskType": "upscale",
"taskUUID": "32075ece-52c5-4247-81c1-0985b1de9807",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/505b6898-8d32-45d9-83b2-b2f25d9799e1.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "32075ece-52c5-4247-81c1-0985b1de9807",
"imageUUID": "377e449e-ae6f-44fd-b8c5-2ae9cc3d1c47",
"imageURL": "https://im.runware.ai/image/os/a06dlim3/ws/4/ii/377e449e-ae6f-44fd-b8c5-2ae9cc3d1c47.jpg",
"cost": 0.02,
"inputImageUUID": "c65d0119-8857-4383-a205-b067296d5c3e"
}upscale
Historic Glasshouse Cleanup Master$0.02~26s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
upscaleFactor: 4,
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/4d9bb60a-b0c5-47a7-a9e4-9dc47f94683f.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": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/4d9bb60a-b0c5-47a7-a9e4-9dc47f94683f.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": "3a63ed90-70f9-4699-a934-501df51f2259",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/4d9bb60a-b0c5-47a7-a9e4-9dc47f94683f.jpg"
}
}
]'runware run prunaai:p-image@upscale \
upscaleFactor=4 \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/4d9bb60a-b0c5-47a7-a9e4-9dc47f94683f.jpg{
"taskType": "upscale",
"taskUUID": "3a63ed90-70f9-4699-a934-501df51f2259",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/4d9bb60a-b0c5-47a7-a9e4-9dc47f94683f.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "3a63ed90-70f9-4699-a934-501df51f2259",
"imageUUID": "fb4bea39-258b-4166-9b7e-b7773aa6b338",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/5/ii/fb4bea39-258b-4166-9b7e-b7773aa6b338.jpg",
"cost": 0.02,
"inputImageUUID": "4cef0019-5e54-4461-904e-fb5edcf3d1b5"
}upscale
Deep-Sea Exhibit Wall Panorama$0.02~14s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
upscaleFactor: 4,
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/d8232d9b-bb1b-45d1-92ad-54f7463e1e9c.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": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8232d9b-bb1b-45d1-92ad-54f7463e1e9c.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": "5e827228-a2ab-4147-ae07-2cee1979096c",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8232d9b-bb1b-45d1-92ad-54f7463e1e9c.jpg"
}
}
]'runware run prunaai:p-image@upscale \
upscaleFactor=4 \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/d8232d9b-bb1b-45d1-92ad-54f7463e1e9c.jpg{
"taskType": "upscale",
"taskUUID": "5e827228-a2ab-4147-ae07-2cee1979096c",
"model": "prunaai:p-image@upscale",
"upscaleFactor": 4,
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8232d9b-bb1b-45d1-92ad-54f7463e1e9c.jpg"
}
}Response
{
"taskType": "imageUpscale",
"taskUUID": "5e827228-a2ab-4147-ae07-2cee1979096c",
"imageUUID": "b9db5c52-5b0d-48fe-8c84-fac6f8417885",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/4/ii/b9db5c52-5b0d-48fe-8c84-fac6f8417885.jpg",
"cost": 0.02,
"inputImageUUID": "a358b7ba-9e27-44b9-81f3-d643f3600a52"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/d8e51e60-71ae-4c86-b292-bb1a9a087202.jpg'
},
targetMegapixels: 4
})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": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8e51e60-71ae-4c86-b292-bb1a9a087202.jpg"
},
"targetMegapixels": 4
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "9eeb82b4-c854-4eab-a2d6-fbb96a79fc4f",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8e51e60-71ae-4c86-b292-bb1a9a087202.jpg"
},
"targetMegapixels": 4
}
]'runware run prunaai:p-image@upscale \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/d8e51e60-71ae-4c86-b292-bb1a9a087202.jpg \
targetMegapixels=4{
"taskType": "upscale",
"taskUUID": "9eeb82b4-c854-4eab-a2d6-fbb96a79fc4f",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d8e51e60-71ae-4c86-b292-bb1a9a087202.jpg"
},
"targetMegapixels": 4
}Response
{
"taskType": "imageUpscale",
"taskUUID": "9eeb82b4-c854-4eab-a2d6-fbb96a79fc4f",
"imageUUID": "e80af23c-e333-4934-a5df-6825fc16913a",
"imageURL": "https://im.runware.ai/image/os/a02d21/ws/2/ii/e80af23c-e333-4934-a5df-6825fc16913a.jpg",
"cost": 0.005,
"inputImageUUID": "8dc0e5d9-52db-4ae4-a3cf-3d3f59d3f6c2"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/54f26a61-79b3-4e6c-a469-65064293b404.jpg'
},
targetMegapixels: 6
})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": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/54f26a61-79b3-4e6c-a469-65064293b404.jpg"
},
"targetMegapixels": 6
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "28dd5224-2ec4-4581-b808-420178faaf0a",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/54f26a61-79b3-4e6c-a469-65064293b404.jpg"
},
"targetMegapixels": 6
}
]'runware run prunaai:p-image@upscale \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/54f26a61-79b3-4e6c-a469-65064293b404.jpg \
targetMegapixels=6{
"taskType": "upscale",
"taskUUID": "28dd5224-2ec4-4581-b808-420178faaf0a",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/54f26a61-79b3-4e6c-a469-65064293b404.jpg"
},
"targetMegapixels": 6
}Response
{
"taskType": "imageUpscale",
"taskUUID": "28dd5224-2ec4-4581-b808-420178faaf0a",
"imageUUID": "3b728350-0b3c-4647-a619-f741b3b7d2d4",
"imageURL": "https://im.runware.ai/image/os/a01d21/ws/3/ii/3b728350-0b3c-4647-a619-f741b3b7d2d4.jpg",
"cost": 0.01,
"inputImageUUID": "fe60b053-52ec-43de-b3af-1f2cbca6e76f"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/2012ea91-a5d9-4590-ac8f-538059340901.jpg'
},
targetMegapixels: 4
})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": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2012ea91-a5d9-4590-ac8f-538059340901.jpg"
},
"targetMegapixels": 4
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "2f50809f-8384-40b0-8e49-692f9928271d",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2012ea91-a5d9-4590-ac8f-538059340901.jpg"
},
"targetMegapixels": 4
}
]'runware run prunaai:p-image@upscale \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/2012ea91-a5d9-4590-ac8f-538059340901.jpg \
targetMegapixels=4{
"taskType": "upscale",
"taskUUID": "2f50809f-8384-40b0-8e49-692f9928271d",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2012ea91-a5d9-4590-ac8f-538059340901.jpg"
},
"targetMegapixels": 4
}Response
{
"taskType": "imageUpscale",
"taskUUID": "2f50809f-8384-40b0-8e49-692f9928271d",
"imageUUID": "6545ac4d-cf52-420c-80a7-a5f4a5cfc7a7",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/3/ii/6545ac4d-cf52-420c-80a7-a5f4a5cfc7a7.jpg",
"cost": 0.005,
"inputImageUUID": "e6f05b17-624a-4851-ad48-2e2e127beab7"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-image@upscale',
settings: {
enhanceDetails: true,
realism: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/eb7fd6c0-1fb3-43bf-b99a-0a7266c3a680.jpg'
},
targetMegapixels: 4
})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": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": True,
"realism": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/eb7fd6c0-1fb3-43bf-b99a-0a7266c3a680.jpg"
},
"targetMegapixels": 4
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "upscale",
"taskUUID": "9ce756f4-f79b-4158-b209-4af309fc7ff1",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/eb7fd6c0-1fb3-43bf-b99a-0a7266c3a680.jpg"
},
"targetMegapixels": 4
}
]'runware run prunaai:p-image@upscale \
settings.enhanceDetails=true \
settings.realism=true \
inputs.image=https://assets.runware.ai/assets/inputs/eb7fd6c0-1fb3-43bf-b99a-0a7266c3a680.jpg \
targetMegapixels=4{
"taskType": "upscale",
"taskUUID": "9ce756f4-f79b-4158-b209-4af309fc7ff1",
"model": "prunaai:p-image@upscale",
"settings": {
"enhanceDetails": true,
"realism": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/eb7fd6c0-1fb3-43bf-b99a-0a7266c3a680.jpg"
},
"targetMegapixels": 4
}Response
{
"taskType": "imageUpscale",
"taskUUID": "9ce756f4-f79b-4158-b209-4af309fc7ff1",
"imageUUID": "cf6a91a8-906b-4a08-8ac7-d2db4b04fd3d",
"imageURL": "https://im.runware.ai/image/os/a23d05/ws/3/ii/cf6a91a8-906b-4a08-8ac7-d2db4b04fd3d.jpg",
"cost": 0.005,
"inputImageUUID": "10e42164-ef77-49cd-8516-c2cb052a6d7d"
}