Overview
A Usage object represents the current state of a user’s subscription usage, including minutes consumed, remaining allowances, active sessions, and concurrency limits.Fields
Billing period information
Minutes included in subscription plan
Additional purchased minutes (separate from plan)
Total minutes remaining across all sources (included + purchased)
Array of currently active Session objects. Each session has status
"active" and ended_at set to null.Minutes consumed by currently active sessions (rounded up per session). Included in total usage calculation.
Concurrent session limits and current usage
Current subscription plan details
Example
Usage Summary with Active Sessions
Usage Summary with No Active Sessions
Billing Period Calculation
Paid Plans
- Uses
current_period_startandcurrent_period_endfrom Stripe subscription - Period typically aligns with billing cycle (monthly or annual)
Free Plans
- Uses calendar month: 1st of month to last day of month
- Resets at the start of each calendar month
Minutes Calculation
Included Minutes
- Comes from subscription plan configuration
- Resets at the start of each billing period
- Used first before purchased minutes
Purchased Minutes
- Additional minutes bought outside of subscription
- Do not expire by default (unless marked as bonus minutes)
- Used after included minutes are exhausted
- Deducted when sessions end (FIFO - first purchased, first consumed)
Purchase additional minutes at app.agenthuman.com/settings/billing.
Active Minutes
- Calculated in real-time from currently running sessions
- Rounds up to nearest minute for each session
- Included in total usage calculation
Concurrency Limits
Theconcurrency object tracks concurrent session usage:
- current: Number of sessions currently active (running at the same time)
- max: Maximum allowed concurrent sessions based on your plan
- available: Remaining concurrent session slots you can start (calculated as
max - current)
What are concurrent sessions? Concurrent sessions are sessions that are running at the same time. For example, if your plan allows 3 concurrent sessions, you can have up to 3 active avatar sessions running simultaneously. Once you end a session, that slot becomes available for a new session.
- Free: 1 concurrent session (one active session at a time)
- Starter: 2 concurrent sessions (two active sessions at the same time)
- Pro: 3 concurrent sessions (three active sessions at the same time)
- Enterprise: Custom limits (contact us for higher concurrency needs)