Overview
The node named "jimeng Node" provides functionality to generate videos from text prompts, specifically under the resource "视频生成" (Video Generation) and operation "文生视频" (Text-to-Video). It allows users to input a descriptive prompt and select various video generation parameters such as model type, aspect ratio, and duration. This node is useful for scenarios where automated video content creation is needed based on textual descriptions, such as marketing content generation, creative storytelling, or rapid prototyping of video ideas.
For example, a user can input a prompt like "一个3D形象的小男孩,在公园滑滑板。" ("A 3D character little boy skateboarding in the park.") and generate a short video clip illustrating that scene.
Properties
| Name | Meaning |
|---|---|
| 提示词 (prompt) | The text prompt describing the video content to be generated. Example: "A 3D character little boy skateboarding in the park." |
| 模型 (modal) | The video generation model to use. Options: video-S2.0, video-S2.0-Pro, video-S3.0, video-S3.0-pro. |
| 视频比例 (video_aspect_ratio) | The aspect ratio of the generated video. Options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. |
| 视频时长 (duration_ms) | Duration of the video in milliseconds. Only 5 seconds (5000 ms) or 10 seconds (10000 ms) are supported. Note: Models video-S2.0 and video-S2.0-Pro only support 5 seconds. |
| 是否等待视频返回 (isImgReturn) | Boolean flag indicating whether to wait for the video generation to complete and return the video data before continuing. |
Output
The node outputs JSON data representing the result of the video generation request. The exact structure depends on the underlying API response but typically includes metadata about the generated video and possibly URLs or references to the video file.
If the node supports returning binary data (e.g., the actual video file), it would be included in the output's binary property, allowing downstream nodes to process or save the video directly.
Dependencies
- Requires an API key credential for authentication with the external video generation service.
- The node relies on an external plugin or SDK (indicated by
plugins-helpandResourceFactory) to build resource-operation calls. - Proper configuration of the API credentials within n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Using unsupported video durations with certain models (e.g., requesting 10 seconds with
video-S2.0which only supports 5 seconds) may cause errors. - Invalid or empty prompt strings will likely result in failed video generation.
- Network or authentication failures due to incorrect API keys or connectivity issues.
- Using unsupported video durations with certain models (e.g., requesting 10 seconds with
Error messages:
"未实现方法: 视频生成.文生视频"("Unimplemented method: video generation.text-to-video") indicates the requested resource-operation combination is not implemented or recognized.- Errors related to API calls will include error messages caught during execution; enabling continue-on-fail mode allows processing to continue despite individual item failures.
Resolutions:
- Verify prompt text is meaningful and non-empty.
- Ensure selected model supports the chosen video duration.
- Confirm API credentials are correctly set up and valid.
- Check network connectivity and API service status.
Links and References
- No direct links provided in the source code.
- For more information on video generation APIs or models, consult the documentation of the external service integrated via the API key credential.