Amux AI

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.

GEThttps://gateway.amux.ai/v1/tasks/{id}

Authorization

header
AuthorizationstringRequired

Bearer <your Amux AI key> Amux AI API key.

Request

idstringRequired

Unique task identifier returned at submission.

Response

200response

Current task view; includes usage and cost in terminal states and output.images when succeeded.

404response

Task 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.videos is always an empty array and should not be used to infer task modality.
  • Hosted image URLs expire periodically (returning 404 after expiration); download files promptly for long-term storage.
  • If a batch task (n > 1) experiences individual moderation failures while other items succeed, status is still succeeded, output.images retains succeeded items with their original index, and per-item failure notes appear in top-level notes.

Usage and cost

In terminal states, the response includes usage and cost:

  • usage.input_tokens sums input text tokens (including prompt enhancement expansion) and input reference image tokens.
  • usage.output_tokens reports output image tokens.
  • cost reports the actual USD settlement across input text, input image, and output image rates; failed and expired tasks 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
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>"
  }
}