Skip to main content
A complete catalog of the headers Brew sets on API responses, what each one means, when it’s present, and how to consume it.

Headers on Every Response

Headers on Specific Responses

Usage-metered operations (email generate / edit, image generation) bill the actual model usage and do not emit these headers. Read your balance from GET /v1/usage instead. See Credits for the full metering model. These deprecation headers are defined for forward-compatibility, but no v1 routes are currently deprecated. You will not see them on any live route today. If a route is ever sunset, the Link header will point at its canonical successor.

Request Headers Brew Honors

Set these on requests when applicable:

Inspecting Headers from Clients

curl

-i (or -D -) prints the response headers above the body.

TypeScript SDK (Raw Mode)

Pass { raw: true } in RequestOptions on any SDK call to get the full BrewRawResponse<T> with the headers.

fetch

Header → Action Mapping

A typical agent / SDK consumes these headers like so:

Casing

HTTP headers are case-insensitive. Brew emits x-request-id lowercase, X-RateLimit-* and Retry-After in canonical case; fetch / SDKs read them case-insensitively.

See Also

  • Rate limits: the canonical 429 cookbook.
  • Idempotency: Idempotency-Key semantics.
  • Errors: error envelope (the body that pairs with 429 RATE_LIMITED, 409 IDEMPOTENCY_CONFLICT, etc.).
  • API introduction: the overview that links every reference page. No v1 routes are currently deprecated, so Deprecation / Sunset / Link are not emitted on any live route today.

Need help?

Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:

Search Documentation

Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.

ChatGPT/Claude Integration

Click “Open in ChatGPT” at the top right of any page to analyze documentation with ChatGPT or Claude for deeper insights.