Public beta Sharding enclave attested on Intel TDX. Real models answer through the API. Relay exits are planned. See what is live

API reference

All OpenAI endpoints under /v1 with identical request and response shapes, plus the Anthropic shape under /anthropic. Listed here are the routes WISPR adds.

Base URLs and auth

OpenAI shape
https://api.wispr.xyz/v1
Anthropic shape
https://api.wispr.xyz/anthropic
Auth
Authorization: Bearer wispr_sk_…. Routes take your key unless the route says otherwise.
No key
x402: the request routes answer 402 with X-Payment-Required; pay USDC on Base and retry with X-PAYMENT. See Payments.
Errors
{ error: { code, message } } with the typed codes in Errors.

Requests

POST/v1/chat/completions·/v1/responses·/v1/embeddings

OpenAI shape. Response carries the wispr receipt. With an empty balance, send X-PAYMENT (x402) or receive 402 with the price.

Auth
Bearer key, or x402 with no key
Headers
every control in Controls, plus X-Wispr-Trace
Returns
the OpenAI response plus wispr, the receipt
Errors

Body fields WISPR reads (chat)

FieldTypeWhat it doesComes back as
modelstringa catalogue id, a frontier id, or auto to let CASR pick per shardthe receipt names every model used
reasoning_effortlow · medium · highasks the model to think firstmessage.reasoning; per call, wispr_reasoning
web_searchtruelets the answering model searchmessage.annotations: url_citation with url, title and, when the provider quoted the page, snippet
read_linkstruefetches the pages behind up to 3 links in your last message and adds their text as material before masking and shardingwispr_links
request
curl https://api.wispr.xyz/v1/chat/completions \
  -H "Authorization: Bearer $WISPR_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Wispr-Frontier: deny" \
  -d '{ "model": "auto", "reasoning_effort": "high",
        "messages": [{ "role": "user", "content": "Explain the interactions between these three medications." }] }'
response.wispr (docs example)
"wispr": {
  "masked": 4,
  "shards": [
    { "id": 1, "class": "identity",  "model": "qwen3.8-27b-uncensored", "host": "wispr-enclave" },
    { "id": 2, "class": "financial", "model": "gemma-4-26b-uncensored", "host": "wispr-enclave" },
    { "id": 3, "class": "reasoning", "model": "claude",                 "host": "provider, shard only" }
  ],
  "tokens": { "in": 812, "out": 1040 },
  "cost_usd": 0.0147, "fee_usd": 0,
  "attestation": { "enclave": "wispr-casr", "measurement": "sha256:4f1c…a9e0", "quote": "…" },
  "signature": "ed25519:…"
}

Adapted from the docs example, for a request with frontier models allowed (so not the deny request above): the two private model ids are the catalogue models that run on Phala TDX today. The measurement shown is the docs placeholder; the live one is on the security page.

POST/v1/images/generations·/v1/videos/generations·/v1/audio/speech

Media routes billed per image, per second, per 1K characters. Response carries data and the receipt.

Auth
Bearer key, or x402 with no key
Returns
data and the receipt; images with enhance also return revised_prompt
Receipt
images, video and speech: signed by the gateway key, measurement none
Errors
FieldTypeWhat it does
enhancetrueOn images: expands a prompt under 200 characters with a quick private model first; the prompt used comes back as revised_prompt and the helper call is its own line on the receipt.
request
curl https://api.wispr.xyz/v1/images/generations \
  -H "Authorization: Bearer $WISPR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "chroma", "prompt": "...", "enhance": true }'

GET/v1/trace/:id·/v1/trace/:id/live

Send X-Wispr-Trace: <32 hex> with a request and poll these while it runs. /trace/:id is the activity trace: stages, models, counts, timings and cost, never text; it is the record the dashboard’s audit window shows. /trace/:id/live is the text next to it: what each model is thinking and writing right now, straight from the provider stream, with placeholders where identifiers were. Both belong to the account that sent the request and are kept in memory for an hour at most.

Auth
the key of the account that sent the request
Path
:id is the 32 hex value you sent in X-Wispr-Trace
Kept
in memory, one hour at most
request
TRACE=$(openssl rand -hex 16)            # 32 hex characters
curl https://api.wispr.xyz/v1/chat/completions \
  -H "Authorization: Bearer $WISPR_KEY" -H "X-Wispr-Trace: $TRACE" \
  -H "Content-Type: application/json" -d @request.json &
curl https://api.wispr.xyz/v1/trace/$TRACE -H "Authorization: Bearer $WISPR_KEY"

GET/v1/models

The live catalogue: id, modality, method, precision, price, refusal bar, speed, status, host.

Auth
none; the list is public
Returns
one entry per model, with the fields above; the docs copy is The catalogue
request
curl https://api.wispr.xyz/v1/models -H "Authorization: Bearer $WISPR_KEY"

GET/v1/attest

Enclave name, code measurement, TDX quote and the sealing public key.

Auth
none; the documented call sends no key
Check it
npx wispr attest checks the quote against the published build
request
curl https://api.wispr.xyz/v1/attest   # raw TDX quote, verify with any TDX tool
response · snapshot 10 Nov 2026, long values cut
{
  "enclave": "wispr-casr",
  "mode": "tdx",
  "measurement": "sha256:b457efe8ba8acf600a42397072eea97e21ff42220b2d8c9de7bc9fba4b8203f5",
  "quote": "…",
  "public_key": "…",
  "receipt_key": "…",
  "gateway_receipt_key": "…"
}

POST/v1/receipts/verify

Body: a receipt. Returns signature validity and whether the measurement is a published build.

Auth
none; the documented call sends no key
Body
the wispr object from a response, as JSON
request
curl -X POST https://api.wispr.xyz/v1/receipts/verify \
  -H "Content-Type: application/json" -d @receipt.json

Account

POST/v1/account/register·/v1/account/login

Email: { email, password }. Anonymous: { username, public_key, signature }; the phrase never leaves the device.

Way inBodyNotes
Emailemail, passwordwe store a hash of each
Anonymoususername, public_key, signaturekey derived in your browser from the twelve word phrase; see Anonymous

GET/v1/account

Balance, fee rate, stake status, default model, exit, spend by day.

request
curl https://api.wispr.xyz/v1/account -H "Authorization: Bearer $WISPR_KEY"

GETPOST/v1/keys·DELETEPATCH/v1/keys/:id

List, create ({ name, budget_usd, cap_usd }, key shown once), revoke, change budgets.

FieldTypeMeaning
namestringa label you choose, such as cursor laptop
budget_usdnumbermonthly budget for the key
cap_usdnumberper request cap
request
curl https://api.wispr.xyz/v1/keys \
  -H "Authorization: Bearer $WISPR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "cursor laptop", "budget_usd": 25, "cap_usd": 0.50 }'

GET/v1/usage?days=7

Requests, tokens, cost and resharded refusals per day and per model. Counts only.

request
curl "https://api.wispr.xyz/v1/usage?days=7" -H "Authorization: Bearer $WISPR_KEY"

Money

GET/v1/topup/options

Coins accepted, fee rates, minimums, the deposit address and the top up link.

POST/v1/topup/quote

{ amount_usd, coin }: what you pay, what lands, the fee.

request
curl https://api.wispr.xyz/v1/topup/quote \
  -H "Authorization: Bearer $WISPR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount_usd": 25, "coin": "usdc" }'

POST/v1/deposits/redeem Planned

{ denomination, proof, publicSignals: [root, nullifierHash, account] }. Verified inside the enclave, nullifier marked, credited minus the fee.

Errors
Easier
npx wispr redeem <note> builds the proof and waits a random delay; see Deposit notes

GETPOST/v1/stake Later

Contract and requirement; after staking on chain, POST switches the fee to 0%.

GET
the contract, your account id as bytes32 and the requirement
POST
re-reads the contract and switches the fee to 0%

Headers

See Controls for X-Wispr-Shard, X-Wispr-Frontier, X-Wispr-Sensitive, X-Wispr-Exit, X-Wispr-Budget, X-Wispr-Precision, X-Wispr-Plan and X-PAYMENT.

HeaderDirectionValues
X-Wispr-Shardrequestauto · mask · off
X-Wispr-Frontierrequestallow · deny
X-Wispr-Sensitiverequestcomma list of identity financial medical secrets code
X-Wispr-Exit Plannedrequestauto or eu-fra eu-ams us-iad us-sjc ap-sin ap-tyo
X-Wispr-Budgetrequestmax USD for this request
X-Wispr-Precisionrequestbf16 · fp8
X-Wispr-Planrequestfundamentals · split
X-Wispr-Shield-Private · X-Wispr-Shield-Frontierrequesta catalogue model id, or auto
X-Wispr-Tracerequest32 hex characters
X-PAYMENTrequestthe x402 payment
X-Payment-Requiredresponse, on 402scheme, network, asset, amount, payTo