Skip to main content

Response headers

Haimaker returns service-specific headers with the x-haimaker- prefix. Headers are optional: availability depends on the endpoint, response type, configured limits, and whether a value is known when the response headers are sent. In particular, streaming response headers are sent before final token usage is available. Use the final usage records for accounting.

Request identification​

HeaderPurpose
x-haimaker-call-idHaimaker's identifier for this request. Include it when contacting support.

To group multiple requests into a conversation, send a trace or session identifier.

Cost and limits​

HeaderPurpose
x-haimaker-response-costReported request cost in USD, when known at header time.
x-haimaker-response-cost-originalCost before an applied discount, when available.
x-haimaker-response-cost-discount-amountDiscount applied to the request, when available.
x-haimaker-key-spendThe API key's reported spend, including this response when known. This is an estimate, not the team's available credit balance.
x-haimaker-key-max-budgetThe API key's configured budget, when finite.
x-haimaker-key-rpm-limitThe API key's requests-per-minute limit, when configured.
x-haimaker-key-tpm-limitThe API key's tokens-per-minute limit, when configured.
x-haimaker-key-remaining-requests-{model}Remaining request allowance for the model, when available.
x-haimaker-key-remaining-tokens-{model}Remaining token allowance for the model, when available.

Standard OpenAI-compatible x-ratelimit-* headers retain their standard names. Native Anthropic responses can also include anthropic-ratelimit-* headers. These headers can include limit, remaining, and reset values for requests and tokens. They are not a credit balance or a guarantee of admission.

Timing and retries​

HeaderPurpose
x-haimaker-response-duration-msReported response duration in milliseconds.
x-haimaker-overhead-duration-msProcessing overhead in milliseconds.
x-haimaker-attempted-retriesRetry attempts reported by the router.
x-haimaker-attempted-fallbacksFallback attempts reported by the router.

Haimaker does not expose deployment IDs, upstream URLs, cache keys, release configuration, pricing margins, detailed internal timings, or raw provider response headers. The headers above describe your request and your configured limits. Provider data needed for retries and accounting stays inside the service.