Models API

0.2.0
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):** 1. **POST /v1/predictions** - Submit a generation request 2. **GET /v1/predictions/status/{id}** - Check prediction status and get results 3. **GET /v1/predictions/delivery/{path}** - Download the generated content **Synchronous Workflow (with Try-Sync header):** 1. **POST /v1/predictions** with `Try-Sync: true` header - 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://ac25aba50212.eu.kongportals.com/ All requests require API key authentication via the `apikey` header. Rate limits apply per model (see individual model descriptions).