跳至內容

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-TW/developers/models/scail-2.md. 所有模型與指南: https://doitong.com/developers/llms.txt