Actions14
- Chat Actions
- Image Actions
- Video Actions
- Agent Actions
- Audio Actions
- Tools Actions
Video → Generate
AI-generatedSummary
Generate a video with the selected Qiniu AI model.
Inputs
- model (required) — The model to use for video generation. Options include Kling (Video O1, V2.1, V2.5 Turbo), Sora 2, Veo 3.1/3.0/3.0 Fast Generate Preview, Veo 2.0 Generate, MiniMax M2, and Mimo V2 Flash.
- prompt (required) — Description of the video to generate.
- waitForCompletion — Whether to wait for the video to be fully generated before returning. Defaults to true.
- aspectRatio (required) — Aspect ratio of the generated video. Required when no first frame image is provided. Options: 16:9 (Landscape), 9:16 (Portrait), 1:1 (Square). Defaults to 16:9.
- firstFrameUrl — URL of the first frame image. Leave empty to use binary data from a previous node.
- firstFrameBinaryProperty — Binary property name containing the first frame image (from Image node output).
- lastFrameUrl — URL of the last frame image. Leave empty to use binary data from a previous node.
- lastFrameBinaryProperty — Binary property name containing the last frame image (from Image node output).
- options.negativePrompt — Things to avoid in the generated video.
- klingOptions.duration — Video duration in seconds. Options: 5 or 10. Defaults to 5.
- klingOptions.mode — Generation mode. Options: Standard or Professional. Defaults to Standard.
- klingOptions.cfgScale — CFG guidance scale. Number between 0 and 20 with 0.1 precision. Defaults to 7.
- klingOptions.size — Video resolution (e.g., 1920x1080). When omitted, derived from aspect ratio.
- veoOptions.duration — Video duration in seconds. Veo only supports 8 seconds. Defaults to 8.
- veoOptions.generateAudio — Whether to generate audio for the video. Defaults to false.
- veoOptions.resolution — Output video resolution. Options: 720p or 1080p. Defaults to 720p.
- veoOptions.sampleCount — Number of videos to generate. Number between 1 and 4. Defaults to 1.
- veoOptions.personGeneration — Control person generation in video. Options: Allow Adult or Don't Allow. Defaults to Allow Adult.
- veoOptions.seed — Random seed for reproducible results. 0 means random. Defaults to 0.
- videoReferenceUrl — URL of a reference video for video-to-video generation.
- keepOriginalSound — Whether to keep the original sound from the reference video. Defaults to false.
Output shape
JSON object per item.
When waitForCompletion is true, returns { id: task ID, status: completion status, videos: array of generated video objects with URLs and metadata, _raw: full API response }. When false, returns { id: task ID, status: 'processing', _raw: task creation response } for later polling.
Examples
Example 1: Generate a 5-second Kling video with a prompt and wait for completion.
model: kling-video-o1; prompt: 'A cat running on a beach'; waitForCompletion: true; aspectRatio: 16:9; klingOptions: { duration: 5 }
Example 2: Generate a Veo video immediately without waiting, providing a reference video.
model: veo-2.0-generate-001; prompt: 'A person walking in a city'; waitForCompletion: false; videoReferenceUrl: 'https://example.com/reference.mp4'; keepOriginalSound: true