Current usage
GET /usage returns your plan (free or paid) and cost_estimates, the range of internal cost
units for each action.
credits_remaining is kept for compatibility and is always -1. It is not a balance.
period_reset_at is null, because nothing resets.
Usage history
GET /usage/history returns an itemized, newest-first list of the tasks you ran (generate, edit,
fix, re-layout), with the diagram and the surface that ran each one. It supports
pagination and filters (action, source, diagram_id, livemode, from,
to).
Response
source is one of api, sdk-python, sdk-ts, mcp, or web, so you can see where each task
came from. credits_charged and summary.total_credits_charged are kept for compatibility: they
report an internal cost figure, and nothing is billed or deducted.