Billing
Get credit usage summary
GET
Returns the total number of credits used between start_date and end_date,
with a breakdown by job type and time bucket (day, week, or month).
token_authheader
AuthorizationBearer <token>Token-based authentication using access tokens.
start_date?Start DateStarting datetime (UTC) in ISO 8601 format.
end_date?End DateEnding datetime (UTC) in ISO 8601 format.
resolution?ResolutionTime resolution for credit aggregation.
Default
"day"Value in
"day""week""month"Successful Response
application/json- response
total_credits*Total CreditsTotal credits used across all jobs in the period.
summary*array<>Breakdown of credits used by job type.
curl -X GET "https://example.com/billing/credits"{ "total_credits": 0, "summary": [ { "period_start": "string", "period_end": "string", "job_type": "string", "total_credits": 0, "job_count": 0, "image_count": 0 } ]}