Get a receipt for every call
Every successful call gets a receipt with its tokens and money, and never its content.
Every reply ends with a receipt
- ScreenReply
- ActionReceipt line
- ResultReceipt id
Read the receipt lineTokens, total and the receipt id
Example dataIn code the id is in the x-ec-receipt header (or the final ec stream event). In the app it is the receipt line under the reply.
Open the receipt
- ScreenReceipt link
- ActionReceipt page
- ResultEvery money line
Open the receiptMoney and tokens, never content
Example dataA receipt shows endpoint, version, configuration hash, model, route, tokens, cost, fee, markup, royalty and burn. Every field.
Find past receipts
- ScreenConsole › Usage
- ActionSearch by id
- ResultReceipt
Open Console UsageThirty days of cost, fee and markup
Example dataYour own receipts are listed in Console and Me, searchable by receipt id prefix (GET /api/v1/me/receipts?q=).
What a receipt never contains
- ScreenReceipt
- ActionNo prompt, no reply
- ResultCaller is a hash
Open the receiptMoney and tokens, never content
Example dataPrompts, replies and caller identities never appear. The receipt leaf names the caller only as an HMAC of the key id.