---
title: P-Image-Edit | Runware Docs
url: https://runware.ai/docs/models/prunaai-p-image-edit
description: High precision multi image AI editor for fast workflows
---
# P-Image-Edit

P-Image-Edit is a real-time image editing model from Pruna AI. It supports multi image refinement, layout control, and style safe transformations while following prompts with high accuracy. Ideal for production pipelines that need consistent edits and tight latency budgets.

- **ID**: `prunaai:2@1`
- **Status**: live
- **Release Date**: November 10, 2025
- **Capabilities**: Image to Image, Image Editing

## Pricing

- **1024x1024**: `$0.0088`
- **1024x1024 + LoRA**: `$0.01`

## Compatibility & Validation

Provide exactly one of: `inputs.referenceImages` or `width/height`.

---

`width` and `height` must be used together.

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `1K (1:1)` | `1024x1024` |
| `1K (4:3)` | `1184x896` |
| `1K (3:4)` | `896x1184` |
| `1K (16:9)` | `1376x768` |
| `1K (9:16)` | `768x1376` |
| `1K (3:2)` | `1248x832` |
| `1K (2:3)` | `832x1248` |

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

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

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

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/prunaai-p-image-edit#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-edit#request-outputtype)

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

Image output type.

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

### [outputFormat](https://runware.ai/docs/models/prunaai-p-image-edit#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-edit#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-edit#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-edit#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-edit#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.

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

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for image generation.

#### [checkContent](https://runware.ai/docs/models/prunaai-p-image-edit#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

#### [mode](https://runware.ai/docs/models/prunaai-p-image-edit#request-safety-mode)

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `none`

Safety checking mode for image generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Performs a single check.

### [ttl](https://runware.ai/docs/models/prunaai-p-image-edit#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-edit#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/prunaai-p-image-edit#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `20`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

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

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

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`

List of reference images (UUID, URL, Data URI, or Base64).

**Generation Parameters**

Core parameters for controlling the generated content.

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

- **Type**: `string`
- **Required**: true
- **Value**: `prunaai:2@1`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [positivePrompt](https://runware.ai/docs/models/prunaai-p-image-edit#request-positiveprompt)

- **Type**: `string`
- **Required**: true
- **Min**: `1`
- **Max**: `2000`

Text prompt describing elements to include in the generated output.

**Learn more** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

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

- **Type**: `integer`
- **Required**: true
- **Paired with**: height

Width of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

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

- **Type**: `integer`
- **Required**: true
- **Paired with**: width

Height of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

**Provider Settings**

Parameters specific to this model provider. These must be nested inside the \`providerSettings.prunaai\` object.

### [turbo](https://runware.ai/docs/models/prunaai-p-image-edit#request-providersettings-prunaai-turbo)

- **Path**: `providerSettings.prunaai.turbo`
- **Type**: `boolean`
- **Default**: `false`

Enable turbo mode for faster generation. May reduce subtle details in complex tasks.

## Response Parameters

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

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

Type of the task.

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

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

UUID of the task.

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

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

UUID of the output image.

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

- **Type**: `string`
- **Format**: `URI`

URL of the output image.

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

- **Type**: `string`

Base64-encoded image data.

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

- **Type**: `string`
- **Format**: `URI`

Data URI of the output image.

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

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/prunaai-p-image-edit#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

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

- **Type**: `float`

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

## Examples

### Submerged Grand Piano Atrium (Image Editing)

![Submerged Grand Piano Atrium](https://assets.runware.ai/examples/prunaai-p-image-edit/17b5a6bd-9917-4a68-a32d-525bfaae2cbb.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "a1c88bd9-1e4c-47c2-9ed8-b4d5c8962f61",
  "model": "prunaai:2@1",
  "positivePrompt": "Transform the reference scene into a dreamlike flooded atrium while keeping the original architecture and grand piano position recognizable. Replace the stage floor with shallow crystal-clear water reflecting the balconies and ceiling. Add drifting koi fish beneath the water surface, clusters of water lilies near the piano legs, hanging vines descending from the upper railings, softened daylight pouring through the glass roof, scattered petals, gentle mist in the distance, and a serene abandoned-mansion atmosphere. Preserve realistic perspective, refined textures, and cohesive natural colors.",
  "width": 1376,
  "height": 768,
  "providerSettings": {
    "prunaai": {
      "turbo": false
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/ae3cbe9a-032d-41f6-88d5-135b2e27f290.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "a1c88bd9-1e4c-47c2-9ed8-b4d5c8962f61",
  "imageUUID": "67265111-4e6c-4e27-a69d-b1f61b788d0e",
  "imageURL": "https://im.runware.ai/image/os/a24d12/ws/2/ii/67265111-4e6c-4e27-a69d-b1f61b788d0e.jpg",
  "seed": 1119712308,
  "cost": 0.0088
}
```

---

### Glasshouse Violin Repair Studio (Image Editing)

![Glasshouse Violin Repair Studio](https://assets.runware.ai/examples/prunaai-p-image-edit/74657a40-9aec-4784-8bb9-574b9b1f3773.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "280b77a1-f23c-4b43-af99-211134cc992d",
  "model": "prunaai:2@1",
  "positivePrompt": "Transform the reference workspace into an elegant glasshouse violin repair studio, preserving the original room structure and major furniture placement. Keep the central workbench, shelving, stool, and window positions consistent, but replace generic tools with luthier details: open violin cases, curled wood shavings, clamps, varnish jars, bridge templates, hanging strings, and a partially restored violin under a small task lamp. Let climbing ivy thread around the window frames and warm late-afternoon sunlight scatter through the glass, creating luminous reflections on polished wood. Add a few potted citrus trees, brass instruments for measuring, hand-labeled drawers, and a refined old-world craft atmosphere. Highly detailed, realistic editorial interior photography, natural textures, balanced composition, crisp focus.",
  "width": 1184,
  "height": 896,
  "providerSettings": {
    "prunaai": {
      "turbo": false
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/eb3bd884-2ea6-4838-9448-5cbe1aba36c7.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "280b77a1-f23c-4b43-af99-211134cc992d",
  "imageUUID": "82ace068-7d4b-4304-ba88-39149079ebec",
  "imageURL": "https://im.runware.ai/image/os/a05d22/ws/2/ii/82ace068-7d4b-4304-ba88-39149079ebec.jpg",
  "seed": 132205525,
  "cost": 0.0088
}
```

---

### Rainy Stationery Shop Window (Image Editing)

![Rainy Stationery Shop Window](https://assets.runware.ai/examples/prunaai-p-image-edit/4d95b28e-c992-406b-a798-5da4291d29af.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "a7b6bc14-5d3d-4061-8cbe-efb4e10dada7",
  "model": "prunaai:2@1",
  "positivePrompt": "Transform the reference storefront into a cozy rainy-evening scene while keeping the same camera angle, window structure, shelf layout, and merchandise placement. Add soft amber interior glow, raindrops and streaks on the glass, faint street reflections, handwritten price tags, elegant paper textures, brushed brass details, folded maps, wax seals, ribbon spools, and a sleepy tabby cat curled on the inner windowsill. Make it cinematic and realistic with refined material detail, moody atmosphere, natural shadows, and believable urban ambience.",
  "width": 1184,
  "height": 896,
  "providerSettings": {
    "prunaai": {
      "turbo": false
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/1275f0cf-ce2c-4db2-8561-5bdd179a63b9.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "a7b6bc14-5d3d-4061-8cbe-efb4e10dada7",
  "imageUUID": "08851305-a54e-4732-9fad-9b6a22764441",
  "imageURL": "https://im.runware.ai/image/os/a12d13/ws/2/ii/08851305-a54e-4732-9fad-9b6a22764441.jpg",
  "seed": 1621561474,
  "cost": 0.0088
}
```

---

### Rooftop Beekeeping Workshop Interior (Image Editing)

![Rooftop Beekeeping Workshop Interior](https://assets.runware.ai/examples/prunaai-p-image-edit/6e71474f-d601-4198-bad2-314e7eb1067b.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "0b5bd3f9-b186-4bfd-8131-861693395b93",
  "model": "prunaai:2@1",
  "positivePrompt": "Transform the reference loft into a refined rooftop beekeeping workshop interior while keeping the original room structure and camera angle. Add neatly arranged wooden hive boxes, glass jars of amber honey, labeled botanical samples, folded veils and gloves, small smokers, wax molds, copper tools, drying herbs hanging near the skylights, and a few potted flowering plants suited for pollinators. Keep the scene realistic, tactile, and production-ready with natural daylight, warm wood tones, subtle golden highlights, clean organization, and high-detail material textures. No people, no text overlays, no logos.",
  "width": 1184,
  "height": 896,
  "providerSettings": {
    "prunaai": {
      "turbo": false
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/c26c8b02-4265-4854-bd8e-e0d5f3c515b1.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "0b5bd3f9-b186-4bfd-8131-861693395b93",
  "imageUUID": "0130a70f-b683-4e6c-9d90-f2eb33a02f90",
  "imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/0130a70f-b683-4e6c-9d90-f2eb33a02f90.jpg",
  "seed": 341720391,
  "cost": 0.0088
}
```