Docs/Per-request billing
Billing and account

Per-request billing

Each response carries its own bill: usage.cost in USD, the utopixel object, streaming bills and looking up a request later.

Every response carries its cost in usage.cost and usage.cost_details (USD). It also has a utopixel object with request_id, charged_credits (1 credit = 1 micro-USD), balance_after, customer_id and usage_source.

In streams the bill is on the final usage chunk. For Anthropic it is on message_delta. Look a request up later with GET /api/v1/generation?id=gen_.... It also returns every provider attempt and the price snapshot used.