加载中
字节跳动 / 火山引擎
调用 Seedance 模型根据提示词生成视频。
REVIEWED DOCUMENTATION EVIDENCE
以下内容来自与当前版本绑定并经 reviewer 批准的上游文档证据。它说明文档中存在相应安装或使用信息,不代表平台已经执行安装、完成兼容测试或验证运行结果。
使用证据
## Usage
### Environment Variables
Before using this skill, ensure the following environment variables are set:
- `ARK_API_KEY` or `MODEL_VIDEO_API_KEY` or `MODEL_AGENT_API_KEY`: API key for the video generation service
- `MODEL_VIDEO_API_BASE`: API base URL (optional, has default)
- `MODEL_VIDEO_NAME`: Model name (optional, has default)
### Function Signature
```python
async def video_generate(
params: list,
batch_size: int = 10,
max_wait_seconds: int = 1200,
model_name: str = None,
) -> Dict:
```
### Parameters
#### params (list[dict])
A list of video generation requests. Each item is a dict with the following fields:
**Required per item:**
- `video_name` (str): Name/identifier of the output video file
- `prompt` (str): Text describing the video to generate. Supports Chinese and English.
**Optional per item - Input Materials:**
- `first_frame` (str): URL for the first frame image
- `last_frame` (str): URL for the last frame image
- `reference_images` (list[str]): 1-4 reference image URLs for style/content guidance
- `reference_videos` (list[str]): 0-3 reference video URLs (mp4/mov, 2-15s each, total ≤15s)
- `reference_audios` (list[str]): 0-3 reference audio URLs (mp3/wav, 2-15s each, total ≤15s)
**Optional per item - Video Output Parameters:**
- `ratio` (str): Aspect ratio. Options: "16:9" (default), "9:16", "4:3", "3:4", "1:1", "2:1", "21:9", "adaptive"
- `duration` (int): Video length in seconds. Range: 2-12s depending on model
- `resolution` (str): Video resolution. Options: "480p", "720p", "1080p"
- `frames` (int): Total frame count. Must be in [29, 289] and follow format 25 + 4n
- `camera_fixed` (bool): Lock camera movement. Default: false
- `seed` (int): Random seed for reproducibility. Range: [-1, 2^32-1]
- `watermark` (bool): Whe## Example Usage ```bash
## Usage
### Environment Variables
Before using this skill, ensure the following environment variables are set:
- `ARK_API_KEY` or `MODEL_VIDEO_API_KEY` or `MODEL_AGENT_API_KEY`: API key for the video generation service
- `MODEL_VIDEO_API_BASE`: API base URL (optional, has default)
- `MODEL_VIDEO_NAME`: Model name (optional, has default)
### Function Signature
```python
async def video_generate(
params: list,
batch_size: int = 10,
max_wait_seconds: int = 1200,
model_name: str = None,
) -> Dict:
```
### Parameters
#### params (list[dict])
A list of video generation requests. Each item is a dict with the following fields:
**Required per item:**
- `video_name` (str): Name/identifier of the output video file
- `prompt` (str): Text describing the video to generate. Supports Chinese and English.
**Optional per item - Input Materials:**
- `first_frame` (str): URL for the first frame image
- `last_frame` (str): URL for the last frame image
- `reference_images` (list[str]): 1-4 reference image URLs for style/content guidance
- `reference_videos` (list[str]): 0-3 reference video URLs (mp4/mov, 2-15s each, total ≤15s)
- `reference_audios` (list[str]): 0-3 reference audio URLs (mp3/wav, 2-15s each, total ≤15s)
**Optional per item - Video Output Parameters:**
- `ratio` (str): Aspect ratio. Options: "16:9" (default), "9:16", "4:3", "3:4", "1:1", "2:1", "21:9", "USER EXPERIENCE
暂无真实用户评价
如果你实际使用过这个 Skill,可以分享具体场景、效果和踩坑。平台不会用评价替代 VERIFIED、安全或兼容性证据。
REQUIREMENTS
当前版本没有声明额外依赖。
权限、网络访问和静态扫描结果放在“安全与兼容”页签,避免把工程细节堆在概览里。