PRIVAI(1)private aiPRIVAI(1)
how privai works
The short manual. Privai runs as a demo until launch; the mechanism below is what launches.
what it is
An OpenAI-compatible chat with a model that runs inside attested hardware: an Intel TDX confidential VM next to 8 NVIDIA H100 GPUs in confidential-computing mode (NEAR AI Cloud private models).
Your browser encrypts every field of the request to the model's own key. The Privai proxy and the NEAR gateway forward ciphertext. The words open only inside the sealed machine.
You pay with blind-signed credit tokens bought from your Privacy Rings balance. No account, no email, no wallet link to your chats.
the seal check (in your browser)
Before the first message the kit fetches a fresh attestation report with your random nonce and checks 23 things: the TDX quote signature up to the Intel SGX root, TCB status, debug off, report data = model key + your nonce, measurements in the signed policy pinned in the kit, the replayed event log, each GPU's NVIDIA device chain and SPDM signature, the NVIDIA NRAS token (secure boot on, debug off), and the model name.
The model key comes from inside the verified report and is pinned for the chat. Every answer is signed by that key; the kit checks the signature and treats streamed text as provisional until it does.
paying: blind tokens
Top up 1 to 200 USDC: the kit opens an order with a hash of a secret only it knows, you send USDC from your Rings shield to the order's one-time address, then the kit claims tokens with the secret.
Tokens are signed blindly (RFC 9474 RSA blind signatures) in denominations of 0.0001, 0.001, 0.01, 0.10 and 1.00 USDC. The keeper can verify a token, not tell who bought it.
Each request reserves tokens for its worst case, the real cost is settled from the model's usage, and the change comes back as new blind tokens. Unspent tokens can be exported, imported, or cashed out to any Rings address.
fees (at launch)
25% over the model's token price, rounded up to 0.0001 USDC per request. A typical message costs about 0.0018 USDC. Cashing out costs 0.01 USDC (relayed gas). No other fees. Fees are earned inside the shield.
custody, plainly
Custodial for money: unspent top-ups sit in Rings owners the keeper holds until you spend or cash out (total capped). Not custodial for words: the keeper never has your plaintext and refuses any request that is not end-to-end encrypted.
limits we say out loud
Metadata is visible to us and NEAR: model, time, message size, token counts, and your IP at the HTTP layer (not stored; use Tor or a VPN for more). On chain, Rings shows that someone paid Privai, not how much.
You trust Intel, NVIDIA and NEAR's measured image. NEAR starts the inference containers by tag inside that image, so its release pipeline is part of the trust. Side channels and vendor key leaks are out of scope.
Whoever serves a web page can ship code that leaks what you type. The kit is open source, pinned by hash on this site, and usable from your own client.
api (for your own client)
GET /v1/models- attested TEE models only, with prices
POST /v1/chat/completions- OpenAI shape, E2EE v2 headers, X-Privai-Tokens; streams, ends with privai.change
GET /api/attestation/:model?nonce=- raw upstream report, verified by the kit
GET /api/policy- signed measurement allowlist
GET /api/denoms- denomination keys and their on-chain commitment
POST /api/topup/order- {claimHash, refundTo} -> one-time shielded receiver
POST /api/topup/claim- {claimHash, secret, blinded} -> blind signatures
POST /api/redeem- {tokens, to} -> USDC to a Rings address, 0.01 fee
GET /api/feed, /api/books- hourly aggregates and rounded books, nothing per user