p-image-pro
Premium text-to-image generation by Pruna
Premium text-to-image generation by Pruna
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
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:
{
"id": "1zww7deyssrme0csqwr90phzzr",
"model": "p-image-pro",
"input": { ... },
"get_url": "https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr"
}
Check status and get results:
curl -X GET 'https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr' \
-H 'apikey: YOUR_API_KEY'
Synchronous Request (Try-Sync)
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):
{
"status": "succeeded",
"generation_url": "/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.jpg"
}
| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text description of the image to generate. The model automatically enhances prompts for better results. |
| 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 |