Get Usage Summary
Returns credit usage for the active billing scope. Team owners and billing members receive team-wide usage by default; other team members receive their own usage.
Usage
import { v0 } from 'v0'const result = await v0.usage.getSummary()console.log(result)API Signature
Request
Query Parameters
Inclusive ISO 8601 start timestamp. Defaults to seven days ago.
Exclusive ISO 8601 end timestamp. Defaults to the current time.
Filter usage by user. Team owners and billing members may select any team member; other callers may select only themselves.
Response
Object type identifier.
Time range covered by the response.
Inclusive ISO 8601 start timestamp.
Exclusive ISO 8601 end timestamp.
Authorized billing scope used for this response.
Billing scope identifier.
Billing scope type.
Whether the response includes usage for the entire team.
User attribution applied to the response, when filtered.
Credits consumed during the selected range.
Credits consumed from included plan credits.
Credits consumed from on-demand credits.
Total credits consumed.
Daily credit totals in chronological order.
UTC date in YYYY-MM-DD format.
Credits consumed during the selected range.
Credits consumed from included plan credits.
Credits consumed from on-demand credits.
Total credits consumed.
Timestamp of the reporting snapshot backing this response.