공지: MAI Image 2.7 출시 기념 한정 20% 할인, 텍스트 투 이미지와 이미지 편집 전 라인업 참여, 지금 체험하기
공지: 2026 블랙프라이데이 × 사이버먼데이: 충전 시 최대 30% 추가 지급, DeepSeek 무료 사용 · 이벤트 보기
내비게이션 열기

저장된 출력 목록 조회

엔드포인트: GET /v1/storages

현재 계정의 저장된 출력(임시 및 영구)을 생성 시간 기준 최신순으로 반환합니다. 삭제된 출력은 제외됩니다.

헤더

HeaderValueRequiredNotes
AuthorizationBearer YOUR_API_KEYyes계정 API 키. 모든 요청에 필요합니다.

쿼리 파라미터

요청 예시 — GET https://api.hiapi.ai/v1/storages?type=all&page=1&size=20

{}
ParameterTypeRequiredDefaultDescription
typestringnoall등급으로 필터링: temp, persistent 또는 all. 그 외 값(예: bogus)은 오류가 아니며 all로 대체됩니다.
pageintno1페이지 번호, >= 1.
sizeintno10페이지당 항목 수, 1 ≤ size ≤ 100.

서버 측 정규화: page가 1 미만이면 1이 되고, size가 1 미만이면 10이 되며, 100을 초과하는 값은 100으로 제한됩니다.

응답

{
  "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
  }
}

항목 필드

ParameterTypeRequiredDefaultDescription
idstringno—출력 id. promote / delete 요청 배열에서 사용합니다.
task_idstringno—이 출력을 생성한 /v1/tasks task.
artifact_typestringno—출력 종류, 예: image, video, audio, first_frame, thumbnail.
storage_tierstringno—temporary 또는 persistent. 저장소 목록은 이 두 등급만 반환하며, 정적 출력(내장 asset)은 나열되지 않습니다. task 상세 응답에서는 동일한 설정을 storage(temp / persistent / static)라고 부릅니다.
cdn_urlstringno—공개 다운로드 URL. 임시 출력과 영구 출력은 서로 다른 CDN 도메인에서 제공되며, promote를 하면 경로는 유지되고 호스트만 전환됩니다. promote 후에는 기존 임시 URL이 작동하지 않으므로, 항목을 다시 조회하여 영구 URL을 받아야 합니다.
size_bytesintno—저장된 크기(바이트). 영구 저장소는 이 값을 기준으로 과금됩니다.
duration_secondsfloatno—video, audio처럼 길이가 있는 출력의 미디어 길이(초). 정지 이미지는 0입니다.
mime_typestringno—저장된 파일의 MIME 타입. 타입을 알 수 없으면 application/octet-stream입니다.
media_kindstringno—대략적인 표시 분류: image, video, audio, caption 또는 file. 캡션 사이드카(자막)는 caption으로 보고됩니다.
download_filenamestringno—파일 저장 시 제안되는 파일명으로, 저장된 객체 키에서 파생됩니다.
expire_atintno—임시 출력이 삭제되는 Unix 초. 영구 출력은 0(만료 없음)입니다.
promotableboolno—이 출력을 persistent로 promote할 수 있는지 여부.
created_atintno—출력이 생성된 Unix 초.
promptstringno—이 출력을 생성한 task의 prompt. image-to-image 편집, 업스케일, audio task처럼 텍스트 prompt가 없는 task에서는 비어 있습니다. 원본 사용자 prompt이므로 비공개 데이터로 취급해야 하며, 호출 계정이 소유한 출력에 대해서만 반환됩니다.

promote와 delete에는 id 사용

각 출력의 id를 promote 및 delete 요청 배열에 전달하세요.

storage_tier vs storage

저장소 목록은 등급을 storage_tier로 보고하며 값은 temporary / persistent입니다. task 상세 응답은 동일한 기저 설정을 storage로 보고하며 값은 temp / persistent / static입니다. static(내장 asset)은 해당 응답에만 나타나며 저장소 목록에서는 절대 반환되지 않습니다. 그 외에는 동일한 하나의 상태를 설명하며, 필드 이름과 단어만 다릅니다.