MiniMax Task Query
Use `GET /v1/videos/{task_id}` to query MiniMax video task status and results.
https://zx1.deepwl.net/v1/videos/{task_id}curl https://zx1.deepwl.net/v1/videos/task_a1b2c3d4e5f6 \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "task_a1b2c3d4e5f6",
"object": "video",
"model": "MiniMax-H3",
"status": "completed",
"progress": 100,
"created_at": 1785125529,
"completed_at": 1785125946,
"seconds": "5",
"size": "2K",
"video_url": "https://cdn.example.com/h3-generated-2k-output.mp4",
"metadata": {
"url": "https://cdn.example.com/h3-generated-2k-output.mp4",
"ratio": "16:9"
}
}OpenAI-format query entry point that looks up the status of a video generation or regeneration task by task ID. If the task was submitted via POST /v1/video/create, please use Query Task.
Once the task succeeds (status=completed), the asset URL is available in the video_url field.
Status transitions
| status | Meaning | progress |
|---|---|---|
queued | Queued | 10 |
in_progress | Generating | 50 |
completed | Succeeded | 100 |
failed | Failed or cancelled | 100 |
- Recommended polling interval: 5–10 seconds.
- Upstream only retains task records for the last 7 days; task IDs beyond the window will fail to query.
- Video download links expire; download or store them promptly.
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Request Parameters
task_idstring必填Task ID (the id returned by the creation API).
Request Example
Response Example
Response Fields
idstringTask ID. Gateway public ID, does not expose the upstream identifier.
task_idstringTask ID (legacy compatibility field, to be deprecated; same value as id). Use id for new integrations.
objectstringAlways video.
modelstringThe model used by the task.
statusstringTask status: queued / in_progress / completed / failed.
progressintegerTask progress percentage, 0–100.
created_atintegerTask creation time (Unix timestamp, seconds).
completed_atintegerTask completion time (Unix timestamp, seconds). Returned after completion.
expires_atintegerAsset expiration time (Unix timestamp, seconds).
secondsstringAsset duration in seconds, as a string.
sizestringAsset resolution.
video_urlstringTime-limited download URL of the video asset. Returned after the task succeeds; download or store it promptly.
metadataobjectExtended info. After success, contains url (same as video_url) and ratio (actual aspect ratio).
errorobjectError info on failure, including upstream code and message.
Error Codes
| Status Code | Description |
|---|---|
| 400 | Task not found or beyond the 7-day query window |
| 401 | Authentication failed |
| 500 | Internal server error |