---
title: "p-image"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53/schemas/p-image"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53.md

# p-image

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.1.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    p-image:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          required:
            - prompt
          properties:
            prompt:
              type: string
              description: Text prompt for image generation
            aspect_ratio:
              type: string
              description: Aspect ratio for the generated image. Use 'custom' to specify width
                and height manually.
              enum:
                - 1:1
                - 16:9
                - 9:16
                - 4:3
                - 3:4
                - 3:2
                - 2:3
                - custom
              default: 16:9
            width:
              type: integer
              description: Width of the generated image. Only used when aspect_ratio=custom.
                Must be a multiple of 16.
              minimum: 256
              maximum: 1440
            height:
              type: integer
              description: Height of the generated image. Only used when aspect_ratio=custom.
                Must be a multiple of 16.
              minimum: 256
              maximum: 1440
            seed:
              type: integer
              description: Random seed for reproducible generation
            disable_safety_checker:
              type: boolean
              description: Disable safety checker for generated images
              default: false
          additionalProperties: false
```
