快速接入
使用一个最小请求创建 Seedance 2.0 文生视频任务,并查询生成结果。
最后更新: 2026-11-02本页内容
1. 准备 API Key
登录 EaseRouter 控制台,在“API 密钥”页面创建密钥。完整密钥默认脱敏展示,请勿写入浏览器代码、公开仓库或日志。
2. 创建视频任务
curl --request POST 'https://api.easerouter.com/api/v3/contents/generations/tasks' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "doubao-seedance-2-0-260128",
"content": [
{
"type": "text",
"text": "城市天台的日落延时摄影,电影质感"
}
],
"resolution": "720p",
"ratio": "16:9",
"duration": 5,
"watermark": false
}'{
"id": "cgt-20261102120000-abc12"
}3. 查询任务
curl --request GET 'https://api.easerouter.com/api/v3/contents/generations/tasks/cgt-20261102120000-abc12' \
--header 'Authorization: Bearer YOUR_API_KEY'