계정
사용량 조회
지정된 기간의 지출/요청 수/토큰 합계를 모델별, API 키별, 앱 이름별 세 가지 차원으로 나누어 반환하고, 일별 시계열도 포함합니다. /v1/insights와 달리 이 엔드포인트에는 상위 모델 순위, 캐시 통계, 연간 히트맵이 없습니다 — 더 가벼운 집계 엔드포인트이며 사용자 지정 날짜 범위(period=custom)를 지원합니다.
GET
/api/v1/usage인증
Authorization필수string · header
Authorization 헤더에 Bearer 토큰으로 API 키를 전달합니다.
쿼리 파라미터
periodstring
시간 범위, 기본값은 month. 세 가지 종류: 레거시 달력 용어(day/week/month/year), 현재를 끝점으로 하는 롤링 윈도우(15m…1y), 달력 정렬 윈도우(today…prev_year), 또는 custom(from/to 필요). 인식할 수 없는 값은 400을 반환합니다.
dayweekmonthyear15m30m1h3h1d2d1w1mo1ytodayyesterdaythis_weekprev_weekthis_monthprev_monththis_yearprev_yearcustomExample:
"month"fromstring
사용자 지정 기간의 시작(ISO 8601). period=custom일 때만 사용됩니다.
ISO 8601, required with period=custom
Example:
"2026-07-01T00:00:00.000Z"tostring
사용자 지정 기간의 끝(ISO 8601). period=custom일 때만 사용됩니다.
ISO 8601, required with period=custom
Example:
"2026-07-27T00:00:00.000Z"응답 예시