Controls
Defaults are set per account in the dashboard and can be overridden per request with headers. The request body stays OpenAI shaped.
Headers
| Header | Values | Default |
|---|---|---|
X-Wispr-Shard | auto full pseudonymise and split · mask identifiers only, one call · off one model, as is | auto |
X-Wispr-Frontier | allow or deny frontier models for any shard | account setting |
X-Wispr-Sensitive | comma list of classes that must never go to a frontier provider: identity financial medical secrets code | all but code |
X-Wispr-Exit Planned | auto or a region: eu-fra eu-ams us-iad us-sjc ap-sin ap-tyo. Relay exits in these six regions are planned. | account setting |
X-Wispr-Budget | max USD for this request; the plan is refused above it | key cap |
X-Wispr-Precision | bf16 or fp8 for catalogue models | card value |
X-Wispr-Plan | fundamentals a private model breaks the request into general questions, one explain shard each (frontier models when allowed), a private model composes the answer; no outside model sees the request · split material goes to private facts shards and a frontier model answers the masked ask from the fact sheets | fundamentals |
X-Wispr-Compress | auto long material is cut to the sentences that answer the instruction before any model sees it (50% cap: 63% fewer prompt tokens, no measured quality change, see wispr-compress) · off send as typed · a number from 0.1 to 0.9 forces that cap. The receipt carries compression when it ran. | auto |
X-Wispr-Route | auto an auto model pick takes the cheapest model measured to answer that kind of request within 5% of the best (maths, extraction and knowledge questions are measured; 102% of the frontier model's quality at up to a 40% discount on 150 held-out prompts, see wispr-router) · speed the fastest measured model instead · off the catalogue order pick. A pinned model, the frontier rule and where a private shard may run never change. Each routed shard on the receipt carries route with the task, the model that measured best and the saving. | auto |
X-Wispr-Shield-Private · X-Wispr-Shield-Frontier | pin the catalogue model for the private calls (facts, decompose, compose) and for the answering or explaining calls | auto |
Two more headers travel with requests: X-Wispr-Trace (32 hex, for the live trace in the API reference) and X-PAYMENT (x402, see Payments).
Compose a request
Pick values; the request underneath is rebuilt as you go and copies exactly as shown.
X-Wispr-ShardFull pseudonymise and split: two to four model calls, each on the receipt.
X-Wispr-FrontierHeader left out: your account setting decides.
X-Wispr-Sensitiveidentity, financial, medical, secrets never go to a frontier provider.
X-Wispr-PlanA private model breaks the request into general questions; no outside model sees the request.
X-Wispr-PrecisionHeader left out: the value on the model card.
curl https://api.wispr.xyz/v1/chat/completions \ -H "Authorization: Bearer $WISPR_KEY" \ -H "Content-Type: application/json" \ -H "X-Wispr-Shard: auto" \ -H "X-Wispr-Sensitive: identity,financial,medical,secrets" \ -H "X-Wispr-Plan: fundamentals" \ -d '{ "model": "auto", "messages": [{ "role": "user", "content": "Review this contract and tell me where my position is weak." }] }'
Example
-H "X-Wispr-Shard: auto" -H "X-Wispr-Frontier: deny" # every shard stays off frontier providers -H "X-Wispr-Sensitive: identity,financial,medical" -H "X-Wispr-Exit: eu-fra" # planned: relay exits -H "X-Wispr-Budget: 0.25"
When the key cap or X-Wispr-Budget is below the cheapest plan for the request, you get 429 budget_exceeded.