## Basic model info

Model name: prunaai/p-video-2
Model description: P-Video-2 is the quality-focused successor to P-Video from $0.025/s


## Model inputs

- prompt (required): Text prompt for video generation. (string)
- image (optional): Input image to generate video from (image-to-video). Supports jpg, jpeg, png, webp. (string)
- last_frame_image (optional): Reference image for the last frame of the video. Supports jpg, jpeg, png, webp. (string)
- audio (optional): Input audio to condition video generation. Supports flac, mp3, wav. (string)
- duration (optional):  (integer)
- aspect_ratio (optional): Aspect ratio of the video. Ignored when an input image is provided. (string)
- resolution (optional): Resolution of the video. (string)
- fps (optional): Frames per second of the video. (integer)
- draft (optional): Draft mode. Generates a lower-quality preview of the video. (boolean)
- prompt_upsampling (optional): Use prompt upsampling to enhance the prompt. (boolean)
- disable_safety_filter (optional):  (boolean)
- save_audio (optional): Save the video with audio. (boolean)
- seed (optional): Random seed. Set for reproducible generation. (integer)
- no_op (optional): Health check mode - returns status without inference. (boolean)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/bg5d1gyaj1rmt0d0hbgagyxxfm)

#### Input

```json
{
  "fps": 24,
  "seed": 678,
  "draft": false,
  "no_op": false,
  "prompt": "Cute knitted purple character shaped like a rounded prune, with a small green stem on top, fully visible head-to-toe in frame, sitting in a cozy room and reading an open book.  \nBig expressive eyes look down at the book, then naturally lift to look directly at the camera.  \nWarm natural window light, soft textures, shallow depth of field, premium documentary realism.  \nSingle continuous full-body wide shot with a very slow push-in; keep the entire character and green stem visible at all times, no cropping.  \nCharacter reads: \u201cP-Video-2 generates state-of-the-art AI video in seconds. With draft mode for rapid iteration, custom or built-in audio generation, and lip sync.\u201d  ",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "16:9",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/G4XLq1ftyO3NAi2sYcknZwBIwPI3X5f7dG3EtifqNyvUMHYuA/9a92f119-879f-4fce-8830-dd521e9a47af.mp4"
```


### Example (https://replicate.com/p/gytjyv73ssrmy0d0hbm9zgfp0m)

#### Input

```json
{
  "fps": 24,
  "draft": false,
  "no_op": false,
  "prompt": "Black and white film noir alley, rain-slick pavement, femme fatale silhouette walks away under a flickering streetlamp, cigarette smoke drifts, static wide shot, 1940s cinema contrast. You cna hear the steps over the rest of the environment.",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "16:9",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/KL5aZYCCbRoSPtVZRKfR8n2zy8YIruBFfbVsgY36Jc9IuDMXA/85ddfc4f-d4b4-46c2-b56d-9f930b7dbf24.mp4"
```


### Example (https://replicate.com/p/ndk112q0t5rmt0d0hbp98hfzmw)

#### Input

```json
{
  "fps": 24,
  "seed": 678,
  "draft": false,
  "image": "https://replicate.delivery/pbxt/PmHDyFUIG53sGKBRXPnPcLsuNDpH5V5d8tzJxTqFaJ1lwMEd/replicate-prediction-4gfbbba1snrmw0d0hbnv8aqg0r.jpeg",
  "no_op": false,
  "prompt": "Use the image as the exact visual reference. Preserve the cat\u2019s appearance, amber sunglasses, green corduroy jacket, cream collar, cup, warm yellow background, and handmade mixed-media illustration style.\n\nThe cat remains centered and calmly drinks through the striped straw, with subtle natural sipping movements. After a moment, it stops drinking, lowers the straw slightly, looks directly at the camera, and says one clear, cute \u201cmiau.\u201d Its mouth opens and closes naturally for the sound, then it resumes drinking.\n\nLocked camera, minimal movement, subtle blinking and ear motion, tactile paper-and-gouache texture, consistent colors and proportions, no camera movement, no scene changes, no music, no additional sounds or speech, no text.",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "1:1",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/ISLRhepjFPWCV6j0Kwviz2DScqFae36JYhP0FfbeZdEDJPwcB/c1c3c666-d1c4-483a-b140-fea0cc932f97.mp4"
```


### Example (https://replicate.com/p/f5jz16pyvsrmr0d0hbwsmxm298)

#### Input

```json
{
  "fps": 24,
  "draft": false,
  "no_op": false,
  "prompt": "15-second image-to-video. Use the last frame image artwork as the final composition and preserve its vintage engraved portrait, muted paper textures, botanical details, geometric forms, and restrained color palette.\n\nThe video begins with only the woman\u2019s monochrome portrait visible against a sparse, aged-paper background. The collage gradually builds itself around her: delicate stems and leaves draw themselves into existence, flower buds emerge and bloom into large red, ochre, and ivory chrysanthemums around her head, and additional botanical elements grow upward from the bottom. Torn-paper pieces, translucent circles, colored rectangles, ink marks, and fine technical lines appear one layer at a time. The mountain landscape and architectural ruins slowly develop across her chest like an engraving being printed onto the paper. Finally, the butterfly appears, gently flaps its wings, and settles into position as the composition becomes identical to the reference image.\n\nElegant stop-motion collage animation, subtle paper movement, blooming flowers, spreading ink and engraved lines, smooth progressive reveal, fixed camera, stable portrait and facial features, no morphing, no abrupt transitions. Completely silent: no music, no voice, no ambient sound.",
  "duration": 5,
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "2:3",
  "last_frame_image": "https://replicate.delivery/pbxt/PmHRQFFflxfc0F5iQa6iHMyzxqADxCzYojTbu4N2ZHFzKFx0/replicate-prediction-4myd92z5ydrmy0d0hbsta7y234.jpeg",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/VA2qOpBohhKALVx3KgyzaGVSlrb90h7S68OVOyY9cYbBABzF/ae28dd21-aa8b-4163-b0e1-6c672a40cf39.mp4"
```


### Example (https://replicate.com/p/vt2twwxp65rmt0d0hc08909z00)

#### Input

```json
{
  "fps": 24,
  "draft": false,
  "no_op": false,
  "prompt": "15-second cinematic video presented through an antique camera viewfinder: a small, softly glowing rectangular frame with rounded corners floating in deep black space. The aged frame remains completely fixed throughout, with a heavy dark vignette, faded edges, dust, scratches, subtle flicker, optical distortion, and slight chromatic aberration.\n\nOnly the photograph inside the viewfinder changes. Each transition resembles an old camera advancing to its next exposure, accompanied visually by a brief shutter flicker:\n\n1. A misty mountain valley rendered as a delicate graphite drawing.\n2. A sunny Mediterranean coastline painted in loose watercolor.\n3. A dramatic desert with red cliffs created in thick impasto oils.\n4. A moonlit Japanese forest illustrated as a traditional woodblock print.\n5. A surreal tropical landscape constructed from layered paper collage.\n\nEach landscape has gentle internal motion\u2014drifting clouds, rippling water, swaying trees, or floating dust\u2014but remains entirely contained within the viewfinder. The black background, vintage border, framing, size, and position never change. Analog film texture, faded exposure, handmade imperfections, smooth rhythmic transitions, no people, no text, no logos, no camera movement, no deformation of the outer frame.",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "3:4",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/3MQGkrGV7sp0NVeieuMzz5IcfvaOplGbqArZSnO8la1KNIYuA/e9f4577f-f633-4d17-99e7-3ef0e7e4e354.mp4"
```


### Example (https://replicate.com/p/62nrhtt0z9rmr0d0hcar906f08)

#### Input

```json
{
  "fps": 24,
  "draft": false,
  "no_op": false,
  "prompt": "Intimate live session: she strums acoustic guitar and sings with accurate lip sync, minimal body sway, static camera, warm film grain.\n\nLyrics she sings (original): \"City lights are fading slow, I packed my bags and let you go. Every street remembers us, but I'm not asking for your trust.\"\n\nAudio: fingerpicked acoustic guitar plus her voice singing the lyrics above, warm studio room tone, no backing track.",
  "resolution": "720p",
  "save_audio": true,
  "aspect_ratio": "9:16",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/NcP7ECVebelFOkQScAXXjuMJBFGbZIx2NtBrBkbTlkJmbEMXA/bbf06b11-3ed3-493c-8753-7d82bea7ae70.mp4"
```


### Example (https://replicate.com/p/br8q07njg5rmy0d0hch94p8n68)

#### Input

```json
{
  "fps": 24,
  "draft": false,
  "image": "https://replicate.delivery/pbxt/PmI7gP0VJhYeUv3sQXCh1KUestAY1weSJkPDrGiudPbTUQ9L/replicate-prediction-65cdvf9kfdrmy0d0hcg9xcxtjc.jpeg",
  "no_op": false,
  "prompt": "The woman begins in her original pose, looking confidently down toward the camera. She slowly lowers her raised arm in a graceful arc, turns her shoulders slightly, and shifts her weight as a strong breeze lifts and ripples the sculptural layers of her dress. She then raises both arms elegantly, makes a controlled half-turn, and finishes in a powerful new pose facing the camera. Her hair moves naturally in the wind, while the pleated fabric expands, folds, and flows dramatically around her.\n\nStatic ground-level camera, fluid fashion-model movement, natural breathing, refined hand gestures, realistic wind and fabric physics, cinematic pacing, consistent face and anatomy, sky-only background, no walking toward the camera, no cuts, no exaggerated dancing, no warped limbs or clothing, no text.",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "9:16",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/q2j0AZY69u5zOlKcN5UqP1BXOCUEGkeeg09wLV3ZxrLSpEMXA/2b2e1af7-91b7-4abc-9947-ad9929d15a10.mp4"
```


### Example (https://replicate.com/p/a4wjkbx2c9rmr0d0hcpbjy5dw8)

#### Input

```json
{
  "fps": 24,
  "seed": 678,
  "draft": false,
  "no_op": false,
  "prompt": "A lone astronaut walks steadily toward the camera across a vast rust-colored alien desert. The astronaut remains centered, wearing a weathered ivory exploration suit with dark joints, practical equipment, subtle dust stains, and a reflective amber visor. Every heavy step compresses the sand and releases a small cloud of dust. A colossal ringed gas giant dominates the sky, its curved horizon extending far beyond the frame. Swirling indigo, turquoise, and silver storms move slowly across its atmosphere while the rings drift almost imperceptibly. Jagged black mountains line the distant horizon beneath a warm amber sunset. The camera smoothly tracks backward at the astronaut\u2019s walking speed, maintaining a consistent full-body composition. Epic sense of scale, dramatic backlighting, long moving shadows, realistic gravity and suit physics, subtle lens flare, cinematic film grain, photorealistic, continuous single shot, no other people, no spacecraft, no text, no distorted anatomy.",
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "16:9",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/uQbw0ztOhXboL5TOgTMDK7qpwZYHqevB3JCXGQIRIEusZCmLA/efa82891-9a32-4381-a9d6-fdb39cd6cd09.mp4"
```


### Example (https://replicate.com/p/hkpjwram7xrmt0d0hdz85vxr60)

#### Input

```json
{
  "fps": 24,
  "seed": 42,
  "draft": false,
  "image": "https://replicate.delivery/pbxt/PmJeUN9ixIKCUWZsuEXfEa7y41KCEqWxYVylUUY4MY4sczn6/tmpnp1c0n6z.webp",
  "no_op": false,
  "prompt": "the man looks towards the camera. it starts to rain. he walks away",
  "duration": 8,
  "resolution": "1080p",
  "save_audio": true,
  "aspect_ratio": "16:9",
  "prompt_upsampling": true,
  "disable_safety_filter": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/i0NB9oGnJVZvJVvKSuemdD2dhJtAVxTf5LZeHtgllTTYPMYuA/ccbbd781-5f1c-41ab-bfe9-5d85d665bbe8.mp4"
```


## Model readme

> # p-video-2
> 
> Generate premium AI videos from text, images, or audio with native-speech lip-sync, sharp close-ups, and strong identity consistency.
> 
> P-Video-2 is Pruna’s quality-focused video generation model and the successor to P-Video.
> 
> ## How it works
> 
> The model takes:
> 
> - A prompt describing the subject, action, scene, and optionally camera, lighting, style, and audio.
> - An optional image for image-to-video generation, or audio for audio-conditioned generation.
> - A resolution, frame rate, duration, aspect ratio, and draft setting.
> 
> It returns a generated video at up to 1080p and 48 fps, with optional native audio.
> 
> ## Tips
> 
> - Start with the subject, action, and scene. Add camera movement, lighting, style, and dialogue when you need more precise and repeatable results.
> - Turn `draft` on for faster, lower-cost iteration, then turn it off for final-quality generations.
> - For native speech and lip-sync, write the dialogue directly in the prompt, keep `save_audio` on, and don't provide an `audio` input.
> - Use an `audio` input when generation needs to follow a specific track. The output duration follows the audio, so `duration` is ignored.
> - For image-to-video, use a high-quality, well-lit reference image and keep the requested motion consistent with the starting frame. `aspect_ratio` is ignored when an image is provided.
> - Use `last_frame_image` when you need control over the end frame.
> - Leave `duration` empty to let the model choose the video length from the prompt, or set it explicitly from 1 to 20 seconds.
> - Prefer 24 fps at 1080p for stability, or 48 fps at 720p for smoother motion.
> 
> ## Resources
> 
> Docs: https://docs.pruna.ai/en/stable/docs_pruna_endpoints/index.html

