跳转到主要内容
POST
/
api
/
v1
/
task
/
submit
curl --request POST \
  --url https://api.maxapi.io/api/v1/task/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "seedance-2.0-pro",
  "input": {
    "prompt": "吹灭蜡烛",
    "imageUrls": ["https://example.com/photo.jpg"]
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}
通过传入 imageUrls,根据图片数量自动选择不同的生成模式。适用于所有 seedance-*jimeng-video-* 模型。
model
string
必填
模型名称,如 seedance-2.0-projimeng-video-3.5-pro
callBackUrl
string
Webhook 回调地址。
input
object
必填
curl --request POST \
  --url https://api.maxapi.io/api/v1/task/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "seedance-2.0-pro",
  "input": {
    "prompt": "吹灭蜡烛",
    "imageUrls": ["https://example.com/photo.jpg"]
  }
}'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}

生成模式

根据 imageUrls 中的图片数量,自动选择不同模式:

1 张图 — 首帧模式

以图片作为视频的第一帧,根据 prompt 生成后续动画。
{
  "model": "seedance-2.0-pro",
  "input": {
    "prompt": "吹灭蜡烛",
    "imageUrls": ["https://assets.movart.ai/landingpage/dog.webp"]
  }
}

2 张图 — 首尾帧模式

第一张图作为视频首帧,第二张图作为视频尾帧,AI 自动生成中间过渡动画。
{
  "model": "seedance-2.0-pro",
  "input": {
    "prompt": "变身",
    "imageUrls": [
      "https://assets.movart.ai/3D-Cartoon.jpg",
      "https://assets.movart.ai/landingpage/dog.webp"
    ]
  }
}

3+ 张图 — 多图参考模式

prompt 中用 @1@2@3 引用对应位置的图片。
{
  "model": "seedance-2.0",
  "input": {
    "prompt": "@1 和 @2 在聊天,@3 在旁边看",
    "imageUrls": [
      "https://assets.movart.ai/3D-Cartoon.jpg",
      "https://assets.movart.ai/landingpage/dog.webp",
      "https://assets.movart.ai/landingpage/dog.webp"
    ]
  }
}

查询结果

通过 Query Task 接口或 Webhook 获取生成结果:
{
  "code": 0,
  "msg": "ok",
  "data": {
    "taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "status": "SUCCESS",
    "input": {
      "model": "seedance-2.0-pro",
      "prompt": "吹灭蜡烛",
      "imageUrls": [
        "https://assets.movart.ai/landingpage/dog.webp"
      ]
    },
    "result": {
      "type": "video",
      "urls": [
        "https://v9-dreamnia.jimeng.com/video/tos/cn/video_example.mp4"
      ]
    },
    "created_at": "2026-02-10T23:00:00.000000Z",
    "updated_at": "2026-02-10T23:03:25.000000Z"
  }
}