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.

HeaderMeaning
x-request-idUnique id for the request. Quote it to support.
x-friday-modelive or sandbox. See Sandbox mode.
x-friday-cost-paiseAmount charged for this request, in paise.
x-friday-balance-paiseAvailable balance after settlement, in paise.
x-friday-price-versionThe price version pinned to this request.
x-friday-usage-basisreported (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].