# P-Video > PrunaAI's fast video generation model with built-in draft mode for rapid creative iteration, supporting text-to-video, image-to-video, and audio-to-video in a single endpoint ## Quick Reference - Model ID: p-video - Creator: PrunaAI - Status: active - Family: p-video - Base URL: https://api.lumenfall.ai/v1 ## Specifications - Max Video Duration: 10 seconds - Input Modalities: text, image, audio - Output Modalities: video, audio - Supported Modes: Text to Video, Image to Video ## Model Identifiers - Primary Slug: p-video ## Tags video-generation, text-to-video, image-to-video, audio-generation ## Available Providers ### Replicate - Config Key: replicate/p-video - Provider Model ID: prunaai/p-video - Pricing: $0.020/second - Source: https://replicate.com/prunaai/p-video ## Arena Benchmarks ### The Soul Gauntlet - Elo: 1116 - Record: 4W / 3L / 0T (7 battles) - Rank: #3 of 6 ### Neon Rain Reverie - Elo: 1037 - Record: 1W / 4L / 0T (5 battles) - Rank: #4 of 5 ## Image Gallery 3 images available for this model. Browse all at https://lumenfall.ai/models/prunaai/p-video/gallery ### Arena Video Results - : Elo . Prompt: "Cinematic 16:9 wide shot of a cozy futuristic hobbyist workshop. In the center, a glowing hologra..." - The Soul Gauntlet: Elo 1116. Prompt: "Extreme cinematic close-up of a beautiful young woman experiencing deep, raw emotion. Her express..." - Neon Rain Reverie: Elo 1037. Prompt: "Hyper-realistic cinematic video of an elegant young woman in a flowing white silk dress dancing g..." ## Example Prompt The following prompt was used to generate an example video in our playground: Cinematic 16:9 wide shot of a cozy futuristic hobbyist workshop. In the center, a glowing holographic interface displays the text "P-Video" in shimmering blue light. Slow camera zoom and pan across a workbench filled with glowing transistors and vintage tools. In the soft-focus background, a capybara wearing small reading glasses sits calmly on a velvet stool, nibbling on a sprig of parsley, completely ignored by the busy robotic arms assembling a gadget in the foreground. High detail, 4k. ## Code Examples ### Text to Video (/v1/videos/generations) — Async #### cURL # Step 1: Submit video generation request VIDEO_ID=$(curl -s -X POST \ https://api.lumenfall.ai/v1/videos \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "p-video", "prompt": "", "size": "1024x1024" }' | jq -r '.id') echo "Video ID: $VIDEO_ID" # Step 2: Poll for completion while true; do RESULT=$(curl -s \ https://api.lumenfall.ai/v1/videos/$VIDEO_ID \ -H "Authorization: Bearer $LUMENFALL_API_KEY") STATUS=$(echo $RESULT | jq -r '.status') echo "Status: $STATUS" if [ "$STATUS" = "completed" ]; then echo $RESULT | jq -r '.output.url' break elif [ "$STATUS" = "failed" ]; then echo $RESULT | jq -r '.error.message' break fi sleep 5 done #### JavaScript const BASE_URL = 'https://api.lumenfall.ai/v1'; const API_KEY = 'YOUR_API_KEY'; // Step 1: Submit video generation request const submitRes = await fetch(`${BASE_URL}/videos`, { method: 'POST', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: 'p-video', prompt: '', size: '1024x1024' }) }); const { id: videoId } = await submitRes.json(); console.log('Video ID:', videoId); // Step 2: Poll for completion while (true) { const pollRes = await fetch(`${BASE_URL}/videos/${videoId}`, { headers: { 'Authorization': `Bearer ${API_KEY}` } }); const result = await pollRes.json(); if (result.status === 'completed') { console.log('Video URL:', result.output.url); break; } else if (result.status === 'failed') { console.error('Error:', result.error.message); break; } await new Promise(r => setTimeout(r, 5000)); } #### Python import requests import time BASE_URL = "https://api.lumenfall.ai/v1" API_KEY = "YOUR_API_KEY" HEADERS = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json" } # Step 1: Submit video generation request response = requests.post( f"{BASE_URL}/videos", headers=HEADERS, json={ "model": "p-video", "prompt": "", "size": "1024x1024" } ) video_id = response.json()["id"] print(f"Video ID: {video_id}") # Step 2: Poll for completion while True: result = requests.get( f"{BASE_URL}/videos/{video_id}", headers=HEADERS ).json() if result["status"] == "completed": print(f"Video URL: {result['output']['url']}") break elif result["status"] == "failed": print(f"Error: {result['error']['message']}") break time.sleep(5) ### Image to Video (/v1/videos/generations) — Async #### cURL # Step 1: Submit image-to-video request VIDEO_ID=$(curl -s -X POST \ https://api.lumenfall.ai/v1/videos \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "p-video", "prompt": "", "image_url": "https://example.com/start-frame.jpg", "duration": "10", "aspect_ratio": "16:9" }' | jq -r '.id') echo "Video ID: $VIDEO_ID" # Step 2: Poll for completion while true; do RESULT=$(curl -s \ https://api.lumenfall.ai/v1/videos/$VIDEO_ID \ -H "Authorization: Bearer $LUMENFALL_API_KEY") STATUS=$(echo $RESULT | jq -r '.status') echo "Status: $STATUS" if [ "$STATUS" = "completed" ]; then echo $RESULT | jq -r '.output.url' break elif [ "$STATUS" = "failed" ]; then echo $RESULT | jq -r '.error.message' break fi sleep 5 done #### JavaScript const BASE_URL = 'https://api.lumenfall.ai/v1'; const API_KEY = 'YOUR_API_KEY'; // Step 1: Submit image-to-video request const submitRes = await fetch(`${BASE_URL}/videos`, { method: 'POST', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: 'p-video', prompt: '', image_url: 'https://example.com/start-frame.jpg', duration: '10', aspect_ratio: '16:9' }) }); const { id: videoId } = await submitRes.json(); console.log('Video ID:', videoId); // Step 2: Poll for completion while (true) { const pollRes = await fetch(`${BASE_URL}/videos/${videoId}`, { headers: { 'Authorization': `Bearer ${API_KEY}` } }); const result = await pollRes.json(); if (result.status === 'completed') { console.log('Video URL:', result.output.url); break; } else if (result.status === 'failed') { console.error('Error:', result.error.message); break; } await new Promise(r => setTimeout(r, 5000)); } #### Python import requests import time BASE_URL = "https://api.lumenfall.ai/v1" API_KEY = "YOUR_API_KEY" HEADERS = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json" } # Step 1: Submit image-to-video request response = requests.post( f"{BASE_URL}/videos", headers=HEADERS, json={ "model": "p-video", "prompt": "", "image_url": "https://example.com/start-frame.jpg", "duration": "10", "aspect_ratio": "16:9" } ) video_id = response.json()["id"] print(f"Video ID: {video_id}") # Step 2: Poll for completion while True: result = requests.get( f"{BASE_URL}/videos/{video_id}", headers=HEADERS ).json() if result["status"] == "completed": print(f"Video URL: {result['output']['url']}") break elif result["status"] == "failed": print(f"Error: {result['error']['message']}") break time.sleep(5) ## Frequently Asked Questions ### How much does P-Video cost? P-Video starts at $0.02 per video through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use P-Video via API? You can use P-Video through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "p-video". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer P-Video? P-Video is available through Replicate on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/prunaai/p-video - About: https://lumenfall.ai/models/prunaai/p-video/about - Providers, Pricing & Performance: https://lumenfall.ai/models/prunaai/p-video/providers - API Reference: https://lumenfall.ai/models/prunaai/p-video/api - Benchmarks: https://lumenfall.ai/models/prunaai/p-video/benchmarks - Use Cases: https://lumenfall.ai/models/prunaai/p-video/use-cases - Gallery: https://lumenfall.ai/models/prunaai/p-video/gallery - Playground: https://lumenfall.ai/playground?model=p-video - API Documentation: https://docs.lumenfall.ai