Documentation
Response headers
Request id, mode, cost, balance, and price version.
Responses from billed endpoints carry these headers. Errors carry x-request-id, plus Retry-After on retryable rate limits.
| Header | Meaning |
|---|---|
x-request-id | Unique id for the request. Quote it to support. |
x-friday-mode | live or sandbox. See Sandbox mode. |
x-friday-cost-paise | Amount charged for this request, in paise. |
x-friday-balance-paise | Available balance after settlement, in paise. |
x-friday-price-version | The price version pinned to this request. |
x-friday-usage-basis | reported (provider counts), estimated, or none. |
Streaming responses only carry x-request-id and x-friday-mode up front; the final billing is the friday object on the last chunk (the one carrying usage and finish_reason), just before data: [DONE].