Headers
Request headers
Section titled “Request headers”| Header | Effect |
|---|---|
Authorization: Bearer <key> |
Managed address: the issued key. Status and metrics: the read token. Control API: the owner token |
X-Prism-Admin-Token |
Owner token for the control API, status, cost, metrics and traces |
X-Prism-Read-Token |
Read-only token (PRISM_READ_TOKEN) for status, cost and metrics |
X-Prism-Strategy |
Strategy for this request: balanced, quality, cheap, fast, private |
X-Prism-Session |
Names the conversation; same as body session_id |
X-Prism-App |
Names the agent; a mapped name selects a routing profile |
X-Prism-Profile |
Selects a routing profile by name |
X-Prism-Allow-Provider-Failover |
true lets a provider::model request go to another provider |
X-Prism-Strict-Model |
true keeps this request at one seller: the provider a provider::model names, or the first seller in Prism’s order for a bare model id; no other provider and no other version of a rolling alias takes over. false turns off a session, agent or installation setting for this request |
X-Prism-Tool-Compression |
Tool-output compression for this request |
X-Prism-Routing-Mode |
manual or automatic: the routing mode of this request, above the session’s, the agent’s and the default |
Idempotency-Key |
With a Prism key: one visible-ASCII value of at most 128 bytes on POST /v1/chat/completions, /v1/responses or /v1/messages. A repeat of the same eligible request with the same key within two minutes of its answer gets that answer again instead of a new model call; a repeat while the first still runs waits for it. Eligible: not streaming, an explicit model, temperature: 0, at most one choice, no tools, media, X-Prism-Session or query string. The same key with another body answers 409 idempotency_conflict |
X-Prism-Idempotency-Reset: true |
With Idempotency-Key: drop the finished answer kept for this key and run the request again. It does not reset a request that still runs |
X-Prism-Outcome: ignore |
Served, billed and recorded as usual, but left out of outcome judgment and of the Experiments page’s policy and model tables. For evaluation runs, benchmarks and judges that send one task to several models |
X-Request-Id |
Managed address: your request id (one value) |
See Choosing a model for how the routing headers interact.
Response headers
Section titled “Response headers”Set on answers to Chat Completions and Responses requests, and on the translated dialects where they apply. The headers in this table are promised: they keep their names and meaning in 1.x.
| Header | When | Meaning |
|---|---|---|
X-Request-Id |
Every answer | Prism’s id for this request |
X-Prism-Provider |
Routed answer | Provider that served it, after any failover |
X-Prism-Model |
Routed answer | Model id sent to that provider |
X-Prism-Reason |
Prism chose the model | Why this model was chosen, for example tier_floor_order, smart_quality_band or smart_checked_cascade. The header is promised; its values are not a closed list and new ones may appear |
X-Prism-Selector, X-Prism-Quality, X-Prism-Candidates |
Prism chose the model | Selector, the chosen model’s quality score, number of candidates |
X-Prism-Role-Alias, X-Prism-Resolved-Model |
A role alias was used | Alias name and the model it resolved to |
X-Prism-Requested-Model |
The Smart quality band, or the Smart checked cascade’s cheap model, answered a role or named-model request with another model | The model value the client sent; X-Prism-Model and X-Prism-Provider name the model that answered, and X-Prism-Reason is smart_quality_band or smart_checked_cascade. See Smart quality band |
X-Prism-Cascade |
The Smart checked cascade is on and the request was in its scope | accepted: the cheap model’s answer passed the check and was served. escalated:<reason>: the strong model’s answer was served; the reason is format, disagreement, partner_unavailable, self_inconsistent, sample_unavailable, tool_schema, judge, judge_unfunded or judge_unavailable. kept:<reason>: the check failed but the cheap answer was served, because a held OpenAI or Anthropic refusal left no strong attempt (refusal_held) or the strong model did not answer (strong_failed). skipped:<reason>: the cascade did not run (endpoint, streaming, strategy, skill, long_context, session_lock, pinned, call_limit, cost_limit, no_cheaper_model, no_partner, budget_fallback). X-Prism-Reason is smart_checked_cascade or smart_checked_cascade_escalated when it ran. See Smart checked cascade |
X-Prism-Attempts, X-Prism-Attempt-Providers, X-Prism-Attempt-Reasons |
Routed answer | Number of attempts, providers tried, result of each |
X-Prism-Cost-USD, X-Prism-Cost-Status, X-Prism-Pricing-Revision |
Routed answer | Cost in USD; known, partial or unknown; price table revision |
X-Prism-Trace-Id, X-Prism-Orchestration, X-Prism-Strategy-Effective |
Routed chat or Responses answer | Trace id; calls, escalation and cost; strategy used |
X-Prism-Selection-Reason |
Routed chat or Responses answer | Deprecated: read X-Prism-Reason. Still sent in 1.x; removed in 2.0.0 |
X-Prism-Reasoning |
The request asked for reasoning (reasoning_effort, reasoning, thinking or the like) |
requested=<state>;effective=<state or none>;support=<how>: what the request asked for, what was sent to the provider (none when the provider’s dialect has no known translation), and native, provider_adapter or untranslated |
X-Prism-Session-Migrated |
This turn was served by another account or model than the previous turn | Present only then |
X-Prism-Served-By |
[harness] announce_served_model = true |
provider/model |
X-Prism-Adjusted-Params |
Prism changed request parameters | For example temperature=dropped;max_tokens=renamed:max_completion_tokens; see Parameter compatibility |
X-Prism-Upstream-Endpoint |
A chat request was served through the provider’s Responses API | /v1/responses |
X-Prism-Responses-Translated, X-Prism-Responses-Dropped |
A /v1/responses request was served through Chat Completions |
chat_completions; fields not carried |
X-Prism-Output-Limit-Warning |
A concrete model’s known output limit is below the requested max_tokens |
Warning text |
X-Prism-Budget-Warning, X-Prism-Budget-Active |
A budget threshold applies | Budget state |
X-Prism-Control |
The message was an in-chat /prism command |
accepted or rejected |
X-Prism-Tool-Compression and -Before-Bytes, -After-Bytes, -Saved-Bytes, -Before-Tokens-Estimate, -After-Tokens-Estimate |
Chat requests | Tool-output compression mode and its effect |
X-Prism-Traffic-Guard-Revision |
[traffic_guard] checked a Chat, Responses or Messages request |
Revision of the guard policy that was applied |
X-Prism-Traffic-Guard-Action |
The guard acted | observe, redact or block; a blocked request answers 422 traffic_guard_blocked and reaches no provider |
X-Prism-Traffic-Guard-Stream |
A streamed request under a response guard | observe-unprotected: the streamed answer is observed but not redacted or blocked. unsupported-response-enforcement: the policy redacts or blocks answers, which needs a request without streaming; it answers 400 streaming_response_guard_unavailable |
X-Prism-Idempotency |
The request carried Idempotency-Key |
miss (run now), coalesced (joined a run in progress), replayed (the kept answer), ineligible (run normally, see X-Prism-Idempotency-Eligibility), conflict (409 idempotency_conflict), capacity (503 idempotency_capacity: the store is full) |
X-Prism-Idempotency-Eligibility |
The request carried Idempotency-Key |
eligible, or why the request cannot be replayed, for example streaming or query |
X-Prism-Idempotency-Durability, X-Prism-Idempotency-Expires-At |
An answer was kept for replay | memory (kept in memory only, gone after a restart); when the kept answer expires |
X-Prism-Starting |
Prism is still loading its state after a start | 1. Requests answer 503 prism_starting with Retry-After: 2; /health answers 503 with {"status":"starting"} |
X-Prism-Error-Class |
Every error Prism writes | The error code; upstream_error when the provider’s error is passed on |
X-Prism-Upstream-Status |
Provider error passed on | The provider’s HTTP status |
X-Upstream-Request-Id |
Provider sent a request id | The provider’s id |
Retry-After |
overload (5 s), rate limits, a model server that is starting, Prism starting (2 s) |
Seconds to wait |
Diagnostic headers
Section titled “Diagnostic headers”Every other X-Prism-* response header is diagnostic: it is not promised,
and its name, values and presence may change in any release. These are:
X-Prism-Request-Normalized, X-Prism-Request-Policy,
X-Prism-Request-Normalized-Fields-Count, X-Prism-Effort-Requested,
X-Prism-Effort-Effective, X-Prism-Backend-Policy, X-Prism-Backend,
X-Prism-Route-Event, X-Prism-Semantic-Status, X-Prism-Semantic-Assist,
X-Prism-Semantic-Model, X-Prism-Semantic-Rollout,
X-Prism-Semantic-Shadow, X-Prism-Semantic-Similarity,
X-Prism-Semantic-Tier, X-Prism-Early-Request-Id, X-Prism-Audit-Before
and X-Prism-Experiment-Receipt.
Browser pages on other origins
Section titled “Browser pages on other origins”A page on another origin can read only the headers in
Access-Control-Expose-Headers: X-Request-Id, X-Upstream-Request-Id,
X-Prism-Error-Class, X-Prism-Upstream-Status, Retry-After,
X-Prism-Provider, X-Prism-Model, X-Prism-Selector, X-Prism-Reason,
X-Prism-Served-By, X-Prism-Role-Alias, X-Prism-Resolved-Model,
X-Prism-Requested-Model, X-Prism-Cascade, X-Prism-Quality,
X-Prism-Candidates, X-Prism-Attempts, X-Prism-Attempt-Providers,
X-Prism-Attempt-Reasons, X-Prism-Control, X-Prism-Cost-Status,
X-Prism-Cost-USD, X-Prism-Pricing-Revision, X-Prism-Reasoning,
X-Prism-Session-Migrated, X-Prism-Upstream-Endpoint, the
X-Prism-Tool-Compression headers, the four X-Prism-Idempotency headers
and, of the diagnostic headers, X-Prism-Request-Normalized,
X-Prism-Request-Policy, X-Prism-Request-Normalized-Fields-Count and
X-Prism-Route-Event. The other headers above, among them
X-Prism-Adjusted-Params, X-Prism-Trace-Id and X-Prism-Selection-Reason,
are sent but a page on another origin cannot read them.
Pages on other origins can call the main address only when their origin is in
[server] cors_allowed_origins or the request carries a Prism key; other
origins get 403.
The model itself never sees these headers, and many agent tools drop them. To put the routing result in the response body, see Agent self-description.