---
title: "p-image-edit"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec/schemas/p-image-edit"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec.md

# p-image-edit

Edit and compose multiple images (1-5) with text instructions. Supports various editing modes and flexible aspect ratios. Rate limit: 250 requests per minute.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.3.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    p-image-edit:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          properties:
            seed:
              title: Seed
              description: Random seed. Set for reproducible generation.
              type: integer
            turbo:
              title: Turbo
              default: true
              description: If turned on, the model will run faster with additional
                optimizations. For complicated tasks, it is recommended to turn
                this off.
              type: boolean
            images:
              items:
                type: string
                format: uri
              title: Images
              default: []
              minItems: 1
              maxItems: 5
              description: Images to use as a reference (1-5). For editing tasks, provide the
                main image as the first image.
              type: array
            prompt:
              title: Prompt
              description: Text prompt for image generation. Make sure to describe your edit
                task clearly. You can refer to the images as 'image 1' and
                'image 2' and so on.
              type: string
            aspect_ratio:
              enum:
                - match_input_image
                - 1:1
                - 16:9
                - 9:16
                - 4:3
                - 3:4
                - 3:2
                - 2:3
              title: aspect_ratio
              description: Aspect ratio for the generated image. `match_input_image` will
                match the aspect ratio of the first image.
              default: match_input_image
              type: string
            disable_safety_checker:
              title: Disable Safety Checker
              default: false
              description: Disable safety checker for generated images.
              type: boolean
          required:
            - prompt
          additionalProperties: false
      description: "Edit and compose multiple images (1-5) with text instructions.
        Supports various editing modes and flexible aspect ratios. Rate limit:
        250 requests per minute."
```
