MiniMax-H3 官方格式查询任务
curl --request GET \
--url https://zx1.deepwl.net/v1/video/generations/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://zx1.deepwl.net/v1/video/generations/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zx1.deepwl.net/v1/video/generations/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zx1.deepwl.net/v1/video/generations/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://zx1.deepwl.net/v1/video/generations/{task_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zx1.deepwl.net/v1/video/generations/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://zx1.deepwl.net/v1/video/generations/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "IN_PROGRESS",
"progress": "50%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 0,
"data": {
"status": "running",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "SUCCESS",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125946,
"data": {
"status": "succeeded",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {
"video_url": "https://your-cdn.example.com/h3-generated-2k-output.mp4"
},
"usage": {
"total_seconds": 5,
"input_seconds": 0,
"output_seconds": 5,
"input_image_count": 1,
"input_audio_seconds": 6,
"total_tokens": 273890,
"prompt_tokens": 13500,
"completion_tokens": 260390
}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "FAILURE",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125800,
"fail_reason": "video description contains sensitive content (1026)",
"data": {
"status": "failed",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"error": {
"code": "NotFound",
"message": "task not found",
"type": "new_api_error"
}
}
官方格式
MiniMax-H3 官方格式查询任务
使用 GET /v1/video/generations/{task_id} 查询 MiniMax-H3 官方格式视频任务状态与结果。
GET
https://zx1.deepwl.net
/
v1
/
video
/
generations
/
{task_id}
MiniMax-H3 官方格式查询任务
curl --request GET \
--url https://zx1.deepwl.net/v1/video/generations/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://zx1.deepwl.net/v1/video/generations/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zx1.deepwl.net/v1/video/generations/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zx1.deepwl.net/v1/video/generations/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://zx1.deepwl.net/v1/video/generations/{task_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zx1.deepwl.net/v1/video/generations/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://zx1.deepwl.net/v1/video/generations/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "IN_PROGRESS",
"progress": "50%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 0,
"data": {
"status": "running",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "SUCCESS",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125946,
"data": {
"status": "succeeded",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {
"video_url": "https://your-cdn.example.com/h3-generated-2k-output.mp4"
},
"usage": {
"total_seconds": 5,
"input_seconds": 0,
"output_seconds": 5,
"input_image_count": 1,
"input_audio_seconds": 6,
"total_tokens": 273890,
"prompt_tokens": 13500,
"completion_tokens": 260390
}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "FAILURE",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125800,
"fail_reason": "video description contains sensitive content (1026)",
"data": {
"status": "failed",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"error": {
"code": "NotFound",
"message": "task not found",
"type": "new_api_error"
}
}
MiniMax-H3 官方格式查询任务
根据 创建视频(官方格式) 返回的task_id 查询任务状态、进度与结果视频地址。
方法与路径
GET /v1/video/generations/{task_id}
请求示例
curl https://zx1.deepwl.net/v1/video/generations/424010985738629 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
import requests
resp = requests.get(
"https://zx1.deepwl.net/v1/video/generations/424010985738629",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
timeout=30,
)
print(resp.json())
响应示例
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "IN_PROGRESS",
"progress": "50%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 0,
"data": {
"status": "running",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "SUCCESS",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125946,
"data": {
"status": "succeeded",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {
"video_url": "https://your-cdn.example.com/h3-generated-2k-output.mp4"
},
"usage": {
"total_seconds": 5,
"input_seconds": 0,
"output_seconds": 5,
"input_image_count": 1,
"input_audio_seconds": 6,
"total_tokens": 273890,
"prompt_tokens": 13500,
"completion_tokens": 260390
}
}
}
}
{
"code": "success",
"data": {
"task_id": "424010985738629",
"status": "FAILURE",
"progress": "100%",
"submit_time": 1785125529,
"start_time": 1785125530,
"finish_time": 1785125800,
"fail_reason": "video description contains sensitive content (1026)",
"data": {
"status": "failed",
"duration": 5,
"resolution": "2K",
"ratio": "16:9",
"content": {},
"usage": {}
}
}
}
{
"error": {
"code": "NotFound",
"message": "task not found",
"type": "new_api_error"
}
}
认证
Authorization: Bearer YOUR_API_KEY
Path Parameters
string
必填
视频生成任务 ID,与创建接口返回的
task_id 一致。Response
string
响应码,成功时为
success。string
任务 ID。
string
网关任务状态:
SUBMITTED(已提交)、IN_PROGRESS(生成中)、SUCCESS(成功)、FAILURE(失败)。string
进度字符串,例如
50%、100%。integer
任务提交时间,Unix 时间戳(秒)。
integer
任务开始时间,Unix 时间戳(秒)。
integer
任务结束时间,Unix 时间戳(秒);未结束时为
0。string
失败原因,仅
status=FAILURE 时出现。string
上游原生状态:
queued(排队中)、running(运行中)、succeeded(成功)、failed(失败)、cancelled(已取消)。integer
生成视频时长(秒)。
string
输出分辨率,如
2K。string
画面比例,如
16:9。string
生成的视频 URL(限时有效的临时签名链接,请及时下载或转存)。
object
用量统计。包含
total_seconds(总时长)、input_seconds(输入时长)、output_seconds(输出时长)、input_image_count(输入图片数)、input_audio_seconds(输入音频时长)、total_tokens、prompt_tokens、completion_tokens。object
错误对象(仅在请求失败时返回),包含
code、message 与 type。相关接口
⌘I