---
title: "P-Image-Pro"
url: "https://docs.api.pruna.ai/guides/models/p-image-pro"
image: "https://docs.api.pruna.ai/_og/d/c_Ocean.takumi,title_P-Image-Pro,props_eyJ0aGVtZSI6eyJtb2RlIjoibGlnaHQiLCJjb2xvcnMiOnsicHJpbWFyeSI6IiM3YzNhZWQifX19,p_Ii9ndWlkZXMvbW9kZWxzL3AtaW1hZ2UtcHJvIg,s_qWiC7xZ0kIF0aUjf.png"
---

# p-image-pro

Premium text-to-image generation by Pruna

## [Overview](#overview)

P-Image-Pro is Pruna's premium text-to-image model delivering enhanced image quality with automatic prompt enhancement and multi-stage refinement. It supports custom aspect ratios and flexible dimensions, ideal for production workloads requiring top-tier results.

**Rate Limit:** 500 requests per minute

**Category:** Text-to-Image Generation

**Price**: 0.01$ / image

## [Quickstart](#quickstart)

### [Asynchronous Request (Default)](#asynchronous-request-default)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Model: p-image-pro' \
  -d '{
    "input": {
      "prompt": "A majestic lion standing on a rocky cliff at sunset",
      "aspect_ratio": "16:9"
    }
  }'
```

Response:

```text
  {
    "id": "1zww7deyssrme0csqwr90phzzr",
    "model": "p-image-pro",
    "input": { ... },
    "get_url": "https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr"
  }
```

Check status and get results:

```bash
  curl -X GET 'https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr' \
    -H 'apikey: YOUR_API_KEY'
```

Synchronous Request (Try-Sync)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: p-image-pro' \
-H 'Try-Sync: true' \
-d '{
"input": {
"prompt": "A majestic lion standing on a rocky cliff at sunset",
"aspect_ratio": "16:9"
}
}'
```

Response (if completed within 60 seconds):

```text
{
"status": "succeeded",
"generation_url": "/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.jpg"
}
```

### [Parameters](#parameters)

#### [Required Parameters](#required-parameters)

| Parameter | Type   | Description                                                                      |
| :-------- | :----- | :------------------------------------------------------------------------------- |
| prompt    | string | Text description of the image to generate. The model automatically enhances prompts for better results. |

#### [Optional Parameters](#optional-parameters)

| Parameter              | Type    | Default | Description                                                                      |
| :--------------------- | :------ | :------ | :------------------------------------------------------------------------------- |
| aspect_ratio           | string  | "16:9"  | Aspect ratio for the image. Options: "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "custom" |
| width                  | integer | -       | Custom width in pixels (256-2048). Only used when aspect_ratio="custom". Must be multiple of 16. |
| height                 | integer | -       | Custom height in pixels (256-2048). Only used when aspect_ratio="custom". Must be multiple of 16. |
| seed                   | integer | random  | Random seed for reproducible generation                                          |
| disable_safety_checker | boolean | false   | Disable safety checker for generated images                                      |