Retrieve task
Last updated November 23, 2026
Retrieve minimax/minimax-h3-image task status, hosted output URLs, token usage, and actual charge via /v1/tasks/{id}.
Retrieve the status, output image URLs, and billing settlement for a minimax/minimax-h3-image task by ID. Always returns HTTP 200 regardless of completion state; inspect status to determine the task's current phase.
https://gateway.amux.ai/v1/tasks/{id}Authorization
headerAuthorizationstringRequiredBearer <your Amux AI key> Amux AI API key.
Request
idstringRequiredUnique task identifier returned at submission.
Response
200responseCurrent task view; includes usage and cost in terminal states and output.images when succeeded.
404responseTask not found or does not belong to the authenticated workspace.
Polling recommendations
1K and 2K images typically complete in tens of seconds, while complex 4K or batch workloads can take longer (execution ceiling exceeds 600 seconds). Poll every 3–5 seconds after submission, or configure webhook_url to receive terminal push notifications.
Succeeded response example
{
"id": "task_01M8H3IMG00000000000000001",
"status": "succeeded",
"model": "minimax/minimax-h3-image",
"created_at": "2026-11-23T08:00:00Z",
"output": {
"images": [
{
"index": 0,
"url": "https://cdn.amux.ai/gen/20261123/task_01M8H3IMG00000000000000001-0.jpg"
}
],
"videos": []
},
"usage": {
"input_tokens": 3500,
"output_tokens": 4080,
"total_tokens": 7580
},
"cost": "0.023554"
}Outputs and partial batch success
- Generated images are returned in
output.images;output.videosis always an empty array and should not be used to infer task modality. - Hosted image URLs expire periodically (returning
404after expiration); download files promptly for long-term storage. - If a batch task (
n > 1) experiences individual moderation failures while other items succeed,statusis stillsucceeded,output.imagesretains succeeded items with their originalindex, and per-item failure notes appear in top-levelnotes.
Usage and cost
In terminal states, the response includes usage and cost:
usage.input_tokenssums input text tokens (including prompt enhancement expansion) and input reference image tokens.usage.output_tokensreports output image tokens.costreports the actual USD settlement across input text, input image, and output image rates; failed andexpiredtasks report"0"and automatically release any reserved hold.
Errors
Error responses follow the OpenAI error schema. See Errors and retries for type values and retry semantics.
curl https://gateway.amux.ai/v1/tasks/{id} \
-H "Authorization: Bearer $AMUX_API_KEY"{
"id": "task_01M8H3IMG00000000000000001",
"status": "queued",
"model": "minimax/minimax-h3-image",
"created_at": "2026-11-23T08:00:00Z",
"output": {
"images": [
{
"index": 0,
"url": "https://cdn.amux.ai/gen/20261123/task_01M8H3IMG00000000000000001-0.jpg"
}
],
"videos": [
{}
]
},
"usage": {
"input_tokens": 3500,
"output_tokens": 4080,
"total_tokens": 7580
},
"cost": "0.023554",
"notes": [
"dropped seed: MiniMax H3 Image does not support seed"
],
"error": {
"message": "<string>",
"code": "<string>"
}
}