Loading...
Loading...
Generate or edit videos using the Doubao Seedance video model from ByteDance's Volcengine Ark.
npx skill4agent add chunpu/agent-skills generate-video-by-seedancedoubao-seedance-1-5-pro-251215--model516:9uv run {baseDir}/scripts/generate_video.py \
--prompt "一个在草地上奔跑的小狗视频,阳光明媚,电影感" \
--filename "奔跑小狗.mp4"--configtext2video.yamlprompt: 一个在草地上奔跑的小狗视频,阳光明媚,电影感
filename: 奔跑小狗.mp4
ratio: 16:9
duration: 5image2video.yamlprompt: 将图1的表情换为图2的表情,做一个眨眼微笑的短视频
filename: 表情女孩.mp4
images:
- https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png
- https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png
ratio: 9:16
duration: 5local_images.yamlprompt: 多图融合成一个动画短片
filename: 多图融合动画.mp4
images:
- /path/to/参考图1.jpg
- /path/to/参考图2.png
ratio: 16:9
duration: 8uv run {baseDir}/scripts/generate_video.py --config image2video.yamluv run {baseDir}/scripts/generate_video.py --config prompt.yaml --filename "自定义文件名.mp4"promptfilenameimagesratiodurationmodelapi_keyuv run {baseDir}/scripts/generate_video.py \
--prompt "参考图片中的女孩,做一个挥手微笑的短视频" \
--filename "挥手女孩.mp4" \
-i "https://example.com/ref_image_1.png" \
-i "/path/to/local_ref_2.jpg" \
--ratio "9:16" \
--duration 8uv run {baseDir}/scripts/generate_video.py \
--filename "仅参考图生成视频.mp4" \
-i "/path/to/ref1.jpg" \
-i "/path/to/ref2.png"Tip: At least one of "prompt" or "reference image" is required, otherwise the script will report an error.
ARK_API_KEYdata:image/...;base64,...doubao-seedance-1-0-lite-i2v-250428"16:9""9:16""1:1""21:9"get_video_task_status.py10600POST /contents/generations/tasksidtask_idvideo_url--filenameoutputs/.mp4video_url# 1) Create a task first (may only return TASK_ID)
uv run {baseDir}/scripts/generate_video.py \
--prompt "一个示例视频" \
--filename "示例视频.mp4"
# 2) After getting the TASK_ID output from the previous step, poll until generation is complete and download the video
uv run {baseDir}/scripts/get_video_task_status.py \
cgt-20260226184301-4h8v6 \
--filename "示例视频.mp4" \
--interval 5GET /contents/generations/tasks/{task_id}succeededcompletedvideo_url挥手女孩.mp4