跳至內容

Void Video Inpainting

整合

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

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

像範例一樣的檔案: $0.10 100 API 點數 · ≈ ₽10.76 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Open model 影片轉影片 #utility#editing

使用遮罩影片或文字遮罩提示詞,從影片中移除物件及其對場景造成的影響

Open model · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填

指定移除物件後背景應呈現樣貌的描述。

•必填 video_url
拖放檔案,或

包含要移除物件的來源影片 URL。

預設
拖放檔案,或

移除遮罩影片 URL;若未提供,應用程式會透過 SAM-3 影片端點使用 `mask_prompt` 建立暫時影片遮罩,然後自動轉換為四邊形遮罩。為獲得最佳結果,請提供 VOID 樣式的四邊形遮罩,使用 4 個灰階值:255 表示保留的背景,127 表示受影響區域,63 表示重疊區域,0 表示要移除的物件。也接受二元遮罩,使用 255 表示保留,0 表示移除。

進階 mask_prompt · negative_prompt · num_inference_steps · guidance_scale · strength · num_frames · seed · enable_safety_checker

供 SAM-3 建立暫時遮罩影片的遮罩目標指示;當未提供 `quad_mask_video_url` 時使用。請指出要遮罩的內容,例如要從來源影片中移除的物件或人物。

預設 The video is not of a...

描述不需要的結果,將生成引導至遠離這些結果。

預設 30

去雜訊步驟數。增加此值可提升品質,但會增加延遲。

預設 1

無分類器引導的強度。

預設 1

去雜訊強度;1.0 表示完全去雜訊。

預設 85

要求的時間推論視窗,後端會調整為 CogVideoX 安全尺寸 69、77、85、...、197 之一。系統會選取最接近的尺寸,以配合時間壓縮和分塊處理。

控制隨機性以產生可重現結果的種子。

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

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

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Void Video Inpainting

接收 `video_url` 與描述目標背景的 `prompt`。提供 `quad_mask_video_url`,或使用 `mask_prompt` 生成遮罩。控制項包括 `num_frames`(1-197)、`num_inference_steps`(1-50)、`guidance_scale`、`strength`,以及可選但較慢的 `enable_pass2_refinement`,用於維持時間一致性。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
video_url必填 video
類型url · video
包含要移除物件的來源影片 URL。
quad_mask_video_url選填
類型url · video
預設值
移除遮罩影片 URL;若未提供,應用程式會透過 SAM-3 影片端點使用 `mask_prompt` 建立暫時影片遮罩,然後自動轉換為四邊形遮罩。為獲得最佳結果,請提供 VOID 樣式的四邊形遮罩,使用 4 個灰階值:255 表示保留的背景,127 表示受影響區域,63 表示重疊區域,0 表示要移除的物件。也接受二元遮罩,使用 255 表示保留,0 表示移除。
mask_prompt選填
類型string | null
供 SAM-3 建立暫時遮罩影片的遮罩目標指示;當未提供 `quad_mask_video_url` 時使用。請指出要遮罩的內容,例如要從來源影片中移除的物件或人物。
prompt必填
類型string
指定移除物件後背景應呈現樣貌的描述。
enable_pass2_refinement選填
類型boolean
預設值false
選用的 VOID 精修功能,以較慢的處理速度換取更佳的長片段時間一致性。它會在 Pass 1 之後,將扭曲雜訊精修套用為 Pass 2。
negative_prompt選填
類型string
預設值The video is not of a high quality, it has a low resolution. Watermark present in each frame. The background is solid. Strange body and strange trajectory. Distortion.
描述不需要的結果,將生成引導至遠離這些結果。
num_inference_steps選填
類型integer
預設值30
1 – 50
去雜訊步驟數。增加此值可提升品質,但會增加延遲。
guidance_scale選填
類型number
預設值1
0 – 20
無分類器引導的強度。
strength選填
類型number
預設值1
0 – 1
去雜訊強度;1.0 表示完全去雜訊。
seed選填
類型integer | null
控制隨機性以產生可重現結果的種子。
num_frames選填
類型integer
預設值85
1 – 197
要求的時間推論視窗,後端會調整為 CogVideoX 安全尺寸 69、77、85、...、197 之一。系統會選取最接近的尺寸,以配合時間壓縮和分塊處理。
enable_safety_checker選填
類型boolean
預設值true
啟用生成內容的安全檢查。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "void-video-inpainting",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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,
    "timings": {}
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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生成期間套用的種子值。
timings
object管線各階段的計時詳細資訊。

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/void-video-inpainting.md. 所有模型與指南: https://doitong.com/developers/llms.txt