文档OriHub
创建主体参考生成视频任务
方舟格式:给参考图、参考视频、参考音频,让模型照着做。
同一个端点,content 里给参考素材,role 标用途。
请求
curl https://api.lk888.ai/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-5-260628",
"content": [
{ "type": "text", "text": "跟随 @video1 的镜头节奏,人物长得像 @image1,背景音乐用 @audio1,做成产品宣传片" },
{ "type": "image_url", "role": "reference_image", "image_url": { "url": "https://example.com/character.jpg" } },
{ "type": "video_url", "role": "reference_video", "video_url": { "url": "https://example.com/camera-move.mp4" } },
{ "type": "audio_url", "role": "reference_audio", "audio_url": { "url": "https://example.com/bgm.mp3" } }
],
"duration": -1,
"ratio": "adaptive",
"resolution": "720p"
}'
素材怎么标
| 素材 | type |
role |
|---|---|---|
| 参考图 | image_url |
每张都是 reference_image |
| 参考视频 | video_url |
reference_video |
| 参考音频 | audio_url |
reference_audio |
参考图张数
| 模型 | 参考图张数 |
|---|---|
| Seedance 2.5 全模态参考 | 1 – 30 张 |
| Seedance 2.0 系列全模态参考 | 1 – 9 张 |
几个规矩
- 三种场景互斥:首帧 / 首尾帧 / 全模态参考(包括参考图、参考视频、参考音频)不能混用
- 视频素材有限:本账号近 30 天内由 Seedance 2.5、2.0 系列模型生成的含人脸视频,可以直接拿来做二次创作
- 全模态参考还支持编辑视频、延长视频(通过
extra_body.omni_reference_task_type指定)
响应
{ "id": "cgt-20260414114820-xxxxx" }
计费按秒预扣,规则跟视频生成费用一致。