# Video Generation

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2F2cqHzWOTixagN54gV8uP%2Fimage.png?alt=media&#x26;token=c2fb1bfb-83e1-40ef-a11f-9dcbf4bde284" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FM7xtHwo0IeGuFHUzeVKk%2Fimage.png?alt=media&#x26;token=51ba56e6-a2c6-4f40-a1f4-d4285e076487" 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="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FeR9GWVQ6DNcylbSPrKlA%2Fimage.png?alt=media&#x26;token=ed68fdb8-c77f-46a0-bf88-00889e97a13d" 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="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2Fp2f6Fuoudnde7i0QMk4I%2Fimage.png?alt=media&#x26;token=aa3cbc26-a848-4933-9f38-27b659ceb2d9" 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="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FqKjkZRBrUtFtbrQr2ks3%2Fimage.png?alt=media&#x26;token=8af91670-b8d4-4788-b0d6-8fe9cee43074" alt=""><figcaption></figcaption></figure>
