Skip to content

Response Headers

ai& exposes request metadata through HTTP headers rather than modifying the OpenAI- or Anthropic-shaped response body. This preserves wire-format compatibility with the official SDKs.

HeaderDescription
X-Request-IDUnique ID for this request. Include in support tickets.
X-AiAnd-Org-IDOrganization the request was billed to.
X-AiAnd-ModelModel that actually served the request (after any aliasing).
HeaderDescription
X-AiAnd-Cost-USDCost of this request in USD. Set on every billable response.
X-AiAnd-Input-TokensInput tokens counted toward billing.
X-AiAnd-Output-TokensOutput tokens counted toward billing.

See Rate Limits for the full set of X-RateLimit-* headers.

Streaming responses carry the identity headers immediately but emit cost/tokens via a trailer event after the model’s terminal message. See Streaming Events.