GET /v1/usage for current-month usage and GET /v1/credits for wallet information and rates. Both calls require your API key and do not need a browser session.
Read the usage response
Free and credit-funded accounts have separate charges for session creation, browser time, actions, and traffic. Developer and Team accounts have no per-call wallet debits. Use the rates returned by the API to calculate costs.