- Usage headers on every job you create and poll. They cost no extra request.
- Account endpoints under
/api/v2/accountfor balance, limits, usage, ledger, and plan.
x-api-key as your jobs.
Usage headers
On job creation
POST /api/v2/jobs responses report your headroom after this request:
429 carries no X-Credits-Remaining. The concurrency figures are advisory: parallel requests can see the same headroom.
On polls
GET /api/v2/jobs/{jobId} and the CSV export report that job’s own credits:
Both headers also appear on the
404 of a job whose results expired. That 404 shows the charge that stands.
Account overview
GET /api/v2/account returns the source/operation pairs you can use, your balance, and your current headroom:
limits.daily is null when no daily limit applies. Check remaining before you submit a large batch.
Usage per month
GET /api/v2/account/usage aggregates one calendar month (UTC). Pass period=YYYY-MM for a past month; the default is the current month:
creditscomes from your credit ledger. It is the figure you are billed on.totals,by_day, andby_endpointcome from your jobs.unsettledcounts queries in jobs never polled to completion. Their outcome is unknown.- For the current month,
credits.remainingis your spendable balance now. For a past month, it is what that month’s grants still held when they expired.
GET /api/v2/account/usage/periods lists every month since your account was created.
Credits and ledger
GET /api/v2/account/credits returns your balance, the grants it consists of, and every credit movement, newest first:
amount is always positive; type (grant, debit, refund) gives the direction. Page with limit (1–200) and cursor.
Billing
GET /api/v2/account/billing returns your plan as managed in the dashboard:
subscriptionisnullwithout an active plan, including enterprise contracts.low_creditsistruewhen less than 20% of your allowance remains.pending_paymentistruewhile a payment is open or has failed.
Job history
GET /api/v2/jobs lists your jobs with what each was billed and refunded. See List your jobs.