Quickstart
Base URL https://api.wispr.xyz/v1. Every OpenAI endpoint is mirrored: chat completions, responses, embeddings, images, video, audio. Sharding is on by default, so nothing about your request body changes.
The API is in public beta: real models answer, and accounts, keys, budgets, masking, splitting and signed receipts run end to end. The status page lists what is live.
1. Get a key
Create an account in the dashboard, by email or anonymously with a recovery phrase, then make a key under API keys. Give it a monthly budget and a per request cap. The key is shown once.
Prefer the terminal? npx wispr keys create --name "cursor laptop" --budget 25 --cap 0.50 does the same. See Keys.
2. Fund the balance
Top up with any coin, or with a deposit note if the funding must not be linkable to the account. Agents can skip the balance and pay per request over x402.
3. Send a request
Two values change in any OpenAI client: the base URL and the key.
curl https://api.wispr.xyz/v1/chat/completions \ -H "Authorization: Bearer $WISPR_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "auto", "messages": [{ "role": "user", "content": "Review this contract and tell me where my position is weak." }] }'
from openai import OpenAI client = OpenAI(base_url="https://api.wispr.xyz/v1", api_key="wispr_sk_...") r = client.chat.completions.create( model="auto", messages=[{"role": "user", "content": "Review this contract and tell me where my position is weak."}], ) print(r.choices[0].message.content) print(r.model_extra["wispr"]["cost_usd"])
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.wispr.xyz/v1", apiKey: "wispr_sk_..." }); const r = await client.chat.completions.create({ model: "auto", messages: [{ role: "user", content: "Review this contract and tell me where my position is weak." }], }); console.log(r.choices[0].message.content, r.wispr.cost_usd);
auto lets CASR pick per shard. Any id from the catalogue pins the main shard to that model; sensitive shards still go to catalogue models, never to a frontier provider.
4. Read the receipt
The response is a normal chat completion plus a wispr object.
"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: 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.
cost_usd is the sum of the shards at the model's own rate with enclave time included. The WISPR fee is charged once at top up, never per request. See Pricing and fees.
Every field is explained in Receipts, with the command that verifies one.