# Pruna P-Video 2 Pro > Pruna's highest-quality video model. Generates video from text or images with cost, speed and quality modes, first- and last-frame control, and durations from 5 to 15 seconds at 480p or 768p. - **Provider**: replicate - **Model ID**: prunaai/p-video-2-pro - **Category**: video_generation - **Credits**: 410 per request - **Pricing Type**: input_based ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `mode` (string, optional): Generation mode: speed (default, faster), quality (higher fidelity) or cost (lowest price). (Default: `speed`; Options: `quality`, `speed`, `cost`) - `duration` (integer, optional): Video duration in seconds (5-15). (Default: `5`; Range: min: 5, max: 15) - `image` (string, optional): First-frame reference image (image-to-video). - `aspect_ratio` (string, optional): Aspect ratio; reference images determine the canvas when provided. (Default: `16:9`; Options: `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `1:1`) - `prompt_upsampler` (string, optional): Expand your prompt before video generation. (Default: `turbo`; Options: `off`, `turbo`, `max`) - `seed` (integer, optional): Random seed for reproducible generation. - `last_frame_image` (string, optional): Last-frame reference image for control over the ending. - `prompt` (string, **required**): Text prompt for video generation. - `resolution` (string, optional): Video resolution. (Default: `768p`; Options: `480p`, `768p`) ## Example Request ```json { "model": "prunaai/p-video-2-pro", "input": { "mode": "speed", "duration": 5, "image": "https://replicate.delivery/pbxt/PoNvQd3plThnhNsGUc8fE4e9OTdk0jcmiOhqLsXjt1mxiTA4/tmp4z1l281s-1.webp", "aspect_ratio": "16:9", "prompt_upsampler": "turbo", "prompt": "Use the provided image as the exact first frame. A velociraptor moves cautiously through an opulent palace salon, looking around alertly, then suddenly speeding deeper into the room. One continuous low-angle handheld cinematic shot with warm lighting.", "resolution": "768p" } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "black-forest-labs/flux-schnell", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Output Type url ## Tags prunaai, video-generation, text-to-video, image-to-video, first-last-frame, high-quality ## Documentation https://replicate.com/prunaai/p-video-2-pro