> ## 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.

# PrunaTextToVideoNode - ComfyUI Built-in Node Documentation

> Generates a video from a text prompt with Pruna's P-Video-2 model.

Generates a video from a text prompt with Pruna's P-Video-2 model. The prompt describes the scene, its motion and its sound, and the node either generates its own soundtrack or takes an audio clip that drives the motion and becomes the soundtrack.

## 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.prompt`         | Describes the video, its motion and its sound. Must contain at least one non-whitespace character, up to 5000 characters (default: empty).                                                                                                    | STRING    | Yes      | Up to 5000 characters                                                                                                                                                                                                                           |
| `model.aspect_ratio`   | Aspect ratio of the output video (default: `"16:9"`).                                                                                                                                                                                         | COMBO     | Yes      | `"16:9"`<br />`"9:16"`<br />`"4:3"`<br />`"3:4"`<br />`"3:2"`<br />`"2:3"`<br />`"1:1"`                                                                                                                                                         |
| `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.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/PrunaTextToVideoNode/en.md)

***

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