P-API provides access to multiple AI models for image generation, video generation, and image-to-video transformation. The API supports both asynchronous and synchronous workflows:
Asynchronous Workflow (default):
- POST /v1/predictions - Submit a generation request
- GET /v1/predictions/status/{id} - Check prediction status and get results
- GET /v1/predictions/delivery/{path} - Download the generated content
Synchronous Workflow (with Try-Sync header):
- POST /v1/predictions with
Try-Sync: trueheader - Submit a generation request and wait up to 60 seconds for completion. If the generation completes within this time, the response includes the final result directly.
The API exposes 10 AI models across different categories:
- Text-to-Image: p-image, flux-dev, wan-image-small, qwen-image
- Image Editing: p-image-edit, qwen-image-edit-plus, flux-dev-lora
- Text-to-Video: wan-t2v
- Image-to-Video: wan-i2v
- Video Generation/Editing: vace
For detailed model documentation, see: https://api.pruna.ai
All requests require API key authentication via the apikey header. Rate limits apply per model (see individual model descriptions).
- Server 1:https://api.pruna.ai
Production server
ApiKeyAuth (apiKey)
API key for authentication. You can obtain your API key from the Pruna AI dashboard.
Include it in the apikey header for all requests.