create_video_from_xhs
Convert a Xiaohongshu post URL into a vertical 9:16 video with background music and optional style annotations for TikTok/Reels.
Instructions
Create a short video from a Xiaohongshu post.
Downloads images from the XHS post, adds background music, and generates a vertical (9:16) video suitable for TikTok/Reels.
Args: url: Xiaohongshu post URL (supports various formats including share links) bgm: BGM file name from bgm folder, or "random" to pick randomly. Set to "none" to create video without music. duration_per_image: How many seconds each image should be displayed (default: 3) style_prompt: Natural-language style instructions for image annotation. Example: 在第一张图里把"马云"蓝色高亮并红笔圈出来
Returns: A dict containing: - video_path: Full path to the generated video file - images_count: Number of images in the video - duration: Total video duration in seconds - bgm_used: Name of the BGM file used (or null if none) - title: Title of the original XHS post - style_report: Style parsing/OCR diagnostics (or null when not used)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bgm | No | random | |
| url | Yes | ||
| style_prompt | No | ||
| duration_per_image | No |