Design & media

Seedance2 Gen Video

Try it

Generate videos using the Volcengine Doubao Seedance 2.0 model series.

What it does

Generate videos using the Volcengine Doubao Seedance 2.0 model series.

The skill document

Seedance 2.0 Video Generation Skill

Generate videos using the Volcengine Doubao Seedance 2.0 model series.

Prerequisites

  1. API Key: The ARK_API_KEY environment variable is configured, or provided by the user.
  2. SDK Installation: pip install 'volcengine-python-sdk[ark]'
  3. Asset URLs: Reference images, videos, and audio must be publicly accessible URLs (or platform asset IDs in asset:// format).

Usage Steps

Step 1: Collect Parameters

Confirm the following information with the user:

ParameterDescriptionDefault
PromptDescribes the video content to generateRequired
Modeldoubao-seedance-2-0-260128 (high quality) or doubao-seedance-2-0-fast-260128 (fast)High quality
Aspect Ratio16:9, 9:16, 1:1, 4:3, 3:4, 21:9, or adaptive (follows the input image)16:9
Duration4~15 seconds5
Generate AudioWhether to generate video with audioNo
WatermarkWhether to add a watermarkNo
Reference Image URLs0~9 images, optional (role: reference_image / first_frame / last_frame)None
Reference Video URLs0~3 videos, optional (role: reference_video)None
Reference Audio URLs0~3 audio clips, optional (role: reference_audio)None
Web SearchWhether to enable (only effective for plain text input)No

Prompt asset referencing rules: In the prompt, use "Image N", "Video N", "Audio N" to reference corresponding assets (N is the order of assets of the same type in the content array, starting from 1).

Step 2: Install Dependencies (First Time)

pip install 'volcengine-python-sdk[ark]'
ARK_API_KEY=$ARK_API_KEY

Step 3: Run the Script

Call scripts/gen_video.py to execute the video generation task.

Basic example (text-to-video):

python3 scripts/gen_video.py \
  --prompt "A cat running on a grassy field, bright sunlight, slow motion" \
  --ratio "16:9" \
  --duration 5

Image-to-video (first frame):

python3 scripts/gen_video.py \
  --prompt "The scene in Image 1, camera slowly pushes forward" \
  --images "https://example.com/frame.jpg" \
  --image-roles "first_frame" \
  --ratio "16:9" \
  --duration 5

First and last frame image-to-video:

python3 scripts/gen_video.py \
  --prompt "Image 1 is the starting frame, Image 2 is the ending frame, camera pans from left to right" \
  --images "https://example.com/start.jpg" "https://example.com/end.jpg" \
  --image-roles "first_frame" "last_frame" \
  --ratio "16:9" \
  --duration 5

Multimodal reference-to-video:

python3 scripts/gen_video.py \
  --prompt "Mimic the camera style of Video 1, use Image 1 as the scene, with Audio 1 as background music" \
  --images "https://example.com/scene.jpg" \
  --image-roles "reference_image" \
  --videos "https://example.com/style.mp4" \
  --audios "https://example.com/music.mp3" \
  --generate-audio \
  --duration 8

Edit video:

python3 scripts/gen_video.py \
  --prompt "Replace the red car in Video 1 with a blue car, keep the camera movement unchanged" \
  --videos "https://example.com/original.mp4" \
  --duration 5

Extend video (multi-segment concatenation):

python3 scripts/gen_video.py \
  --prompt "The scene in Video 1 transitions to Video 2, then continues with Video 3" \
  --videos "https://example.com/v1.mp4" "https://example.com/v2.mp4" "https://example.com/v3.mp4" \
  --duration 10

Video with audio + web search:

python3 scripts/gen_video.py \
  --prompt "Macro shot of a glass frog, showing its beating heart through its transparent abdomen" \
  --generate-audio \
  --web-search \
  --duration 8

Step 4: Get Results

After the script succeeds, it outputs the video URL, which is valid for 24 hours. Advise the user to download or transfer to TOS promptly.

Notes

  • Face policy: Directly uploading images/videos containing real human faces is not supported. Use platform-provided virtual avatars (asset://asset-xxx) or authorized real-person assets.
  • Video URL validity: Generated video URLs are valid for only 24 hours; save them promptly.
  • Unsupported input combinations: "Text + Audio" or "Audio only" input is not supported.
  • Adaptive aspect ratio: When using first/last frame images, it is recommended to set --ratio adaptive to avoid frame jumps.

Parameter Details

See references/api-guide.md

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

More from fackee

Browse all skills

使用 Qwen 3.5 Plus 模型分析视频内容,支持本地文件和远程 URL,可自定义分析提示词和抽帧频率

by www46 installs1 stars

Image generation and editing based on Google Gemini native image generation (Nano Banana).

by fackee1 installs

Based on the Volcano Engine Doubao Music Generation API, supports instrumental BGM generation and vocal song generation.

by fackee