跳至內容

ID-V2V

整合

模型 id id-v2v
# 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/id-v2v?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

像範例一樣的檔案: $1.013 1,013 API 點數 · ≈ ₽106.06 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Open model 影片轉影片 最高 720p #stylized#transform#editing

從重新設計風格的第一個影格重製影片,同時保留主體身分與動態

Open model · 影片

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

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

建立請求

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

•必填

指定所需重新風格化影片的提示詞。

•必填 video_url
拖放檔案,或

生成時的動態與構圖參考,以來源影片 URL 提供。

•必填 image_url
拖放檔案,或

影片重新生成時的身分與風格參考,以指向重新風格化首影格的 URL 提供。

resolution 預設 720p

1280×720 或 720×1280 輸出請選擇 720p;832×480 或 480×832 輸出請選擇 480p。適用的尺寸取決於來源影片的方向。

預設 81

限制要產生的影格數;若來源包含較少影格,其影格數會成為上限。

進階 segmentation_prompt · num_inference_steps · guidance_scale · vace_scale · seed · enable_safety_checker · keyframes
0 / 100

SAM-3 的主體選擇提示詞,用於識別其像素將引導生成的區域。該分割主體以外的生成不受限制。

預設 30

以每個片段的擴散取樣步驟數表示片段品質與速度控制:使用更多步驟可改善品質,但需要更長時間。

預設 5

無分類器引導強度,在遵循提示詞與創意之間取得平衡。

預設 1

對來源影片的結構遵循程度,透過 VACE 條件比例調整。

生成多個片段時由所有片段共用的隨機種子,可實現可重現生成。

長影片的選填身分錨點:提供重新風格化關鍵影格,以及其必須出現的輸出影格索引。

POST /run/id-v2v?wait=20 報價 → $1.013
# 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/id-v2v?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 金鑰

關於 ID-V2V

以重新設計風格的第一個影格(`image_url`)為引導,按照 `prompt` 將來源影片(`video_url`)重新生成。較長的片段最多可使用 5 個 `keyframes` 錨定身分。輸出為 480p 或 720p,`num_frames` 介於 17 到 241;`segmentation_prompt`(預設為 person)會選擇其像素用於約束結果的主體。

參數

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

名稱類型 預設值允許值 說明
prompt必填
類型string
指定所需重新風格化影片的提示詞。
video_url必填 video
類型url · video
生成時的動態與構圖參考,以來源影片 URL 提供。
image_url必填 image
類型url · image
影片重新生成時的身分與風格參考,以指向重新風格化首影格的 URL 提供。
keyframes選填
類型object[]
≤ 5 個項目
長影片的選填身分錨點:提供重新風格化關鍵影格,以及其必須出現的輸出影格索引。
keyframes[].image_url必填
類型url · image
長影片身分錨點的重新風格化圖像 URL;圖像長寬比與輸出的差異不得超過 0.1。圖像會在 `frame_index` 顯示且不經修改。
keyframes[].frame_index必填
類型integer
≥ 1
使用從 0 開始的索引,將關鍵影格放在至少為 1 且低於輸出總影格數的位置。位置 0 保留給 `image_url` 的重新風格化起始影格。
resolution選填
類型enum
預設值720p
480p720p
1280×720 或 720×1280 輸出請選擇 720p;832×480 或 480×832 輸出請選擇 480p。適用的尺寸取決於來源影片的方向。
num_frames選填
類型integer
預設值81
17 – 241
限制要產生的影格數;若來源包含較少影格,其影格數會成為上限。
segmentation_prompt選填
類型string
預設值person
≤ 100 個字元
SAM-3 的主體選擇提示詞,用於識別其像素將引導生成的區域。該分割主體以外的生成不受限制。
num_inference_steps選填
類型integer
預設值30
2 – 40
以每個片段的擴散取樣步驟數表示片段品質與速度控制:使用更多步驟可改善品質,但需要更長時間。
guidance_scale選填
類型number
預設值5
1 – 10
無分類器引導強度,在遵循提示詞與創意之間取得平衡。
vace_scale選填
類型number
預設值1
0 – 2
對來源影片的結構遵循程度,透過 VACE 條件比例調整。
seed選填
類型integer | null
生成多個片段時由所有片段共用的隨機種子,可實現可重現生成。
enable_safety_checker選填
類型boolean
預設值true
對輸入與輸出啟用安全檢查。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "id-v2v",
  "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": 1013,
    "usd": "1.013",
    "charged": 1013,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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
  },
  "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生成期間套用的種子值。

更多模型:影片轉影片

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