跳转到主要内容
POST
/
api
/
open-api
/
v1
/
seedance
/
videos
Create Seedance Video Task
curl --request POST \
  --url https://www.jimmyai.cn/api/open-api/v1/seedance/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "duration": 123,
  "images": [
    "<string>"
  ],
  "ratio": "<string>",
  "first_image": "<string>",
  "last_image": "<string>",
  "reference_videos": [
    "<string>"
  ],
  "reference_audios": [
    "<string>"
  ]
}
'
{
  "code": "20000",
  "msg": "ok",
  "data": {
    "task_id": "<string>",
    "status": "<string>",
    "model": "<string>",
    "created_at": 123
  }
}
创建 Seedance STD 视频生成任务。提交成功后返回 task_id,请使用 查询视频任务 轮询状态,完成后从 result.video_url 获取视频地址。
本接口与 创建 Seedance 满血版视频 共用 POST /api/open-api/v1/seedance/videos。通过 model: "seedance2.0-std" 选择标准版线路。

模型

线路model 取值计费时长输出
STD 标准版seedance2.0-std按次4–15 秒固定 720p

请求参数

字段类型必填说明
modelstring固定为 seedance2.0-std
promptstring视频生成提示词
durationint时长(秒),4–15,默认 5
ratiostring画面比例:16:9(默认)、9:161:14:33:421:9
imagesstring[]参考图列表,最多 9
first_imagestring首帧图片
last_imagestring尾帧图片
reference_videosstring[]参考视频列表
reference_audiosstring[]参考音频列表,最多 3
resolution 字段无效,STD 输出固定为 720p。

素材说明

  • 直接传入可公网访问的 https:// 图片、视频或音频 URL。
  • reference_videos 仅支持视频 URL。图片请传入 images
  • 不使用 SP 素材库 asset:// 流程;满血版 asset:// 审核流程也不适用于 STD。

约束

  • images(参考图模式)与 first_image / last_image(首尾帧模式)不可同时使用
  • 首尾帧模式下可以传 first_imagelast_image,或同时传入两者。
  • 首尾帧模式不支持 reference_audios
  • ratio 仅支持 21:916:94:31:13:49:16
  • images 最多 9 张。
  • reference_audios 最多 3 段。
  • reference_videos 仅支持视频 URL,不支持图片 URL。

示例

参考图生视频

curl -X POST 'https://www.jimmyai.cn/api/open-api/v1/seedance/videos' \
  -H 'Authorization: Bearer sk_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance2.0-std",
    "prompt": "人物在晨光中穿过城市街道,镜头稳定跟拍,电影感光影",
    "duration": 8,
    "ratio": "16:9",
    "images": [
      "https://example.com/ref-1.jpg",
      "https://example.com/ref-2.jpg"
    ]
  }'

视频与音频参考

curl -X POST 'https://www.jimmyai.cn/api/open-api/v1/seedance/videos' \
  -H 'Authorization: Bearer sk_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance2.0-std",
    "prompt": "参考视频中的运动节奏,生成一段有音乐律动的产品展示视频",
    "duration": 10,
    "ratio": "9:16",
    "reference_videos": [
      "https://example.com/motion.mp4"
    ],
    "reference_audios": [
      "https://example.com/music.mp3"
    ]
  }'

首尾帧生视频

curl -X POST 'https://www.jimmyai.cn/api/open-api/v1/seedance/videos' \
  -H 'Authorization: Bearer sk_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance2.0-std",
    "prompt": "从室内窗边平滑过渡到夜晚城市天台,镜头缓慢推进",
    "duration": 6,
    "ratio": "21:9",
    "first_image": "https://example.com/start.png",
    "last_image": "https://example.com/end.png"
  }'

响应示例

{
  "code": 0,
  "msg": "ok",
  "data": {
    "task_id": "vid_abc123",
    "status": "queued",
    "model": "seedance2.0-std",
    "created_at": 1710000000
  }
}

查询任务

curl -X GET 'https://www.jimmyai.cn/api/open-api/v1/videos/{task_id}' \
  -H 'Authorization: Bearer sk_xxx'
任务状态:queuedprocessingcompleted / failed。完成后从 data.result.video_url 获取视频地址。
视频结果 URL 保存约 3 天,请及时转存。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
model
string
必填

Model name. Manxue: sd2_mx_720p | sd2_mx_1080p | sd2_mx_2k | sd2_mx_4k; Fast: sd2_mx_fast_720p | sd2_mx_fast_1080p; Video ref: sd2_mx_video_720p | sd2_mx_video_1080p | sd2_mx_video_2k | sd2_mx_video_4k; Video ref Fast: sd2_mx_video_fast_720p | sd2_mx_video_fast_1080p (all per-second). reference_videos only for video-series models. SP economy: seedance2.0-sp | seedance2.0-fast-sp (per-second by resolution). SP official: seedance2.0-of-sp | seedance2.0-of-fast-sp (per-second by resolution). Mini: seedance2.0-mini (per-second by resolution). Mini Special: seedance2.0-mini-sp (per-task, 480p/720p only). MD: seedance2.0-md | seedance2.0-fast-md (per-task, 720p). Fast I2V: seedance2.0-fast-i2v (per-task, 720p, image refs only). STD standard: seedance2.0-std (per-task, 720p)

prompt
string
必填

Text prompt. MD route: max 5000 characters

duration
integer
必填

Duration in seconds. Full 4-12; SP economy 4-15; MD 1-15; STD standard 4-15. Default 5

resolution
enum<string>

Output resolution for SP economy. Default 720p

可用选项:
480p,
720p,
1080p
orientation
enum<string>

Video orientation (ratio takes precedence if set)

可用选项:
landscape,
portrait
images
string[]

Reference images. Full route: asset://{assetId}; SP/MD/STD/Fast I2V: https:// URL. MD max 4; seedance2.0-fast-i2v and STD max 9. Mutually exclusive with first_image/last_image

ratio
string

Aspect ratio. MD: 16:9, 9:16, 1:1 only. STD: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Full route also supports 4:3, 3:4, 21:9, Adaptive

first_image
string

First frame. Full: asset://{assetId}; Economy/MD: https:// URL. MD frame mode requires last_image as well; first frame only is not supported

last_image
string

Last frame. Full: asset://{assetId}; Economy/MD: https:// URL. MD frame mode requires first_image as well

reference_videos
string[]

Reference videos. Full: asset://{assetId}; Economy/MD: https:// URL. MD: max 3, combined duration ≤15s, combined size ≤200MB, each resolution 720px–2160px. Not supported on seedance2.0-fast-i2v

reference_audios
string[]

Reference audio. Supported on Full, SP economy, and STD. Not supported on MD or seedance2.0-fast-i2v. Full: asset://{assetId}; SP: https:// URL or asset://. STD max 3 clips; frame mode does not support audio references

响应

200 - application/json

Task created successfully

code
string
示例:

"20000"

msg
string
示例:

"ok"

data
object