Notice: MAI Image 2.7 launch limited-time 20% off, covering the full text-to-image and image editing lineup, try it now
Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
Open navigation

List Stored Outputs

Endpoint: GET /v1/storages

Returns the current account’s stored outputs — temporary and persistent — ordered by creation time, newest first. Deleted outputs are excluded.

Headers

HeaderValueRequiredNotes
AuthorizationBearer YOUR_API_KEYyesAccount API key. Required on every request.

Query parameters

Request example — GET https://api.hiapi.ai/v1/storages?type=all&page=1&size=20

{}
ParameterTypeRequiredDefaultDescription
typestringnoallFilter by tier: temp, persistent, or all. Any other value (e.g. bogus) is not an error — it falls back to all.
pageintno1Page number, >= 1.
sizeintno10Items per page, 1 ≤ size ≤ 100.

Server-side normalization: page below 1 becomes 1; size below 1 becomes 10, and anything above 100 is capped at 100.

Response

{
  "code": 200,
  "message": "success",
  "data": {
    "items": [
      {
        "id": "90217",
        "task_id": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
        "artifact_type": "image",
        "storage_tier": "persistent",
        "cdn_url": "https://<persistent-cdn-domain>/abcd123456/01HZTQ8BX2-0.png",
        "size_bytes": 1843204,
        "duration_seconds": 0,
        "mime_type": "image/png",
        "media_kind": "image",
        "download_filename": "01HZTQ8BX2-0.png",
        "expire_at": 0,
        "promotable": false,
        "created_at": 1777282099,
        "prompt": "a cyan glass data center entrance"
      },
      {
        "id": "90216",
        "task_id": "tk-hiapi-01HZTQ5M0J9W8C2B6N4P1S3D7F",
        "artifact_type": "video",
        "storage_tier": "temporary",
        "cdn_url": "https://cdn.hiapi.ai/abcd123456/01HZTQ5M0J-0.mp4",
        "size_bytes": 8421765,
        "duration_seconds": 5,
        "mime_type": "video/mp4",
        "media_kind": "video",
        "download_filename": "01HZTQ5M0J-0.mp4",
        "expire_at": 1777886899,
        "promotable": true,
        "created_at": 1777282010,
        "prompt": "a cyan glass data center entrance"
      }
    ],
    "total": 42,
    "page": 1,
    "size": 20
  }
}

Item fields

ParameterTypeRequiredDefaultDescription
idstringno—Output id. Use it in promote / delete request arrays.
task_idstringno—The /v1/tasks task that produced this output.
artifact_typestringno—Kind of output, e.g. image, video, audio, first_frame, thumbnail.
storage_tierstringno—temporary or persistent. The storage list only returns these two tiers; static outputs (built-in assets) are not listed. The task detail response calls the same setting storage (temp / persistent / static).
cdn_urlstringno—Public download URL. Temporary and persistent outputs are served from different CDN domains; a promote keeps the path and switches the host. The old temporary URL stops working after the promote — fetch the item again to get the persistent URL.
size_bytesintno—Stored size in bytes. Persistent storage is billed on this.
duration_secondsfloatno—Media duration in seconds for outputs that have one, such as video and audio; 0 for still images.
mime_typestringno—MIME type of the stored file; application/octet-stream when the type is unknown.
media_kindstringno—Coarse presentation bucket: image, video, audio, caption, or file. Caption sidecars (subtitles) report caption.
download_filenamestringno—Suggested filename when saving the file, derived from the stored object key.
expire_atintno—Unix seconds when a temporary output is deleted; 0 for persistent outputs (no expiry).
promotableboolno—Whether this output can be promoted to persistent.
created_atintno—Unix seconds when the output was created.
promptstringno—The prompt of the task that produced this output. Empty for tasks with no text prompt, such as image-to-image edits, upscales, and audio tasks. This is the original user prompt, so treat it as private data — it is only returned for outputs owned by the calling account.

Use id for promote and delete

Pass each output’s id in the promote and delete request arrays.

storage_tier vs storage

The storage list reports the tier as storage_tier with the values temporary / persistent. The task detail response reports the same underlying setting as storage with the values temp / persistent / static; static (built-in assets) only appears there and is never returned by the storage list. Otherwise they describe one state, only the field name and the words differ.