跳至內容

MiniMax H3 Max Text to Video

整合

模型 id minimax/h3-max/text-to-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/text-to-video?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",
    "prompt_expansion_mode": "balanced"
  }'

# 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.30 300 API 點數 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
MiniMax 文字轉影片 唇形同步0.92–15 秒最高 1080P #stylized#transform#lipsync

標準 H3 Max 文字轉影片,支援六種長寬比、最高 1080P,以及可選音訊軌

MiniMax · 影片

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

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

建立請求

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

•必填 88 / 50000

用於生成影片的文字指示。

•必填

生成前提示詞改寫程度:'quality' 最長約 30s,可產生更豐富的提示詞;'balanced' 約一秒返回。選擇 'disabled' 可略過提示詞擴充。

resolution 預設 768P

生成解析度選擇:1080P 需要對原生以 768P 生成的素材進行潛在空間細化,而不是以所選解析度原生生成。

aspect_ratio 預設 16:9

輸出影片的長寬比。

預設 5

要求的長度,以秒為單位;提供 target_audio_url 時最低為 2 s。請預留最多約 0.7 s 的輸出超時。

進階 target_audio_url · seed · enable_safety_checker
拖放檔案,或

可選的替換音訊,透過 HTTP(S) URL 或 base64 data URI 提供;片段長度至少須為 2 秒,且不得大於 15 MB。提供的音訊會以不變的播放速度取代生成的音訊:超出影片長度的部分會從結尾移除,較短的片段則會以靜音補足至影片長度。對於異常高的取樣率,可能會重新取樣為 96 kHz。

隨機生成的種子;省略時會隨機選擇。

POST /run/minimax/h3-max/text-to-video?wait=20 報價 → $0.30
# 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/text-to-video?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",
    "prompt_expansion_mode": "balanced"
  }'

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

關於 MiniMax H3 Max Text to Video

從最多 50000 個字元的文字 `prompt` 生成影片。`aspect_ratio` 可選 21:9、16:9、4:3、1:1、3:4 或 9:16,`resolution` 可選 480P、768P 或 1080P。`duration` 範圍為 0.92 至 15 秒。`target_audio_url` 會將提供的片段固定為配樂,而 `prompt_expansion_mode` 可設定改寫程度。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
≤ 50,000 個字元
用於生成影片的文字指示。
duration選填
類型number
預設值5
0.92 – 15
要求的長度,以秒為單位;提供 target_audio_url 時最低為 2 s。請預留最多約 0.7 s 的輸出超時。
resolution選填
類型enum
預設值768P
480P768P1080P
生成解析度選擇:1080P 需要對原生以 768P 生成的素材進行潛在空間細化,而不是以所選解析度原生生成。
seed選填
類型integer | null
隨機生成的種子;省略時會隨機選擇。
enable_safety_checker選填
類型boolean
預設值true
安全檢查器啟用狀態;true 會啟用檢查。
prompt_expansion_mode必填
類型string
預設值balanced
生成前提示詞改寫程度:'quality' 最長約 30s,可產生更豐富的提示詞;'balanced' 約一秒返回。選擇 'disabled' 可略過提示詞擴充。
target_audio_url選填
類型url · audio
可選的替換音訊,透過 HTTP(S) URL 或 base64 data URI 提供;片段長度至少須為 2 秒,且不得大於 15 MB。提供的音訊會以不變的播放速度取代生成的音訊:超出影片長度的部分會從結尾移除,較短的片段則會以靜音補足至影片長度。對於異常高的取樣率,可能會重新取樣為 96 kHz。
aspect_ratio選填
類型enum
預設值16:9
21:916:94:31:13:49:16
輸出影片的長寬比。
必填

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/h3-max/text-to-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": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "prompt_expansion_mode": "balanced"
  },
  "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
    },
    "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}模型產生的影片。
expanded_prompt
string | null供模型使用的擴充提示詞;若沒有可用的擴充文字則為 null。null 的情況包括停用擴充、擴充後沒有變更,以及由模型託管的 API 內部處理擴充。
timings
object | null以秒表示的時間測量值,僅在回報後端時間的路由上可用;否則為 null。'inference' 項目會測量 DiT 在 GPU 後端上進行去噪所需的時間。

更多模型:文字轉影片

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