Usage

A per-customer spend report

Usage is a per-customer spend report over a date range, broken down by credential source (customer BYOK, org BYOK, or Merge-managed) and by model, provider, and routing policy. Use it to bill your own customers or to reconcile spend.

Path: /v1/customers/{customer_id}/usage. See Checking usage on the overview for the request; this page documents the response fields.

Fields

FieldDescriptionType
customer_byok_spendSpend billed against the customer’s own provider keysnumber
organization_byok_spendSpend billed against your organization’s provider keysnumber
merge_spendSpend billed against Merge-managed credentialsnumber
request_countNumber of requestsinteger
per_model / per_provider / per_routing_policySpend breakdowns, sorted by spend descendinglist of {…, spend}

The three spend fields are disjoint: their sum is the customer’s total spend for the range.