跳转到内容

Scail 2

集成

模型 id scail-2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/scail-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

与示例类似的文件: $2.00 2,000 API 积分 运行前会测量你的文件 在此页面运行

获取 API 密钥
Open model 视频转换 最高 704p #stylized#transform

使用驱动视频中的动作制作参考角色图像动画,或将角色替换到原始场景中

Open model · 视频

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

指定所需输出视频的提示词。

•必填 image_url
拖放文件,或

提供要制作动画或替换主体的角色参考图像 URL;驱动视频决定动画或替换效果。

•必填 video_url
拖放文件,或

通过 URL 提供动作驱动视频,其中包含一个人、多人或动物。

resolution 默认 512p

输出分辨率,方向根据参考图像的宽高比自动确定。横向时,512p 映射为 896x512,704p 映射为 1280x704;纵向时分别使用 512x896 和 704x1280。

高级 mode · driving_type · subject_type · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker
mode 默认 animation

选择如何使用参考角色:`replacement` 保留原始场景,但将角色替换为驱动主体;`animation` 将驱动动作应用到角色。

driving_type 默认 end_to_end

动画动作直接来自由 SAM3 使用 `end_to_end` 进行掩码处理的驱动视频;这是默认且推荐的选项,可获得最高稳健性。或者,`pose` 使用 NLF/DWPose 从该视频渲染显式骨架,在处理具有挑战性的输入时提供更高控制力。

subject_type 默认 human

驱动视频中的主体选择;使用 `animal` 时会将 SAM3 的检测提示词配置为非 `human` 主体。

默认 40

扩散采样步数。增加该值可提升质量,但需要更长时间。

默认 5

无分类器指导强度,在遵循提示词和保持创意之间进行平衡。

默认 3

流匹配的噪声调度偏移;使用 512p 时建议设置为 3.0。

响应中包含的生成种子;无论是显式提供,还是因输入为空而随机选择,都会返回。

POST /run/scail-2?wait=20 报价 → $2.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/scail-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Scail 2

接收一个参考角色 `image_url` 和一个展示人类、多人或动物的驱动 `video_url`。在 `animation` 模式下,角色执行驱动动作;在 `replacement` 模式下,角色替换主体并保留场景。分辨率为 512p 或 704p,方向根据图像选择。`driving_type` 可使用直接端到端驱动或明确的姿态骨架。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
prompt必填
类型string
指定所需输出视频的提示词。
image_url必填 image
类型url · image
提供要制作动画或替换主体的角色参考图像 URL;驱动视频决定动画或替换效果。
video_url必填 video
类型url · video
通过 URL 提供动作驱动视频,其中包含一个人、多人或动物。
mode可选
类型enum
默认值animation
animationreplacement
选择如何使用参考角色:`replacement` 保留原始场景,但将角色替换为驱动主体;`animation` 将驱动动作应用到角色。
driving_type可选
类型enum
默认值end_to_end
end_to_endpose
动画动作直接来自由 SAM3 使用 `end_to_end` 进行掩码处理的驱动视频;这是默认且推荐的选项,可获得最高稳健性。或者,`pose` 使用 NLF/DWPose 从该视频渲染显式骨架,在处理具有挑战性的输入时提供更高控制力。
subject_type可选
类型enum
默认值human
humananimal
驱动视频中的主体选择;使用 `animal` 时会将 SAM3 的检测提示词配置为非 `human` 主体。
resolution可选
类型enum
默认值512p
512p704p
输出分辨率,方向根据参考图像的宽高比自动确定。横向时,512p 映射为 896x512,704p 映射为 1280x704;纵向时分别使用 512x896 和 704x1280。
num_inference_steps可选
类型integer
默认值40
2 – 50
扩散采样步数。增加该值可提升质量,但需要更长时间。
guidance_scale可选
类型number
默认值5
1 – 10
无分类器指导强度,在遵循提示词和保持创意之间进行平衡。
shift可选
类型number
默认值3
1 – 10
流匹配的噪声调度偏移;使用 512p 时建议设置为 3.0。
seed可选
类型integer | null
响应中包含的生成种子;无论是显式提供,还是因输入为空而随机选择,都会返回。
enable_safety_checker可选
类型boolean
默认值true
调用方获得授权后,可将其设置为 false 以放宽审核。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "scail-2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 2000,
    "usd": "2.00",
    "charged": 2000,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42,
    "preprocessing_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "preprocessing_mask_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size}生成得到的视频文件。
seed
integer用于视频生成的种子。
preprocessing_video
object {url, content_type, file_name, file_size} | null包含提供给扩散模型的 Stage-A 姿态条件输入的调试视频,仅在 `output_preprocessing=true` 时可用。其内容取决于 `driving_type`:`end_to_end` 使用由 SAM3 掩码处理的驱动素材,而 `driving_type=pose` 使用由 NLF/DWPose 渲染的骨架。
preprocessing_mask_video
object {url, content_type, file_name, file_size} | null用于调试的 Stage-A 驱动掩码视频,仅在 `output_preprocessing=true` 时可用。

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/scail-2.md. 所有模型和指南: https://doitong.com/developers/llms.txt