Headers
Request and response headers the gateway and REST API read or set.
Request
Copy the model namepad/JPX is ready for any client
Example data| Header | Where | Meaning |
|---|---|---|
Authorization: Bearer ec_live_… | Gateway | API key (checked first) |
x-api-key: ec_live_… | Gateway | API key alternative |
x-ec-funding | Gateway | allowance_then_balance, balance or allowance |
anthropic-version | Gateway | Accepted on /v1/messages |
anthropic-beta | Gateway | Forwarded upstream on /v1/messages |
Idempotency-Key | REST writes | 8 to 128 of letters, digits, _ or - |
Response
Open the receiptMoney and tokens, never content
Example data| Header | Where | Meaning |
|---|---|---|
x-ec-receipt | Gateway | Receipt id |
x-ec-funding | Gateway | allowance, balance or test |
x-ec-model | Gateway | Served model id |
x-ec-route | Gateway | primary, fallback-1 or fallback-2 |
x-ec-version | Gateway | Endpoint version |
x-ec-cost-micro, x-ec-fee-micro, x-ec-markup-micro | Gateway | Exact charge (JSON); hold estimate (stream) |
x-ec-hold-micro | Gateway, streams | Amount held for the call |
x-ec-test-left | Tests | Test budget left before this call |
retry-after | REST 429 and 409 | Seconds to wait |
idempotent-replayed | REST | Answer is a stored replay |
x-ec-secret-withheld | REST | A replayed key creation withheld the secret |