> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# PrunaImageToVideoNode - ComfyUI Built-in Node Documentation

> Animates an image into a video with Pruna's P-Video-2 model.

Animates an image into a video with Pruna's P-Video-2 model. The first frame is required and fixes the aspect ratio of the output; an optional last frame gives the video an end point to interpolate towards. The prompt describes how the scene moves, and the node either generates its own soundtrack or takes an audio clip that drives the motion.

## Inputs

### Common Inputs

| Parameter | Description                                                               | Data Type      | Required | Range         |
| --------- | ------------------------------------------------------------------------- | -------------- | -------- | ------------- |
| `model`   | Pruna video model to use. Selecting a model reveals its own inputs below. | DYNAMIC\_COMBO | Yes      | `"p-video-2"` |

### P-Video-2 Inputs

| Parameter              | Description                                                                                                                                                                                                                                   | Data Type | Required | Range                                                                                                                                                                                                                                           |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model.first_frame`    | Image the video starts from. The output keeps the aspect ratio of this image.                                                                                                                                                                 | IMAGE     | Yes      | -                                                                                                                                                                                                                                               |
| `model.last_frame`     | Image the video ends on. Its aspect ratio must be close to the first frame's.                                                                                                                                                                 | IMAGE     | No       | -                                                                                                                                                                                                                                               |
| `model.prompt`         | Describes how the scene moves and sounds. Must contain at least one non-whitespace character, up to 5000 characters (default: empty).                                                                                                         | STRING    | Yes      | Up to 5000 characters                                                                                                                                                                                                                           |
| `model.duration`       | Length of the video in seconds. `"auto"` lets the model choose the length from the prompt. Ignored when `model.audio` is connected: the video then follows the audio length, rounded up to a whole second, up to 20 seconds (default: `"5"`). | COMBO     | Yes      | `"auto"`<br />`"1"`<br />`"2"`<br />`"3"`<br />`"4"`<br />`"5"`<br />`"6"`<br />`"7"`<br />`"8"`<br />`"9"`<br />`"10"`<br />`"11"`<br />`"12"`<br />`"13"`<br />`"14"`<br />`"15"`<br />`"16"`<br />`"17"`<br />`"18"`<br />`"19"`<br />`"20"` |
| `model.resolution`     | Output resolution. 720p renders about 0.9 megapixels (1280x704 at 16:9), 1080p about 2 megapixels (1920x1088 at 16:9) (default: `"720p"`).                                                                                                    | COMBO     | Yes      | `"720p"`<br />`"1080p"`                                                                                                                                                                                                                         |
| `model.fps`            | Frames per second. 48 fps is not available with draft at 1080p (default: `"24"`).                                                                                                                                                             | COMBO     | Yes      | `"24"`<br />`"48"`                                                                                                                                                                                                                              |
| `model.draft`          | Faster, less detailed render, billed at a lower rate than a standard render (default: False).                                                                                                                                                 | BOOLEAN   | Yes      | True/False                                                                                                                                                                                                                                      |
| `model.generate_audio` | Generate a soundtrack for the video. Ignored when `model.audio` is connected, which becomes the soundtrack instead (default: True).                                                                                                           | BOOLEAN   | Yes      | True/False                                                                                                                                                                                                                                      |
| `model.enhance_prompt` | Rewrite the prompt with more detail before generation; short prompts need it. Turn it off to reproduce a result exactly with the same seed (default: True). Advanced setting.                                                                 | BOOLEAN   | Yes      | True/False                                                                                                                                                                                                                                      |
| `model.audio`          | Audio that drives the motion and becomes the soundtrack. At least 1 second long; audio longer than 20 seconds is truncated. Sets the video length instead of `model.duration`.                                                                | AUDIO     | No       | -                                                                                                                                                                                                                                               |
| `model.seed`           | Seed for the generation. The same seed reproduces a result exactly only when `model.enhance_prompt` is off (default: 42).                                                                                                                     | INT       | Yes      | 0 to 2147483647                                                                                                                                                                                                                                 |

**Notes:**

* `model.first_frame` is required and fixes the output aspect ratio, so this node has no aspect ratio input.
* `model.last_frame` is optional, but its aspect ratio has to be close to the first frame's or the node raises an error.
* `model.prompt` is required and limited to 5000 characters.
* Draft at 1080p cannot be combined with 48 fps: the node raises an error, so either turn draft off or use 24 fps.
* Connected audio must be at least 1 second long; anything past 20 seconds is ignored.
* With `model.audio` connected the audio sets the video length, so `model.duration` and `model.generate_audio` have no effect.

## Outputs

| Output Name | Description                              | Data Type |
| ----------- | ---------------------------------------- | --------- |
| `video`     | The generated video with its soundtrack. | VIDEO     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/PrunaImageToVideoNode/en.md)

***

**Source fingerprint (SHA-256):** `da8952e478eee593543fa7ae1aa329ad5bd5078024f905cdba185d18e76db130`
