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
Avatar creation usage for the current billing cycle
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
- Explorer: 5 concurrent sessions
- Growth: 10 concurrent sessions
- Pro: 20 concurrent sessions
- Enterprise: Custom limits
Avatar Creation Limits
Theavatars object tracks how many custom avatars have been generated this billing cycle using the avatar creator.
used— avatars created so far in the current cyclelimit— the plan’s per-cycle cap (0= not available,null= unlimited)remaining— avatars left to create this cycle (null= unlimited)
| Plan | Avatars per cycle |
|---|---|
| Free | Not available (0) |
| Explorer | 20 |
| Growth | 60 |
| Pro | 180 |
| Enterprise | Unlimited |
Attempting to generate an avatar after reaching your limit returns a
403 error with reason: "limit_reached". Upgrading your plan immediately grants the higher limit for the remainder of the current cycle.