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
Examples4
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
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"
}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
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"
}