메인 콘텐츠로 건너뛰기
GET
Get credit balance
조회에는 크레딧이 들지 않으므로 배치를 보내기 전마다 확인해도 됩니다. remaining에는 대기 중이거나 실행 중인 태스크가 보류한 크레딧이 이미 빠져 있습니다. 각 필드의 뜻은 크레딧과 한도에 있습니다.

인증

Authorization
string
header
필수

Your API key, sent as Authorization: Bearer <key>.

응답

Your account's credits.

success
boolean
필수
remaining
number
필수

Credits you can spend now, with up to two decimals. Tasks you already submitted hold their price in reserved, so it is not in this number. A submit that needs more returns 402 INSUFFICIENT_CREDITS.

perCycle
number | null
필수

Credits your plan grants each billing cycle. null without an active plan.

cycleResetsAt
string<date-time> | null
필수

When the current billing cycle ends. At renewal your balance becomes the next cycle's plan credits plus the top-up credits you still hold. null without an active plan.

reserved
number
필수

Credits your queued and running tasks hold. A completed task is charged from its hold, and a failed task's hold returns to remaining.

plan
enum<string>
필수

Your plan. free when no paid plan is active.

사용 가능한 옵션:
free,
basic,
pro,
scale,
max
topUpBalance
object | null
필수

Top-up credits within remaining. They last three months from purchase, carry over renewals, and are spent after your plan's credits. null when you have none.