Text-to-Video
AI-generatedSummary
Generates a video from a text prompt using the Wan 2.6 model via Kie API.
Inputs
- prompt (required) — Text description for video generation (1-5000 characters)
- duration — Video duration in seconds; options: 5, 10, 15 (default: 5)
- resolution — Output video resolution; options: 720p, 1080p (default: 1080p)
- callBackUrl — Optional webhook URL to receive completion notification
Output shape
main
Returns execution metadata array from Kie API task creation. Errors are either thrown or returned as JSON depending on continue-on-fail setting.
Examples
Example 1: Create a 10-second 720p video from a text prompt with callback.
prompt: 'A serene landscape with mountains and clouds', duration: '10', resolution: '720p', callBackUrl: 'https://webhook.example.com/callback'