volcengine-video-generate
bởi warm-wm
Coding Agents & IDEsTóm tắt
Using volcengine video_generate.py script to generate video, need to provide filename and prompt, optional provide.
Mô tả
Kỹ năng này làm gì
Generates videos from text prompts using the Volcengine (ByteDance) video generation API. Accepts an optional first frame image via URL or local path to control the video's starting visual. Downloads the output file directly to a specified path.
Handles Base64 conversion of local images and automatic file download in one script, removing manual API wrangling steps.
Khi nào nên dùng
- Generate a product demo video from a text description
- Create animated content from a static reference image
- Batch-produce short clips with a scripted prompt
- Preview scene concepts by specifying an opening frame
- Automate video creation in a CI or content pipeline
Quy trình ví dụ
User asks: generate a video of a cat walking through snow, save as cat_snow.mp4
- 1
Confirm output filename is cat_snow.mp4 and compose the prompt
- 2
Check for MODEL_VIDEO_API_KEY or ARK_API_KEY in the environment
- 3
Run: python scripts/video_generate.py "cat_snow.mp4" "a cat walking through snow"
- 4
Wait for the API to return a video URL
- 5
Download the video to cat_snow.mp4
cat_snow.mp4 saved to disk; video URL printed to console
Yêu cầu
- MODEL_VIDEO_API_KEY or ARK_API_KEY environment variable (Volcengine Ark API key)
- VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY environment variables (if using credential-based auth instead of a direct API key)
- Volcengine account with Ark API access enabled
Cài đặt
clawhub install warm-wm/volcengine-video-generateChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.