跳至內容

H3 Max Extend Video

整合

模型 id minimax/h3-max/extend-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/minimax/h3-max/extend-video?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $0.40 400 API 點數 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
MiniMax 影片轉影片 參考輸入0.71–15 秒最高 2K #extend#video#continuation

從文字提示延續現有影片,可回傳完整延長片段或僅回傳新增畫面

MiniMax · 影片

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

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

建立請求

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

•必填 88 / 50000

應接續發生的事件描述,而非來源片段的描述。

•必填 video_url
拖放檔案,或

用於延長的來源影片 URL;檔案不得超過 50 MB。接受的影片長寬比為 0.4–2.5,長度為 1.625 s–60 s。

resolution 預設 768P

結果影片的解析度。

aspect_ratio 預設 auto

輸出比例:選擇比例會裁切以符合該比例,而 'auto' 會使用來源影片的長寬比。

預設 5

要求新增的影片內容量,以秒為單位,而非延續片段的完整長度。該片段也會保留來源最後 1.625 秒,影格四捨五入可能進一步增加時間。

進階 reference_audio_urls · output · seed · enable_prompt_expansion · enable_safety_checker
拖放檔案,或 · 最多 3 個

可選片段,用於取代來源配樂並引導延續內容的新音訊;請在提示詞中指定其角色,例如 'Audio 1 for the voice' 和 'Audio 2 for background music'。每個片段必須長 2–15 秒,所有片段合計不得超過 15 秒。完整延長影片會保留原始來源配樂,其結尾仍會引導轉場。

output 預設 extended

輸出模式:'continuation' 會提供新影片內容,前面接續來源結尾 1.625 秒的重播。若要在單一影片中接合來源影片與新內容,請選擇 'extended'。

延續生成種子;未指定時會使用隨機值。

POST /run/minimax/h3-max/extend-video?wait=20 報價 → $0.40
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/minimax/h3-max/extend-video?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

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

關於 H3 Max Extend Video

接收來源影片(1.625 至 60 s,最大 50 MB)及描述後續內容的 `prompt`。`duration` 將新增畫面設為 0.71 至 15 秒,`resolution` 範圍為 480P 至 2K。最多可使用 3 個 `reference_audio_urls` 引導延續內容,`output` 可在合併的 'extended' 影片與 'continuation' 片段之間選擇。

參數

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

名稱類型 預設值允許值 說明
video_url必填 video
類型url · video
用於延長的來源影片 URL;檔案不得超過 50 MB。接受的影片長寬比為 0.4–2.5,長度為 1.625 s–60 s。
prompt必填
類型string
≤ 50,000 個字元
應接續發生的事件描述,而非來源片段的描述。
reference_audio_urls選填
類型url[] · audio
≤ 3 個項目
可選片段,用於取代來源配樂並引導延續內容的新音訊;請在提示詞中指定其角色,例如 'Audio 1 for the voice' 和 'Audio 2 for background music'。每個片段必須長 2–15 秒,所有片段合計不得超過 15 秒。完整延長影片會保留原始來源配樂,其結尾仍會引導轉場。
enable_prompt_expansion選填
類型boolean
預設值true
以來源為導向的提示詞增強,可產生更一致的延續內容。啟用後系統會自動修改提示詞,但可能使處理時間變長。
duration選填
類型number
預設值5
0.71 – 15
要求新增的影片內容量,以秒為單位,而非延續片段的完整長度。該片段也會保留來源最後 1.625 秒,影格四捨五入可能進一步增加時間。
resolution選填
類型enum
預設值768P
480P768P1080P2K
結果影片的解析度。
aspect_ratio選填
類型enum
預設值auto
auto21:916:94:31:13:49:16
輸出比例:選擇比例會裁切以符合該比例,而 'auto' 會使用來源影片的長寬比。
seed選填
類型integer | null
延續生成種子;未指定時會使用隨機值。
output選填
類型enum
預設值extended
extendedcontinuation
輸出模式:'continuation' 會提供新影片內容,前面接續來源結尾 1.625 秒的重播。若要在單一影片中接合來源影片與新內容,請選擇 'extended'。
enable_safety_checker選填
類型boolean
預設值true
對輸入影片和提示詞進行審核。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/h3-max/extend-video",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "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,
    "duration": 5,
    "source": {},
    "expanded_prompt": "string",
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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}結果影片;使用 'continuation' 模式時開頭會重複 1.625 秒。
seed
integer生成延續內容時使用的種子。
duration
number回傳影片的長度,以秒為單位。
source
object來源片段中涵蓋尺寸(寬度和高度)、影格率、長度及音訊的中繼資料。
expanded_prompt
string | null擴充後的提示詞文字;若未進行變更則為 null。
timings
object

更多模型:影片轉影片

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