curl --request POST \
--url https://api.aihubmax.com/e/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-reference-to-video",
"prompt": "参考 @Image1 的人物造型、@Video1 的运镜节奏、@Audio1 的情绪氛围,生成一段雨夜街头表演视频",
"image_urls": [
"https://picsum.photos/id/64/1280/720.jpg"
],
"video_urls": [
"https://samplelib.com/lib/preview/mp4/sample-5s.mp4"
],
"audio_urls": [
"https://samplelib.com/lib/preview/mp3/sample-3s.mp3"
],
"aspect_ratio": "adaptive",
"duration": -1,
"generate_audio": true
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}seedance-2.0
Seedance 2.0 多模态参考生视频
- Seedance 2.0 多模态参考生视频模型,基于参考图片、视频、音频生成视频
- 标准版支持
480p/720p/1080p,Fast 仅支持480p/720p - 参考图片最多 9 张、参考视频最多 3 段、参考音频最多 3 段,总数不超过 12
- 在 prompt 中使用 @Image1、@Video1、@Audio1 等引用参考素材
- 异步处理模式,使用返回的任务ID 进行查询
- 生成的视频链接,有效期为24小时,请尽快保存
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.aihubmax.com/e/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-reference-to-video",
"prompt": "参考 @Image1 的人物造型、@Video1 的运镜节奏、@Audio1 的情绪氛围,生成一段雨夜街头表演视频",
"image_urls": [
"https://picsum.photos/id/64/1280/720.jpg"
],
"video_urls": [
"https://samplelib.com/lib/preview/mp4/sample-5s.mp4"
],
"audio_urls": [
"https://samplelib.com/lib/preview/mp3/sample-3s.mp3"
],
"aspect_ratio": "adaptive",
"duration": -1,
"generate_audio": true
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}授权
请求体
application/json
响应
任务创建成功