通过媒体任务接口接入 minimax-h3-max-turbo。 包含请求示例、参数、鉴权和结果处理。
/v1/tasksMODELminimax-h3-max-turbo代码示例与响应
/v1/taskscurl "https://newrouters.com/v1/tasks" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
--data '{
"model": "minimax-h3-max-turbo",
"input": {
"seconds": 5,
"resolution": "480P",
"aspect_ratio": "16:9",
"prompt": "A small red house in a quiet garden"
}
}'const apiBaseUrl = "https://newrouters.com";
const apiKey = process.env.API_KEY;
if (!apiKey) throw new Error("Set API_KEY in your server environment");
const response = await fetch(apiBaseUrl + "/v1/tasks", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer " + apiKey
},
body: JSON.stringify({
"model": "minimax-h3-max-turbo",
"input": {
"seconds": 5,
"resolution": "480P",
"aspect_ratio": "16:9",
"prompt": "A small red house in a quiet garden"
}
})
});
const result = await response.json();
if (!response.ok) throw new Error(JSON.stringify(result));
console.log(result);import json
import os
from urllib.request import Request, urlopen
api_base_url = "https://newrouters.com"
api_key = os.environ["API_KEY"]
body = json.loads("{\"model\":\"minimax-h3-max-turbo\",\"input\":{\"seconds\":5,\"resolution\":\"480P\",\"aspect_ratio\":\"16:9\",\"prompt\":\"A small red house in a quiet garden\"}}")
request = Request(
api_base_url + "/v1/tasks",
data=json.dumps(body).encode("utf-8"),
headers={
"Content-Type": "application/json",
"Authorization": "Bearer " + api_key
},
method="POST",
)
with urlopen(request) as response:
print(json.load(response))平台地址已填入,运行前设置 API_KEY 环境变量。示例不会自动发起请求。
202任务已受理
{
"id": "TASK_ID",
"status": "pending",
"model": "minimax-h3-max-turbo",
"result": null,
"error": null
}200成功结果
{
"id": "TASK_ID",
"status": "succeeded",
"model": "minimax-h3-max-turbo",
"result": {
"assets": [
"https://example.com/output.mp4"
]
},
"error": null
}- 创建任务01
POST /v1/tasks提交 model + input,保存返回的任务 id。
202 · pending - 轮询状态02
GET /v1/tasks/{id}pending / processing 时等待并继续查询。
等待 → 再查询 - 读取终态03
result.assets[] / error按任务终态读取对应结果。
succeeded→ assetsfailed→ error
示例输出
在模型页查看与试用 ↗以下结果均通过本平台 API 实际生成,费用为任务回执中的实扣金额。
提示词与参数
The levitating running shoe slowly rotates a quarter turn while the camera makes a smooth controlled push-in. Rain keeps falling, neon reflections ripple in the puddles below, droplets bead on the sole. One continuous shot, physically plausible motion, no cuts, no text.
seconds: 6 · resolution: 768P · aspect_ratio: 16:9提示词与参数
A hand enters from the right and slowly pours steamed milk from a small steel pitcher into the cup, drawing a rosetta latte art pattern; the hand withdraws and steam gently rises. Static camera, soft morning light, realistic liquid motion, no cuts, no text.
seconds: 6 · resolution: 768P · aspect_ratio: 16:9提示词与参数
Macro slow-motion shot of drops of deep blue, gold and magenta ink falling into clear water and blooming into swirling, billowing clouds that slowly intertwine against a pure black background. Smooth graceful motion, high contrast, crisp detail, one continuous shot, no text.
seconds: 6 · resolution: 480P · aspect_ratio: 16:9提示词与参数
Pulses of warm golden light travel steadily along the glowing routes from the outer districts toward the bright central plaza, and fine white signals flow back outward, like traffic being routed through one hub. City lights twinkle softly, thin haze drifts slowly, the central plaza breathes with a gentle glow. The camera holds an almost locked-off aerial view with an imperceptibly slow drift. The clip must loop seamlessly: it starts and ends on exactly the same composition, with no cuts, no text, no camera shake and no sudden flashes.
seconds: 10 · resolution: 768P · aspect_ratio: 16:9API 模型 ID 为 minimax-h3-max-turbo。本文说明平台的实际契约,调用前请核对实时目录中的可用性。
平台地址在构建时填入,运行前设置 API_KEY 为服务端密钥。
curl "https://newrouters.com/v1/tasks" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $API_KEY" \ --data '{ "model": "minimax-h3-max-turbo", "input": { "seconds": 5, "resolution": "480P", "aspect_ratio": "16:9", "prompt": "A small red house in a quiet garden" }}'创建响应表示任务已受理,不是最终结果。用返回的 ID 替换 TASK_ID,轮询至 succeeded 或 failed。
curl "https://newrouters.com/v1/tasks/TASK_ID" \ -H "Authorization: Bearer $API_KEY"成功查看 result,失败查看 error。上游结果未知时保留原任务 ID,不盲目重复提交付费生成。
| 字段 | 类型 | 要求 | 默认值 | 限制 |
|---|---|---|---|---|
prompt | string | 必填 | — | 最大长度 50000 |
seconds | integer | 可选 | 5 | min 5; max 15 |
resolution | enum | 可选 | "480P" | 480P, 768P |
aspect_ratio | enum | 可选 | "16:9" | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
frames_images | array | 可选 | — | 最多项数 2 |
官方来源与模型身份
Section titled “官方来源与模型身份”核对日期: 2026-09-27 · 平台模型: minimax-h3-max-turbo · 官方对应: minimax/h3-max-turbo
接入时核对当前可用性、契约和账号价格。排错时保留请求 ID 与消费凭据。 完整 API 参考