Export billed usage as per-customer invoices
Changed onReturns billed usage for the period, one block of model/provider line items per customer user path, with subtotals and a grand total. Amounts are USD. With parent, each direct child of that user path is one customer (usage on the parent itself stays under the parent); without it every user path is its own customer. Requests, tokens and provider cost cover provider-served requests; billed cost also includes billed response-cache hits. CSV rows carry row_type item, subtotal or total. Requires a GoModel Pro license with the billing entitlement and pricing.markups_enabled.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/admin/usage/invoice
- AuthHTTP bearer
Query parameters
Export format: csv (default, as an attachment) or json
Bill each direct child of this user path as one customer, e.g. /customers
Number of days (default 30)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Filter by exact model names; repeat or comma-separate for several
Filter by provider names or types; repeat or comma-separate for several
Filter by request labels (exact match); repeat for several
Filter by exact request endpoints, e.g. /v1/chat/completions,/v1/messages; repeat or comma-separate for several
Filter by comma-separated operations, e.g. chat_completions,embeddings
Filter by exact detected session ID
Filter by managed auth key IDs; repeat or comma-separate for several
Filter by tracked user path subtrees; repeat for several
Response
OK
Changes
- info
endpoint added
- info