Amux

Get task

Last updated September 13, 2026

Retrieve a `x-ai/grok-imagine-video-1.5` task in the unified shape, including the amount charged.

Retrieve a x-ai/grok-imagine-video-1.5 task. This is the site's unified retrieval endpoint; image and video tasks share one shape.

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

Authorization

header
AuthorizationstringRequired

Bearer <your Amux key> An API key issued by this site.

Request

idstringRequired

The Amux task id returned at submit time.

Response

200response

Returns 200 whether or not the task has finished; the state is in status.

404response

No such task exists in the current workspace.

Key fields

FieldMeaning
output.videos[].urlArtifact address on this site's storage, not the upstream's temporary one
usage.output_video_secondsActual output seconds; the billing quantity
costAmount actually charged, in USD. 0 for failed and expired tasks
notesWhat this site did to the request; present only when something was done

⚠️ output.images is always an empty array but the field is always present — it is retained for existing image-task clients.

Relationship to the xAI-shaped retrieval

Both read the same task. The xAI-shaped one renders the official field names but does not return cost; use this endpoint when you need it.

cURL
curl https://gateway.amux.ai/v1/tasks/{id} \
  -H "Authorization: Bearer $AMUX_API_KEY"
{
  "id": "task_01M2D8FH1TKGP6VJJX1X3SYY7Q",
  "status": "queued",
  "model": "x-ai/grok-imagine-video-1.5",
  "created_at": "<string>",
  "output": {
    "images": [
      {}
    ],
    "videos": [
      {
        "index": 0,
        "url": "<string>"
      }
    ]
  },
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0,
    "total_tokens": 0,
    "output_video_seconds": 0
  },
  "cost": "0.08",
  "notes": [
    "<string>"
  ],
  "error": {
    "message": "<string>",
    "code": "<string>"
  }
}