P-Image is Pruna’s ultra-fast text-to-image model with automatic prompt enhancement and 2-stage refinement. It generates high-quality images quickly with minimal configuration.
Try in playground Test P-Image T2I in the Runpod Hub playground.
Endpoint https://api.runpod.ai/v2/p-image-t2i/runsyncPricing $0.005 per image Type Image generation
Request
All parameters are passed within the input object in the request body.
Text description of the desired image.
Output aspect ratio. Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.
Seed for reproducible results.
input.disable_safety_checker
Disable content safety filtering.
curl -X POST "https://api.runpod.ai/v2/p-image-t2i/runsync" \
-H "Authorization: Bearer $RUNPOD_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A majestic lion standing on a rocky cliff at sunset",
"aspect_ratio": "16:9"
}
}'
Response
Unique identifier for the request.
Request status. Returns COMPLETED on success, FAILED on error.
The generation result containing the image URL and cost. URL of the generated image. This URL expires after 7 days.
Cost of the generation in USD.
{
"id" : "sync-a1b2c3d4-e5f6-7890-abcd-ef1234567890-u1" ,
"status" : "COMPLETED" ,
"delayTime" : 10 ,
"executionTime" : 1245 ,
"output" : {
"image_url" : "https://image.runpod.ai/abc123/output.png" ,
"cost" : 0.005
}
}
Image URLs expire after 7 days. Download and store generated images immediately if you need to keep them.
Cost calculation
P-Image T2I charges $0.005 per image generated.