MiniMax H3
MiniMax/MiniMax-H3
MiniMaxText → videoRESTAsync task
Price$0.072 /seclowest tier
EndpointPOST /v2/video/minimax-h3/generate REST
Quick start
This model runs asynchronously: the request returns a task ID, and you poll
GET /v2/tasks/{task_id} or receive a webhook when the result is ready.curl -X POST https://api.widelabs.tr/v2/video/minimax-h3/generate \ -H "Authorization: Bearer $WIDELABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "Cinematic teaser: a lighthouse keeper in a yellow raincoat climbs the last steps of a spiral staircase during a night storm, lantern in hand. At the top she pulls a lever and the great lamp ignites, its beam sweeping across towering waves crashing on the rocks below. Sound: thunder, rain lashing the glass, a rising orchestral swell.", "resolution": "2K", "duration": 5, "ratio": "16:9" }'
import os
import requests
resp = requests.post(
"https://api.widelabs.tr/v2/video/minimax-h3/generate",
headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
json={
"prompt": "Cinematic teaser: a lighthouse keeper in a yellow raincoat climbs the last steps of a spiral staircase during a night storm, lantern in hand. At the top she pulls a lever and the great lamp ignites, its beam sweeping across towering waves crashing on the rocks below. Sound: thunder, rain lashing the glass, a rising orchestral swell.",
"resolution": "2K",
"duration": 5,
"ratio": "16:9"
},
)
resp.raise_for_status()
# Video jobs are asynchronous: poll the task until it finishes.
import time
task = resp.json()
while task.get("status") not in ("completed", "failed"):
time.sleep(5)
task = requests.get("https://api.widelabs.tr/v2/tasks/" + task["task_id"], params={"wait": 30}).json()
print(task.get("result"))
const resp = await fetch("https://api.widelabs.tr/v2/video/minimax-h3/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "Cinematic teaser: a lighthouse keeper in a yellow raincoat climbs the last steps of a spiral staircase during a night storm, lantern in hand. At the top she pulls a lever and the great lamp ignites, its beam sweeping across towering waves crashing on the rocks below. Sound: thunder, rain lashing the glass, a rising orchestral swell.", resolution: "2K", duration: 5, ratio: "16:9" }), }); let task = await resp.json(); // Video jobs are asynchronous: poll the task until it finishes. while (!["completed", "failed"].includes(task.status)) { await new Promise(r => setTimeout(r, 5000)); task = await (await fetch(`https://api.widelabs.tr/v2/tasks/${task.task_id}?wait=30`)).json(); } console.log(task.result);
Parameters
| Name | Type | Description |
|---|---|---|
store_output | "provider" | "wl1d" | "wl7d" | "wl30d" default "provider" | Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,… |
prompt required | string | Text description of the video (required, max 7000 characters). In reference mode, refer to inputs as 'reference image 1', 'reference audio 1', ... |
resolution | "768P" | "2K" default "768P" | Output resolution: 768P or 2K. Priced per second by resolution. |
duration | integer default 5 | Video duration in seconds (4-15) |
ratio | "16:9" | "21:9" | "4:3" | "1:1" | "3:4" | "9:16" | "adaptive" default "16:9" | Aspect ratio. Text-to-video needs a concrete ratio (adaptive is rejected); image-to-video always follows the input image (ratio ignored); reference-to-video may use adaptive. |
first_frame_url | string | URL or base64 data URI of the first frame image (image-to-video; JPG/PNG/WEBP/HEIC/HEIF, each side 256-5760 px, width/height 0.4-2.5, max 30MB). Cannot be combined with reference inputs. |
last_frame_url | string | URL or base64 data URI of the last frame image (image-to-video; may be used alone or together with first_frame_url). Cannot be combined with reference inputs. |
reference_image_urls | string[] | Reference image URLs or base64 data URIs (1-5; reference-to-video, e.g. a character, object or scene to keep). Cannot be combined with first_frame_url/last_frame_url. |
reference_audio_urls | string[] | Reference audio URLs or base64 data URIs (1-3 clips, WAV/MP3, each 2-15 s, 15 s in total, max 15MB each; reference-to-video, e.g. a voice or soundscape to follow). Cannot be combined with first_frame_url/last_frame_url. |
webhook_url | string | HTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification. |
Related
Similar models
MiniMax
MiniMax H3 V2V
MiniMax/MiniMax-H3-V2V
Video → videoAsync task
From$0.17
per sec
KlingNew
Kling v4
KlingTeam/v4
Text → videoAsync task
From$0.16
per sec
ByteDanceNew
Seedance 2.5
ByteDance/doubao-seedance-2-5-260628
Text → videoAsync task
Price$10.90
per 1M video tokens
Google
Veo 3.1 Fast
google/veo-3.1-fast-generate-preview
Text → videoAsync task
From$0.15
per sec
Start building on Wide Labs Compute
Create an account, add credit and send your first request with the SDK you already use.