---
title: "Get an AIHubMix image task"
method: GET
path: "/ai/v1/images/{id}"
tags: ["AIHubMix Unified API"]
---

# Get an AIHubMix image task

`GET /ai/v1/images/{id}`

## Request

- Base URL: `https://aihubmix.com`
- URL: `https://aihubmix.com/ai/v1/images/{id}`
- Auth: HTTP bearer

Returns the latest state of an image task. Poll this endpoint for asynchronous image generation.

## Path parameters

- `id` string, required

## Response `200`

Image task

- AIHubMixMediaTask
  - `id` string, required: Platform task ID.
  - `object` 'image' | 'video', required
  - `model` string, required
  - `status` 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled', required: Current task state. Completed, failed, and cancelled are terminal states.
  - `output` AIHubMixTaskArtifact[], required
    - `index` integer, required: Zero-based result order.
    - `result_id` string, nullable: Result ID exposed by unified task snapshots. Media task objects may omit it.
    - `type` 'file', required
    - `content_type` string, nullable
    - `content_url` string, nullable: Authenticated result download URL.
    - `b64_json` string, nullable: Base64-encoded image result when requested.
  - `error` AIHubMixTaskError, nullable, required
    - `code` string, required: Stable task error code.
    - `message` string, required: Human-readable error message.
    - `upstream_detail` unknown
  - `created_at` integer, required: Unix timestamp in seconds.
  - `completed_at` integer, nullable, required
  - `expires_at` integer, nullable, required: Artifact expiry time in Unix seconds; may be null before completion.

## Other responses

- `default`: AIHubMix task, validation, authentication, routing, artifact, or upstream error.

## Changes

- **2026-11-03** `0dfd8d5c3b27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/aihubmix/apis/aihubmix-gateway-api/changes/ai/v1/images/:id/get.md)

---

[API](https://skmtc.dev/aihubmix/apis/aihubmix-gateway-api.md) - [All operations](https://skmtc.dev/aihubmix/apis/aihubmix-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aihubmix/apis/aihubmix-gateway-api/revisions/0dfd8d5c3b27?raw)
