Actions7
Video Generation
AI-generatedOverview
This node operation generates videos based on a text prompt and various customizable options using AI/ML models. It is useful for creating video content from descriptive scenes, enhancing creative workflows, or automating video production. For example, users can generate a video clip by describing a scene, specifying the model to use, and fine-tuning parameters like aspect ratio, duration, and background audio.
Use Case Examples
- Generate a 5-second video clip of a sunset scene using a specific AI model.
- Create a video with a 16:9 aspect ratio and background music from a URL.
- Produce a video using multiple images as input with the Kling model type.
Properties
| Name | Meaning |
|---|---|
| Model Name or ID | Select the AI/ML model to use for video generation, either from a list or by specifying an ID via expression. |
| Prompt | Text description of the scene to be rendered as a video by the model. |
| Extract From Response | Determines which part of the video generation response to return: all video URLs, the first video URL, or the full raw JSON response. |
| Video Options | Collection of optional parameters to fine-tune the video generation call, such as aspect ratio, background audio URL, duration, prompt enhancements, seed for deterministic results, and other provider-specific settings. |
Output
JSON
videoUrls- Array of video URLs generated by the model, if 'All Video URLs' or 'First Video URL' is selected.videoUrl- The first video URL from the response, if 'First Video URL' is selected.rawResponse- The full raw JSON response from the video generation API, if 'Full Raw JSON' is selected.
Dependencies
- An API key credential for the AI/ML service endpoint
Troubleshooting
- Ensure the selected model supports video generation; unsupported models will cause errors.
- Verify that the prompt is descriptive enough to generate meaningful video content.
- Check that optional parameters are valid and compatible with the chosen model/provider.
- Common error messages include unsupported operation errors if the operation parameter is incorrect, or HTTP request failures if the API endpoint or credentials are misconfigured.
Links
- n8n Expressions Documentation - Documentation on how to use expressions to specify dynamic values such as model IDs.