Query Task
Use `GET /v2/query/video_generation/{task_id}` to query the status and result of a MiniMax-H3 official-format video generation, regeneration, or H3-Context-IR task.
https://zx1.deepwl.net/v2/query/video_generation/{task_id}curl https://zx1.deepwl.net/v2/query/video_generation/426586401755526 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"{
"task": {
"id": "426586401755526",
"model": "MiniMax-H3",
"status": "succeeded",
"created_at": 1785702855,
"updated_at": 1785702884,
"content": {
"prompt": "integrated_multimodal_description: [Shot 1] Cinematic, wide shot with a slow push in on a female captain standing alone at a massive observation window. The last fleet is assembling and jumping away, with bright light flashes and bridge shaking, leaving her behind."
},
"duration": 5,
"usage": {
"total_tokens": 9090,
"prompt_tokens": 5664,
"completion_tokens": 3426
},
"ratio": "16:9",
"task_type": "h3_context_ir",
"modality": "text"
}
}Query the task status and result based on the task_id returned by Create Video (Official Format). Applies to video generation, video regeneration, and H3-Context-IR tasks.
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
AcceptstringResponse content type; may be set to application/json.
Query Parameters
task_idstring必填Task ID, consistent with the task_id returned by the creation endpoint.
Request Examples
Response Examples
Response Fields
taskobjectTask data.
idstringTask ID.
modelstringModel name, e.g. MiniMax-H3.
statusstringTask status: processing (in progress), succeeded (success), failed (failure).
created_atintegerTask creation time, Unix timestamp (seconds).
updated_atintegerTask update time, Unix timestamp (seconds).
contentobjectTask result content, which differs by task type:
h3_context_irtasks:promptis the enhanced multimodal description text- Video generation/regeneration tasks:
urlis a temporary signed link to the generated video (limited validity; download or save it promptly)
durationintegerTarget video duration (seconds).
usageobjectUsage statistics, which differ by task type:
h3_context_irtasks:total_tokens,prompt_tokens,completion_tokens- Video generation/regeneration tasks:
total_seconds,input_seconds,output_seconds,input_image_count
ratiostringAspect ratio, e.g. 16:9; returned for H3-Context-IR tasks.
resolutionstringOutput resolution, e.g. 2K; returned for video generation/regeneration tasks.
task_typestringTask type: h3_context_ir (H3-Context-IR prompt enhancement), generation (video generation).
modalitystringTask modality: text, video.
errorobjectError object (returned only when status=failed), containing message and code.