minimax-video-h3-lite
MiniMax H3 Lite is the lowest-cost, lowest-latency tier of the MiniMax H3 video generation model. It generates clips of 4 to 15 seconds at 480P or 768P from a text prompt, optionally guided by first / last frames or reference images.
The lowest price across upstreams, for reference. Prices depend on resolution and are listed per upstream below.
| Upstream | Resolution · price | Data policy |
|---|---|---|
lune.ioFrom price | 480p$1.86704 / 1M tokens≈ $0.029873 / s 768p$1.86704 / 1M tokens≈ $0.048543 / s | — |
Routed in real time — you pay the listed price of whichever upstream serves your call. Only the resolutions listed are supported; requests for other sizes are rejected. Prices marked ≈ are estimates — billing follows the tokens the upstream reports. Data policies reflect each upstream's own data terms and its agreement with us. We do not independently audit upstream implementations.
# 1. Submit — returns a task with status "queued"
curl https://api.lune.io/v1/videos \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "minimax/minimax-video-h3-lite", "prompt": "A red fox running through snow", "seconds": "5", "size": "854x480"}'
# 2. Poll until status is completed, failed, cancelled or expired
curl https://api.lune.io/v1/videos/$VIDEO_ID -H "Authorization: Bearer $API_KEY"
# 3. Download before expires_at
curl -o video.mp4 https://api.lune.io/v1/videos/$VIDEO_ID/content -H "Authorization: Bearer $API_KEY"import os, time, requests
base = "https://api.lune.io/v1"
headers = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
task = requests.post(f"{base}/videos", headers=headers, json={
"model": "minimax/minimax-video-h3-lite",
"prompt": "A red fox running through snow",
"seconds": "5",
"size": "854x480",
}).json()
while task["status"] in ("queued", "in_progress"):
time.sleep(10)
task = requests.get(f"{base}/videos/{task['id']}", headers=headers).json()
if task["status"] == "completed":
video = requests.get(f"{base}/videos/{task['id']}/content", headers=headers)
open("video.mp4", "wb").write(video.content)
else:
print(task["status"], task["error"])const base = "https://api.lune.io/v1";
const headers = { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" };
let task = await fetch(`${base}/videos`, {
method: "POST",
headers,
body: JSON.stringify({ model: "minimax/minimax-video-h3-lite", prompt: "A red fox running through snow", seconds: "5", size: "854x480" }),
}).then((r) => r.json());
while (task.status === "queued" || task.status === "in_progress") {
await new Promise((r) => setTimeout(r, 10_000));
task = await fetch(`${base}/videos/${task.id}`, { headers }).then((r) => r.json());
}
if (task.status === "completed") {
const video = await fetch(`${base}/videos/${task.id}/content`, { headers });
await (await import("node:fs/promises")).writeFile("video.mp4", Buffer.from(await video.arrayBuffer()));
} else {
console.log(task.status, task.error);
}package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"time"
)
const base = "https://api.lune.io/v1"
func call(method, path string, body []byte) *http.Response {
req, _ := http.NewRequest(method, base+path, bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
return resp
}
func main() {
var task struct{ ID, Status string; Error any }
body := []byte(`{"model": "minimax/minimax-video-h3-lite", "prompt": "A red fox running through snow", "seconds": "5", "size": "854x480"}`)
json.NewDecoder(call("POST", "/videos", body).Body).Decode(&task)
for task.Status == "queued" || task.Status == "in_progress" {
time.Sleep(10 * time.Second)
json.NewDecoder(call("GET", "/videos/"+task.ID, nil).Body).Decode(&task)
}
if task.Status != "completed" {
fmt.Println(task.Status, task.Error)
return
}
out, _ := os.Create("video.mp4")
io.Copy(out, call("GET", "/videos/"+task.ID+"/content", nil).Body)
}