MiniMax H3 X API 呼叫參考
2–15秒有聲影片,最高1080p
只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 MiniMax H3 X。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。
參數說明直接取自型號的輸入 schema,目前只有英文。
總覽
- 開發商
- MiniMax
- 產出
- 影片
- 起價
- $0.022 USD 每秒成片
- 一般耗時
- 約 122 秒
價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。
生成影片
minimax/h3-x/text-to-video
價格
| 選項 | USD |
|---|---|
480p | $0.022 每秒成片 |
720p | $0.032 每秒成片 |
1080p | $0.045 每秒成片 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 7000 個字元 | Describe the scene, the action, spoken lines in double quotes, the camera and the sound. Timed shots ("At 5 seconds the shot cuts to…") are followed. |
aspect_ratio選填 | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output aspect ratio. |
resolution選填 | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_seconds選填 | integer | 5 | 2 到 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansion選填 | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 5,
"resolution": "720p"
}
}'回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"照片轉影片
minimax/h3-x/image-to-video
價格
| 選項 | USD |
|---|---|
480p | $0.022 每秒成片 |
720p | $0.032 每秒成片 |
1080p | $0.045 每秒成片 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 7000 個字元 | Describe what happens after the opening frame: the action, spoken lines in double quotes, the camera and the sound. |
image_url必填 | string (uri) | — | — | Opening frame. The clip starts from this image and keeps its shape. |
last_image_url選填 | string (uri) | — | — | Optional closing frame. The clip ends on this image. |
resolution選填 | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_seconds選填 | integer | 5 | 2 到 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansion選填 | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。
範例中的 image_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "720p"
}
}'回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"參考素材生成影片
minimax/h3-x/reference-to-video
價格
| 選項 | USD |
|---|---|
480p | $0.022 每秒成片 |
720p | $0.032 每秒成片 |
1080p | $0.045 每秒成片 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 7000 個字元 | Describe the scene and refer to each reference by type and position: "the woman from Image 1", "the motion of Video 1", "the voice of Audio 1". |
reference_image_urls選填 | array<string (uri)> | — | 最多 9 項 | Up to nine reference images: people, outfits, products or places, in the order your prompt refers to them. The first five are included; each image after the fifth adds a small charge. |
reference_video_urls選填 | array<string (uri)> | — | 最多 2 項 | Up to two reference videos, 15 seconds in total, for a motion or a scene to follow. Their seconds are billed like output seconds. |
reference_audio_urls選填 | array<string (uri)> | — | 最多 3 項 | Up to three reference audio clips for a voice or a sound. The spoken words still go in the prompt. |
aspect_ratio選填 | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output aspect ratio. |
resolution選填 | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_seconds選填 | integer | 5 | 2 到 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansion選填 | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。
範例中的 reference_image_urls 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 5,
"resolution": "720p"
}
}'回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
