---
title: P-Image Upscale | Runware Docs
url: https://runware.ai/docs/models/prunaai-p-image-upscale
description: AI-powered image upscaling up to 8 megapixels with detail and realism enhancement
---
# 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.

- **ID**: `prunaai:p-image@upscale`
- **Status**: live
- **Creator**: Pruna AI
- **Release Date**: April 2, 2026
- **Capabilities**: Image to Image, Upscale, Checkpoint

## Pricing

Pricing vary based on target resolution: 1–4 MP is $0.005 / image and 5–8 MP is $0.01 / image

- **1–4 MP**: `$0.005`
- **5–8 MP**: `$0.01`
- **9-16 MP**: `$0.02`
- **17-32 MP**: `$0.04`
- **33-64 MP**: `$0.06`
- **65-128 MP**: `$0.12`

## Compatibility & Validation

`upscaleFactor` cannot be used with `targetMegapixels`.

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/prunaai-p-image-upscale#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `upscale`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/prunaai-p-image-upscale#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/prunaai-p-image-upscale#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/prunaai-p-image-upscale#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/prunaai-p-image-upscale#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/prunaai-p-image-upscale#request-webhookurl)

- **Type**: `string`
- **Format**: `uri`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/prunaai-p-image-upscale#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/prunaai-p-image-upscale#request-uploadendpoint)

- **Type**: `string`
- **Format**: `uri`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [ttl](https://runware.ai/docs/models/prunaai-p-image-upscale#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/prunaai-p-image-upscale#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [image](https://runware.ai/docs/models/prunaai-p-image-upscale#request-inputs-image)

- **Path**: `inputs.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/prunaai-p-image-upscale#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `prunaai:p-image@upscale`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [upscaleFactor](https://runware.ai/docs/models/prunaai-p-image-upscale#request-upscalefactor)

- **Type**: `integer`
- **Min**: `2`
- **Max**: `16`

Factor by which to upscale the generated image. A value of 2 doubles width and height.

### [targetMegapixels](https://runware.ai/docs/models/prunaai-p-image-upscale#request-targetmegapixels)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `128`

Target resolution in megapixels. Output is capped at 128 MP.

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the \`settings\` object.

### [enhanceDetails](https://runware.ai/docs/models/prunaai-p-image-upscale#request-settings-enhancedetails)

- **Path**: `settings.enhanceDetails`
- **Type**: `boolean`

Enhances fine textures and small details. May increase contrast and introduce minor deviations from the original.

### [realism](https://runware.ai/docs/models/prunaai-p-image-upscale#request-settings-realism)

- **Path**: `settings.realism`
- **Type**: `boolean`

Improves realism in the upscaled image. May deviate more from the original. Recommended for AI-generated images.

## Response Parameters

### [taskType](https://runware.ai/docs/models/prunaai-p-image-upscale#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `upscale`

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/prunaai-p-image-upscale#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

### [imageUUID](https://runware.ai/docs/models/prunaai-p-image-upscale#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/prunaai-p-image-upscale#response-imageurl)

- **Type**: `string`
- **Format**: `uri`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/prunaai-p-image-upscale#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/prunaai-p-image-upscale#response-imagedatauri)

- **Type**: `string`
- **Format**: `uri`

Data URI of the output image.

### [cost](https://runware.ai/docs/models/prunaai-p-image-upscale#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### Porcelain Masked Violin Prodigy (Upscale)

![Porcelain Masked Violin Prodigy](https://assets.runware.ai/examples/prunaai-p-image-upscale/d9f49a56-22a3-4664-b9b8-68adb338c7af.jpg)

---

### Crumpled Flyer Shop Window (Upscale)

![Crumpled Flyer Shop Window](https://assets.runware.ai/examples/prunaai-p-image-upscale/34bef1d2-94d0-4c3c-9f27-14d2b78bd2be.jpg)

---

### Smudged Night Market Snapshot (Upscale)

![Smudged Night Market Snapshot](https://assets.runware.ai/examples/prunaai-p-image-upscale/539d9832-4db3-4709-99b4-95dcf9089d20.jpg)

---

### Pixelated Retro Diner Portrait (Upscale)

![Pixelated Retro Diner Portrait](https://assets.runware.ai/examples/prunaai-p-image-upscale/1d84f05d-4fa4-42bd-8897-af0657938df8.jpg)