Get group usage breakdown by member
Returns credit usage for a group with per-member breakdown. Only accessible to group owners and admins.
token_authAuthorizationBearer <token>Token-based authentication using access tokens.
group_name*stringstart_date?|Start of period (ISO 8601 UTC). Defaults to first day of current month.
nullend_date?|End of period (ISO 8601 UTC, exclusive). Defaults to now.
nullresolution?ResolutionTime resolution for credit aggregation.
"day""day""week""month"breakdown?BreakdownControls the summary breakdown axis. 'job_type' (default) buckets by job type, 'user' buckets by group member.
"job_type""job_type""user"Successful Response
application/json- response
group_name*Group NameName of the group.
member_count*Member CountNumber of members in the group.
period_start*Period StartStart of the queried period (ISO 8601 UTC).
period_end*Period EndEnd of the queried period (ISO 8601 UTC).
total_credits*Total CreditsTotal credits used by all group members in the period.
summary*array<>Time-bucketed breakdown of credits used by job type.
summary_by_user?array<>|Time-bucketed breakdown of credits used by member. Only present when breakdown=user.
nullmembers*array<>Per-member credit usage totals, sorted by highest usage.
curl -X GET "https://example.com/billing/usage/string"{ "group_name": "string", "member_count": 0, "period_start": "string", "period_end": "string", "total_credits": 0, "summary": [ { "period_start": "string", "period_end": "string", "job_type": "string", "total_credits": 0, "job_count": 0, "image_count": 0 } ], "summary_by_user": null, "members": [ { "user_id": 0, "email": "string", "username": "string", "total_credits": 0, "job_count": 0, "image_count": 0 } ]}