Credit Balance

Get the account's current API credit balance

GET /api/usage/credits/

Free

What it returns

Your account's current API credit balance plus the plan and billing context that puts the number in context — credits_used, credits_remaining, total_credits, usage_percentage, current plan_name and subscription_status, and the renewal_date when the allowance resets. Sourced from your subscription record and live credit-usage counters; no third-party data providers involved.

When to use it

Pricing

Free. This endpoint costs 0 credits per call. Safe to poll on every page load.

Errors

StatusMeaning
401Missing or invalid API key.
403API key valid but account is suspended.

FAQ

Why is credits_remaining null?

Your plan is unlimited or a custom plan with no fixed per-period cap. The other balance fields are also null in that case. credits_used is always populated.

When does the balance reset?

At renewal_date. For monthly plans, that's the Stripe billing-period end. For yearly plans, the credit allowance resets monthly even though the subscription itself renews yearly — renewal_date is the next monthly reset, not the yearly one.

What if the user has no subscription at all?

plan_name, total_credits, and most other fields are null. credits_used is still populated (any credits consumed outside a subscription period are reported). subscription_status is an empty string.

Responses

Response fields

FieldTypeExample
credits_remainingnumber250
credits_usednumber250
total_creditsnumber500
usage_percentagenumber50
plan_namestringProfessional
subscription_statusstringactive
renewal_datestring2026-07-01T00:00:00+00:00
billing_period_startstring2026-06-01T00:00:00+00:00

Sample response

{
  "credits_remaining": 250,
  "credits_used": 250,
  "total_credits": 500,
  "usage_percentage": 50,
  "plan_name": "Professional",
  "subscription_status": "active",
  "renewal_date": "2026-07-01T00:00:00+00:00",
  "billing_period_start": "2026-06-01T00:00:00+00:00"
}

Use it through the MCP

Connect the Homesage.ai MCP to Claude, ChatGPT or Cursor, and your assistant calls this as the get_credit_balance tool. Set up the MCP.