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
| Header | Purpose |
|---|---|
x-haimaker-call-id | Haimaker'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
| Header | Purpose |
|---|---|
x-haimaker-response-cost | Reported request cost in USD, when known at header time. |
x-haimaker-response-cost-original | Cost before an applied discount, when available. |
x-haimaker-response-cost-discount-amount | Discount applied to the request, when available. |
x-haimaker-key-spend | The 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-budget | The API key's configured budget, when finite. |
x-haimaker-key-rpm-limit | The API key's requests-per-minute limit, when configured. |
x-haimaker-key-tpm-limit | The 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
| Header | Purpose |
|---|---|
x-haimaker-response-duration-ms | Reported response duration in milliseconds. |
x-haimaker-overhead-duration-ms | Processing overhead in milliseconds. |
x-haimaker-attempted-retries | Retry attempts reported by the router. |
x-haimaker-attempted-fallbacks | Fallback 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.