API ReferenceVideoMiniMax H3
Query a Task
Query the status and result of a MiniMax H3 V2 video generation task.
Query a video generation task by ID. The ID must be the public BeLive Studio task_id returned by the create endpoint; the gateway maps it to the upstream MiniMax task internally.
Request
| Item | Value |
|---|---|
| Method | GET |
| URL | https://api.tokenhub.belivestudios.com/v2/query/video_generation/{task_id} |
| Path parameter | task_id: ID returned by the create endpoint |
| Authentication | Authorization: Bearer sk-your-belive-studios-key |
curl "https://api.tokenhub.belivestudios.com/v2/query/video_generation/task_01JZ3Q7M7Y7X5Y6R8K9P" \
-H "Authorization: Bearer sk-your-belive-studios-key"Tasks are retained for 7 days based on UTC time. Video URLs are temporary; download or transfer them after a successful response.
Response
In progress
{
"task": {
"id": "task_01JZ3Q7M7Y7X5Y6R8K9P",
"model": "MiniMax-H3",
"status": "running",
"created_at": 1785125529,
"updated_at": 1785125600,
"resolution": "2K",
"duration": 5,
"ratio": "16:9",
"task_type": "generation",
"modality": "video"
}
}Succeeded
{
"task": {
"id": "task_01JZ3Q7M7Y7X5Y6R8K9P",
"model": "MiniMax-H3",
"status": "succeeded",
"created_at": 1785125529,
"updated_at": 1785125946,
"content": {"url": "https://cdn.example.com/h3-generated.mp4"},
"resolution": "2K",
"duration": 5,
"usage": {
"total_seconds": 5,
"input_seconds": 0,
"output_seconds": 5,
"input_image_count": 0,
"total_tokens": 273890,
"prompt_tokens": 13500,
"completion_tokens": 260390
},
"ratio": "16:9",
"task_type": "generation",
"modality": "video"
}
}Failed or cancelled
{
"task": {
"id": "task_01JZ3Q7M7Y7X5Y6R8K9P",
"model": "MiniMax-H3",
"status": "failed",
"error": {"code": "1026", "message": "video description contains sensitive content"},
"task_type": "generation",
"modality": "video"
}
}task fields
| Field | Type | Description |
|---|---|---|
id | string | Public BeLive Studio task ID. |
model | string | Model used for the task, such as MiniMax-H3. |
status | string | queued, running, succeeded, failed, or cancelled. |
created_at / updated_at | integer | Unix timestamp in seconds. |
content.url | string | Temporary video download URL, returned for successful video tasks. |
resolution | string | Output resolution. |
duration | integer | Output duration in seconds. |
ratio | string | Output aspect ratio; use this field when the input ratio was adaptive. |
task_type | string | generation for this create endpoint; the official API may also return regeneration or h3_context_ir. |
modality | string | video for video tasks. |
error | object | Failure or cancellation details with code and message. |
usage fields
| Field | Description |
|---|---|
total_seconds | Total metered seconds, usually input plus output seconds. |
input_seconds | Reference video input seconds. |
output_seconds | Output video seconds. |
input_image_count | Number of input images, including first frame, last frame, and reference images. |
input_audio_seconds | Reference audio input seconds; may be omitted when no reference audio is used. |
total_tokens | Total token count. |
prompt_tokens | Input token count. |
completion_tokens | Output token count. |
Polling guidance
Poll every 3–10 seconds. Continue polling for queued or running; download content.url on succeeded; stop and read error.message on failed or cancelled.
Common errors
| HTTP status | Meaning |
|---|---|
400 | Missing/invalid task_id, task not found, or task is outside the 7-day query window. |
401 | Missing or invalid Authorization. |
429 | Query request was rate limited. |
500 | Upstream or gateway internal error. |