seedance2-api
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSeedance 2.0 分镜创作与视频生成
Seedance 2.0 Storyboard Creation & Video Generation
从创意到成片的全流程:引导分镜 → 画参考图 → 提交视频 → 获取结果。
End-to-end workflow from idea to final video: Storyboard Guidance → Reference Image Generation → Video Submission → Result Retrieval.
Step 0: 确定执行方式(MCP 或脚本)
Step 0: Determine Execution Mode (MCP or Script)
优先检测 MCP 是否可用:
- 检查 MCP 服务状态(读取
xskill-ai)mcps/user-xskill-ai/STATUS.md - 如果 MCP 可用 → 使用 /
submit_task等 MCP 工具get_task - 如果 MCP 不可用或报错 → 切换到脚本模式
脚本模式前置条件:
- 确认环境变量 已设置(Shell 执行
XSKILL_API_KEY)echo $XSKILL_API_KEY | head -c 10 - 如果未设置,提示用户:
export XSKILL_API_KEY=sk-your-api-key 获取 API Key: https://www.xskill.ai/#/v2/api-keys - 确认 已安装(
requests)pip install requests
脚本路径: 本 Skill 目录下的 ,定位方式:
scripts/seedance_api.pybash
undefinedPrioritize checking MCP availability:
- Check the status of the MCP service (read
xskill-ai)mcps/user-xskill-ai/STATUS.md - If MCP is available → Use MCP tools like /
submit_taskget_task - If MCP is unavailable or errors occur → Switch to Script Mode
Prerequisites for Script Mode:
- Confirm that the environment variable is set (execute
XSKILL_API_KEYin Shell)echo $XSKILL_API_KEY | head -c 10 - If not set, prompt the user:
export XSKILL_API_KEY=sk-your-api-key Get API Key: https://www.xskill.ai/#/v2/api-keys - Confirm is installed (
requests)pip install requests
Script Path: in this Skill directory, locate it via:
scripts/seedance_api.pybash
undefined通过 Glob 工具搜索
Search via Glob tool
glob: .cursor/skills/seedance2-api/scripts/seedance_api.py
> 后续步骤中,每个 API 调用都同时给出 **MCP 方式** 和 **脚本方式**,根据 Step 0 的判断选择其一执行。glob: .cursor/skills/seedance2-api/scripts/seedance_api.py
> In subsequent steps, each API call provides both **MCP Method** and **Script Method**, choose one based on the judgment from Step 0.Step 1: 理解用户想法
Step 1: Understand User's Idea
收集以下信息(缺失的主动询问):
- 故事核心:一句话概括要拍什么
- 时长:4-15 秒
- 画面比例:16:9 / 9:16 / 1:1 / 21:9 / 4:3 / 3:4
- 视觉风格:写实/动画/水墨/科幻/赛博朋克等
- 素材情况:是否有现成图片/视频/音频,还是需要 AI 生成
- 功能模式:是否需要首尾帧控制(first_last_frames),否则默认全能模式(omni_reference)
Collect the following information (proactively ask if missing):
- Core Story: One-sentence summary of what the video is about
- Duration: 4-15 seconds
- Aspect Ratio: 16:9 / 9:16 / 1:1 / 21:9 / 4:3 / 3:4
- Visual Style: Realistic/Animated/Ink Wash/Sci-Fi/Cyberpunk, etc.
- Material Status: Whether there are existing images/videos/audio, or if AI generation is needed
- Function Mode: Whether first-last frame control () is required; otherwise, default to omni-reference mode (
first_last_frames)omni_reference
Step 2: 深入挖掘(5 个维度)
Step 2: Deep Dive (5 Dimensions)
针对每个维度引导用户补充细节:
- 内容 - 主角是谁?做什么?在哪里?
- 视觉 - 光影、色调、质感、氛围
- 镜头 - 推/拉/摇/移/跟/环绕/升降
- 动作 - 主体的具体动作和节奏
- 声音 - 配乐风格、音效、对白
Guide the user to supplement details for each dimension:
- Content - Who is the protagonist? What are they doing? Where is it set?
- Visuals - Lighting, color tone, texture, atmosphere
- Camera - Push/Pull/Pan/Truck/Follow/Orbit/Crane
- Action - Specific actions and rhythm of the subject
- Audio - Soundtrack style, sound effects, dialogue
Step 3: 构建分镜结构
Step 3: Build Storyboard Structure
按时间轴拆分镜头,使用以下公式:
【风格】_____风格,_____秒,_____比例,_____氛围
0-X秒:[镜头运动] + [画面内容] + [动作描述]
X-Y秒:[镜头运动] + [画面内容] + [动作描述]
...
【声音】_____配乐 + _____音效 + _____对白
【参考】@image_file_1 _____,@video_file_1 _____详细模板和示例见 reference.md。
Split shots by timeline using the following formula:
【Style】_____ style, _____ seconds, _____ aspect ratio, _____ atmosphere
0-X seconds: [Camera Movement] + [Frame Content] + [Action Description]
X-Y seconds: [Camera Movement] + [Frame Content] + [Action Description]
...
【Audio】_____ soundtrack + _____ sound effects + _____ dialogue
【Reference】@image_file_1 _____, @video_file_1 _____Detailed templates and examples can be found in reference.md.
Step 4: 生成参考图(如需要)
Step 4: Generate Reference Images (If Needed)
若用户没有现成素材,使用 Seedream 4.5 生成角色图、场景图、首帧/尾帧等。
If the user has no existing materials, use Seedream 4.5 to generate character images, scene images, first/last frames, etc.
文生图
Text-to-Image
<details>
<summary><b>MCP 方式</b></summary>
</details>
调用 工具:
submit_task- model_id:
fal-ai/bytedance/seedream/v4.5/text-to-image - parameters:
- prompt: 详细的图片描述(英文效果更佳)
- image_size: 根据视频比例选择
- num_images: 需要的数量(1-6)
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/text-to-image" \
--params '{"prompt":"An astronaut in a white spacesuit...","image_size":"landscape_16_9","num_images":1}'<details>
<summary><b>MCP Method</b></summary>
</details>
Call the tool:
submit_task- model_id:
fal-ai/bytedance/seedream/v4.5/text-to-image - parameters:
- prompt: Detailed image description (English works better)
- image_size: Select based on video aspect ratio
- num_images: Number of images needed (1-6)
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/text-to-image" \
--params '{"prompt":"An astronaut in a white spacesuit...","image_size":"landscape_16_9","num_images":1}'图像编辑(基于现有图片修改)
Image Editing (Modify Based on Existing Images)
<details>
<summary><b>MCP 方式</b></summary>
</details>
调用 工具:
submit_task- model_id:
fal-ai/bytedance/seedream/v4.5/edit - parameters:
- prompt: 编辑指令(用 Figure 1/2/3 引用图片)
- image_urls: 输入图片 URL 数组
- image_size: 输出尺寸
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/edit" \
--params '{"prompt":"Change the background to a forest","image_urls":["https://..."],"image_size":"landscape_16_9"}'<details>
<summary><b>MCP Method</b></summary>
</details>
Call the tool:
submit_task- model_id:
fal-ai/bytedance/seedream/v4.5/edit - parameters:
- prompt: Editing instructions (refer to images using Figure 1/2/3)
- image_urls: Array of input image URLs
- image_size: Output size
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/edit" \
--params '{"prompt":"Change the background to a forest","image_urls":["https://..."],"image_size":"landscape_16_9"}'轮询图片结果
Poll for Image Results
图片约 1-2 分钟完成。
<details>
<summary><b>MCP 方式</b></summary>
调用 工具查询状态:
get_task- 首次 30 秒后查询
- 之后每 30 秒查询一次
- 状态为 时提取图片 URL
completed
单次查询:
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py query \
--task-id "TASK_ID_HERE"自动轮询(推荐用于图片,间隔 10s,超时 180s):
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py poll \
--task-id "TASK_ID_HERE" --interval 10 --timeout 180Images take approximately 1-2 minutes to complete.
<details>
<summary><b>MCP Method</b></summary>
Call the tool to query status:
get_task- First query after 30 seconds
- Then query every 30 seconds thereafter
- Extract image URLs when status is
completed
Single Query:
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py query \
--task-id "TASK_ID_HERE"Auto Polling (Recommended for Images, 10s interval, 180s timeout):
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py poll \
--task-id "TASK_ID_HERE" --interval 10 --timeout 180image_size 对照表
image_size Reference Table
| 视频比例 | 推荐 image_size | 说明 |
|---|---|---|
| 16:9 | landscape_16_9 | 横屏 |
| 9:16 | portrait_16_9 | 竖屏 |
| 4:3 | landscape_4_3 | 横屏 |
| 3:4 | portrait_4_3 | 竖屏 |
| 1:1 | square_hd | 方形 |
| 21:9 | landscape_16_9 | 近似超宽屏 |
| Video Aspect Ratio | Recommended image_size | Description |
|---|---|---|
| 16:9 | landscape_16_9 | Landscape |
| 9:16 | portrait_16_9 | Portrait |
| 4:3 | landscape_4_3 | Landscape |
| 3:4 | portrait_4_3 | Portrait |
| 1:1 | square_hd | Square |
| 21:9 | landscape_16_9 | Approximate ultra-wide screen |
Step 5: 生成专业提示词
Step 5: Generate Professional Prompts
将分镜结构和参考图整合为最终提示词:
- 用 、
@image_file_1等引用 image_files 数组中的图片@image_file_2 - 用 等引用 video_files 数组中的视频
@video_file_1 - 用 等引用 audio_files 数组中的音频
@audio_file_1 - 也兼容旧版 、
@图片1、@视频1语法@音频1
引用语法示例:
@image_file_1 作为角色形象参考,参考 @video_file_1 的运镜方式,配合 @audio_file_1 的配乐重要: 数组中第 N 个 URL 对应 , 和 分别独立编号。
image_files@image_file_Nvideo_filesaudio_filesIntegrate the storyboard structure and reference images into the final prompt:
- Use ,
@image_file_1, etc. to reference images in the@image_file_2arrayimage_files - Use , etc. to reference videos in the
@video_file_1arrayvideo_files - Use , etc. to reference audio in the
@audio_file_1arrayaudio_files - Also compatible with the old syntax: ,
@图片1,@视频1@音频1
Reference Syntax Example:
@image_file_1 as character reference, refer to the camera movement of @video_file_1, match the soundtrack of @audio_file_1Important: The Nth URL in the array corresponds to . and are numbered independently.
image_files@image_file_Nvideo_filesaudio_filesStep 6: 提交视频任务
Step 6: Submit Video Task
处理素材 URL:
- Seedream 生成的图片:已有 URL,直接使用
- 用户提供的网络图片:直接使用
- 用户提供的本地图片:先上传获取 URL(见下方上传方式)
Process Material URLs:
- Images generated by Seedream: URLs already exist, use directly
- Web images provided by user: Use directly
- Local images provided by user: Upload first to get URL (see upload methods below)
上传本地图片
Upload Local Images
<details>
<summary><b>MCP 方式</b></summary>
调用 工具:image_url 或 image_data
</details>
<details>
<summary><b>脚本方式</b></summary>
upload_imagebash
undefined<details>
<summary><b>MCP Method</b></summary>
Call the tool: image_url or image_data
</details>
<details>
<summary><b>Script Method</b></summary>
upload_imagebash
undefined上传网络图片
Upload web image
python .cursor/skills/seedance2-api/scripts/seedance_api.py upload
--image-url "https://example.com/image.png"
--image-url "https://example.com/image.png"
python .cursor/skills/seedance2-api/scripts/seedance_api.py upload
--image-url "https://example.com/image.png"
--image-url "https://example.com/image.png"
上传本地图片
Upload local image
python .cursor/skills/seedance2-api/scripts/seedance_api.py upload
--image-path "/path/to/local/image.png"
--image-path "/path/to/local/image.png"
</details>python .cursor/skills/seedance2-api/scripts/seedance_api.py upload
--image-path "/path/to/local/image.png"
--image-path "/path/to/local/image.png"
</details>提交 Seedance 2.0 任务(全能模式 omni_reference)
Submit Seedance 2.0 Task (Omni-reference Mode omni_reference
)
omni_reference<details>
<summary><b>MCP 方式</b></summary>
</details>
调用 工具:
submit_task- model_id:
st-ai/super-seed2 - parameters:
- prompt: Step 5 生成的完整提示词
- functionMode: (默认,可省略)
omni_reference - image_files: 参考图片 URL 数组(最多 9 张,顺序对应 @image_file_1/2/3...)
- video_files: 参考视频 URL 数组(最多 3 个,总时长 ≤ 15s)
- audio_files: 参考音频 URL 数组(最多 3 个)
- ratio: 画面比例(/
16:9/9:16/1:1/21:9/4:3)3:4 - duration: 时长整数(-
4)15 - model: (默认快速)或
seedance_2.0_fast(标准质量)seedance_2.0
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{
"prompt": "电影级写实科幻风格,15秒,16:9...",
"functionMode": "omni_reference",
"image_files": ["https://img1.png", "https://img2.png"],
"ratio": "16:9",
"duration": 15,
"model": "seedance_2.0_fast"
}'<details>
<summary><b>MCP Method</b></summary>
</details>
Call the tool:
submit_task- model_id:
st-ai/super-seed2 - parameters:
- prompt: Complete prompt generated in Step 5
- functionMode: (default, can be omitted)
omni_reference - image_files: Array of reference image URLs (max 9 images, order corresponds to @image_file_1/2/3...)
- video_files: Array of reference video URLs (max 3, total duration ≤ 15s)
- audio_files: Array of reference audio URLs (max 3)
- ratio: Aspect ratio (/
16:9/9:16/1:1/21:9/4:3)3:4 - duration: Integer duration (4 - 15)
- model: (default fast mode) or
seedance_2.0_fast(standard quality)seedance_2.0
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{
"prompt": "Cinematic realistic sci-fi style, 15 seconds, 16:9...",
"functionMode": "omni_reference",
"image_files": ["https://img1.png", "https://img2.png"],
"ratio": "16:9",
"duration": 15,
"model": "seedance_2.0_fast"
}'提交 Seedance 2.0 任务(首尾帧模式 first_last_frames)
Submit Seedance 2.0 Task (First-Last Frame Mode first_last_frames
)
first_last_frames<details>
<summary><b>MCP 方式</b></summary>
</details>
调用 工具:
submit_task- model_id:
st-ai/super-seed2 - parameters:
- prompt: 视频描述提示词
- functionMode:
first_last_frames - filePaths: 图片 URL 数组(0 张=文生视频,1 张=首帧图生视频,2 张=首尾帧视频)
- ratio: 画面比例
- duration: 时长整数
- model: 或
seedance_2.0_fastseedance_2.0
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{
"prompt": "镜头从首帧缓缓过渡到尾帧,画面流畅自然",
"functionMode": "first_last_frames",
"filePaths": ["https://first-frame.png", "https://last-frame.png"],
"ratio": "16:9",
"duration": 5,
"model": "seedance_2.0_fast"
}'<details>
<summary><b>MCP Method</b></summary>
</details>
Call the tool:
submit_task- model_id:
st-ai/super-seed2 - parameters:
- prompt: Video description prompt
- functionMode:
first_last_frames - filePaths: Array of image URLs (0 images = text-to-video, 1 image = first-frame-to-video, 2 images = first-last-frame video)
- ratio: Aspect ratio
- duration: Integer duration
- model: or
seedance_2.0_fastseedance_2.0
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{
"prompt": "Camera transitions smoothly from first frame to last frame, with natural and fluid visuals",
"functionMode": "first_last_frames",
"filePaths": ["https://first-frame.png", "https://last-frame.png"],
"ratio": "16:9",
"duration": 5,
"model": "seedance_2.0_fast"
}'Step 7: 轮询等待视频结果
Step 7: Poll for Video Results
视频生成约需 10 分钟。
<details>
<summary><b>MCP 方式</b></summary>
轮询策略:
- 提交后告知用户"视频正在生成,预计 10 分钟"
- 首次 60 秒后调用 查询
get_task - 之后每 90 秒查询一次
- 每次查询后向用户报告状态
推荐:使用 poll 自动轮询(后台运行,间隔 30s,超时 600s):
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py poll \
--task-id "TASK_ID_HERE" --interval 30 --timeout 600脚本会在 stderr 打印轮询进度,完成后在 stdout 输出 JSON 结果。
手动分次查询:
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py query \
--task-id "TASK_ID_HERE"状态说明:
- → "排队中..."
pending - → "生成中..."
processing - → 提取视频 URL 并展示给用户
completed - → 告知失败原因,建议调整提示词重试
failed
Video generation takes approximately 10 minutes.
<details>
<summary><b>MCP Method</b></summary>
Polling Strategy:
- After submission, inform the user: "Video is being generated, expected to take 10 minutes"
- First call to query after 60 seconds
get_task - Then query every 90 seconds thereafter
- Report the status to the user after each query
Recommended: Use auto polling (runs in background, 30s interval, 600s timeout):
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py poll \
--task-id "TASK_ID_HERE" --interval 30 --timeout 600The script will print polling progress to stderr, and output JSON results to stdout upon completion.
Manual Query in Batches:
bash
python .cursor/skills/seedance2-api/scripts/seedance_api.py query \
--task-id "TASK_ID_HERE"Status Explanations:
- → "Queued..."
pending - → "Generating..."
processing - → Extract video URL and present to user
completed - → Inform user of failure reason, suggest adjusting prompt and retrying
failed
完整流程示例
Complete Workflow Example
用户说:"帮我做一个宇航员在火星行走的视频"
User says: "Help me make a video of an astronaut walking on Mars"
MCP 可用时
When MCP is Available
1. 收集信息 → 15秒,16:9,电影级科幻风格,无现成素材
2. 用 Seedream 4.5 生成宇航员图 + 火星场景图
submit_task("fal-ai/bytedance/seedream/v4.5/text-to-image", {...})
→ 轮询 get_task → 获得图片 URL
3. 编写提示词 → 提交视频任务
submit_task("st-ai/super-seed2", {...})
4. 轮询 get_task,~10分钟后获得视频 URL1. Collect information → 15 seconds, 16:9, cinematic sci-fi style, no existing materials
2. Generate astronaut image + Mars scene image using Seedream 4.5
submit_task("fal-ai/bytedance/seedream/v4.5/text-to-image", {...})
→ Poll get_task → Obtain image URLs
3. Write prompt → Submit video task
submit_task("st-ai/super-seed2", {...})
4. Poll get_task, obtain video URL after ~10 minutesMCP 不可用时(脚本模式)
When MCP is Unavailable (Script Mode)
1. 收集信息 → 15秒,16:9,电影级科幻风格
2. 生成参考图:
python scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/text-to-image" \
--params '{"prompt":"An astronaut in white spacesuit on Mars...","image_size":"landscape_16_9"}'
→ 拿到 task_id
3. 轮询图片结果:
python scripts/seedance_api.py poll --task-id "xxx" --interval 10 --timeout 180
→ 拿到图片 URL
4. 提交视频任务:
python scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{"prompt":"...分镜提示词...","functionMode":"omni_reference","image_files":["图片URL"],"ratio":"16:9","duration":15,"model":"seedance_2.0_fast"}'
→ 拿到 task_id
5. 轮询视频结果:
python scripts/seedance_api.py poll --task-id "xxx" --interval 30 --timeout 600
→ 拿到视频 URL1. Collect information → 15 seconds, 16:9, cinematic sci-fi style
2. Generate reference images:
python scripts/seedance_api.py submit \
--model "fal-ai/bytedance/seedream/v4.5/text-to-image" \
--params '{"prompt":"An astronaut in white spacesuit on Mars...","image_size":"landscape_16_9"}'
→ Get task_id
3. Poll for image results:
python scripts/seedance_api.py poll --task-id "xxx" --interval 10 --timeout 180
→ Get image URLs
4. Submit video task:
python scripts/seedance_api.py submit \
--model "st-ai/super-seed2" \
--params '{"prompt":"...storyboard prompt...","functionMode":"omni_reference","image_files":["image URL"],"ratio":"16:9","duration":15,"model":"seedance_2.0_fast"}'
→ Get task_id
5. Poll for video results:
python scripts/seedance_api.py poll --task-id "xxx" --interval 30 --timeout 600
→ Get video URL模型参数速查
Quick Reference for Model Parameters
Seedream 4.5 文生图
Seedream 4.5 Text-to-Image
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| prompt | string | 是 | 图片描述 |
| image_size | string | 否 | auto_2K / auto_4K / square_hd / portrait_4_3 / portrait_16_9 / landscape_4_3 / landscape_16_9 |
| num_images | int | 否 | 1-6,默认 1 |
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Image description |
| image_size | string | No | auto_2K / auto_4K / square_hd / portrait_4_3 / portrait_16_9 / landscape_4_3 / landscape_16_9 |
| num_images | int | No | 1-6, default 1 |
Seedream 4.5 图像编辑
Seedream 4.5 Image Editing
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| prompt | string | 是 | 编辑指令,用 Figure 1/2/3 引用 |
| image_urls | array | 是 | 输入图片 URL 列表 |
| image_size | string | 否 | 同上 |
| num_images | int | 否 | 1-6,默认 1 |
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Editing instructions, reference with Figure 1/2/3 |
| image_urls | array | Yes | List of input image URLs |
| image_size | string | No | Same as above |
| num_images | int | No | 1-6, default 1 |
Seedance 2.0 视频(全能模式 omni_reference)
Seedance 2.0 Video (Omni-reference Mode omni_reference
)
omni_reference| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| prompt | string | 是 | 分镜提示词,用 @image_file_N/@video_file_N/@audio_file_N 引用 |
| functionMode | string | 否 | |
| image_files | array | 否 | 参考图片 URL 数组(最多 9 张) |
| video_files | array | 否 | 参考视频 URL 数组(最多 3 个,总时长 ≤ 15s) |
| audio_files | array | 否 | 参考音频 URL 数组(最多 3 个) |
| ratio | string | 否 | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 |
| duration | integer | 否 | 4-15 整数,默认 5 |
| model | string | 否 | seedance_2.0_fast(默认)/ seedance_2.0 |
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Storyboard prompt, reference with @image_file_N/@video_file_N/@audio_file_N |
| functionMode | string | No | |
| image_files | array | No | Array of reference image URLs (max 9) |
| video_files | array | No | Array of reference video URLs (max 3, total duration ≤ 15s) |
| audio_files | array | No | Array of reference audio URLs (max 3) |
| ratio | string | No | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 |
| duration | integer | No | 4-15, default 5 |
| model | string | No | seedance_2.0_fast (default) / seedance_2.0 |
Seedance 2.0 视频(首尾帧模式 first_last_frames)
Seedance 2.0 Video (First-Last Frame Mode first_last_frames
)
first_last_frames| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| prompt | string | 是 | 视频描述提示词 |
| functionMode | string | 是 | |
| filePaths | array | 否 | 图片 URL 数组(0张=文生视频,1张=首帧,2张=首尾帧) |
| ratio | string | 否 | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 |
| duration | integer | 否 | 4-15 整数,默认 5 |
| model | string | 否 | seedance_2.0_fast(默认)/ seedance_2.0 |
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Video description prompt |
| functionMode | string | Yes | |
| filePaths | array | No | Array of image URLs (0 = text-to-video, 1 = first frame, 2 = first-last frames) |
| ratio | string | No | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 |
| duration | integer | No | 4-15, default 5 |
| model | string | No | seedance_2.0_fast (default) / seedance_2.0 |
工具速查
Quick Reference for Tools
MCP 工具
MCP Tools
| 操作 | 工具 | 关键参数 |
|---|---|---|
| 提交任务 | submit_task | model_id, parameters |
| 查询结果 | get_task | task_id |
| 上传图片 | upload_image | image_url 或 image_data |
| 查询余额 | get_balance | 无 |
| Operation | Tool | Key Parameters |
|---|---|---|
| Submit Task | submit_task | model_id, parameters |
| Query Result | get_task | task_id |
| Upload Image | upload_image | image_url or image_data |
| Query Balance | get_balance | None |
脚本命令(MCP 不可用时)
Script Commands (When MCP is Unavailable)
| 操作 | 命令 | 说明 |
|---|---|---|
| 提交任务 | | 返回 task_id |
| 单次查询 | | 返回当前状态 |
| 自动轮询 | | 阻塞直到完成 |
| 查询余额 | | 返回账户余额 |
| 上传图片 | | 返回图片 URL |
脚本路径说明: 以上命令中的是相对于scripts/seedance_api.py目录的路径。实际执行时使用完整路径.cursor/skills/seedance2-api/,或先 cd 到 skill 目录。.cursor/skills/seedance2-api/scripts/seedance_api.py
| Operation | Command | Description |
|---|---|---|
| Submit Task | | Returns task_id |
| Single Query | | Returns current status |
| Auto Polling | | Blocks until completion |
| Query Balance | | Returns account balance |
| Upload Image | | Returns image URL |
Script Path Note: Thein the above commands is relative to thescripts/seedance_api.pydirectory. When executing, use the full path.cursor/skills/seedance2-api/, or cd to the skill directory first..cursor/skills/seedance2-api/scripts/seedance_api.py
Seedance 2.0 限制
Seedance 2.0 Limitations
- 不支持上传写实真人脸部素材
- 最多 12 个文件:图片 ≤ 9 + 视频 ≤ 3 + 音频 ≤ 3
- 视频/音频参考总时长 ≤ 15 秒
- 含视频参考会消耗更多积分
- Does not support uploading realistic human face materials
- Maximum 12 files: images ≤9 + videos ≤3 + audio ≤3
- Total duration of video/audio references ≤15 seconds
- Using video references consumes more credits
更多资源
Additional Resources
详细分镜模板、完整示例和镜头词汇表见 reference.md。
Detailed storyboard templates, complete examples, and camera vocabulary can be found in reference.md.