# Video Generation

<figure><img src="/files/GIVMoM15tWlWhywK4CZC" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OxTv12SRh3Pa4XncKuGE" alt=""><figcaption></figcaption></figure>

## I. Description <a href="#description" id="description"></a>

This component allows you to transform text descriptions into professional-grade videos.&#x20;

It leverages advanced AI models to interpret your prompts and generate high-definition motion visuals in various aspect ratios.&#x20;

With Diaflow’s integrated Private Key, you can access these powerful video synthesis models immediately without needing your own API subscriptions.

*<mark style="color:$warning;">Caution: After generating the video, the video URL will expire in 24 hours</mark>*

<figure><img src="/files/R4J5c0goxhXdYAYb9jDT" alt=""><figcaption></figcaption></figure>

## II. Component settings <a href="#description" id="description"></a>

| Parameter Name | Description                                                                                                                                                                                                                                                                                                                                |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Model          | <p>Select the model to generate the Video<br><br>List:<br>- BytePlus - Seedance 1.0 Pro<br>- BytePlus - Seedance 1.5 Pro</p>                                                                                                                                                                                                               |
| Prompt         | <p>Describes the content of the video you want to generate.</p><p><br><br></p><p>For example, you can specify the scene, movement, lighting, and style.</p><p><br></p><p>You can also use <code>@</code> to reference outputs from previous nodes (e.g., AI-generated scripts or descriptions).</p>                                        |
| Image source   | <p>This is used for "Image to Video" generation.</p><p><br><br></p><p>You can refer to the output of a previous node (like an Image Generation node or a file upload).</p><p><br><br></p><p>Note: Only support image formats, such as .jpg and .png. If your file is a PDF, please convert it to an image using the PDF to Image tool.</p> |
| Resolution     | <p>Defines the quality of the generated video.<br><br></p><p>Default value when choosing <strong>BytePlus - Seedance 1.0 Pro</strong></p><ul><li>1080p</li></ul><p></p><p></p><p>Default value when choosing <strong>BytePlus - Seedance 1.5 Pro</strong></p><ul><li>720p</li></ul>                                                        |
| Aspect ratio   | <p>Defines the dimensions of the generated video. Select the ratio that fits your needs (e.g., 16:9 for landscape, 9:16 for mobile/shorts).</p><p></p><p>Available values:<br></p><p>- 16:9</p><p>- 4:3</p><p>- 1:1</p><p>- 3:4</p><p>- 9:16</p><p>- 21:9</p>                                                                              |
| Duration       | <p>Specifies the length of the generated video.<br><br></p><p>Available values:</p><ul><li>5s (default)</li><li>12s</li></ul>                                                                                                                                                                                                              |
| Audio          | <p>Video have the Audio<br>\*\*Just apply with the model <strong>BytePlus - Seedance 1.5 Pro</strong></p>                                                                                                                                                                                                                                  |
| Enhancement    | Intelligently improve video clarity and color using deep AI optimization. Ideal for fixing blur, noise, and low resolution across various content types.                                                                                                                                                                                   |
| Compression    | Compress video efficiently to save on storage and bandwidth costs without compromising visual quality.                                                                                                                                                                                                                                     |

## III. Use case <a href="#description" id="description"></a>

**Input:**

Set up the "Video Generation" node with:

* Model = BytePlus - Seedance 1.0 Pro
* Prompt = "A cinematic drone shot of a futuristic city at sunset, neon lights, 4k detail"
* Image source = (Leave empty for Text-to-Video)
* Resolution = 1080p
* Aspect ratio = 16:9
* Duration = 5s
* Enhancement = ON
* Compression = ON

<figure><img src="/files/iPhzlmtwYG8CPjuVqONt" alt=""><figcaption></figcaption></figure>

**Output:**

Once the node executes successfully, it will return a Video URL. You can map this output to subsequent nodes

*<mark style="color:$warning;">Caution: After generating the video, the video URL will expire in 24 hours</mark>*

<figure><img src="/files/8lEw6fRAxfPz3eKtZowA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.diaflow.io/workflow-builder/nodes/built-in-tools/video-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
