On this page
  1. 01What “private” has to mean
  2. 02Four ways to build private inference
  3. 03How trusted execution environments work
  4. 04Proving what’s running: attestation
  5. 05How Nito routes privately
  6. 06Verify it yourself
  7. 07The trust model
  8. 08A drop-in switch
  9. AAppendix

A model router is a simple, useful idea: one API, any model. You name the model you want, and the router finds a provider to run it. OpenRouter is the best-known example, and it’s become the default way developers reach many models through a single key.

Routing can also be a serious security vulnerability, because every hop is one more place your prompt can be read. Most routers, OpenRouter included, decrypt your request and read it in plaintext. The provider decrypts it again to run the model, and along the way your prompt can pass through load balancers, logging pipelines, caches, and the people who run them. Each link in that chain is protected by policy at best, so your privacy depends on every party keeping its promise and never being breached. The longer the chain, the more places it can break, and in recent months, it has broken again and again.

Who can read your prompt on its way to the model?

Your app

Summarize this contract before Friday's call.

Encrypts it for the TEE

The router

276d066c8 7a0d b6ef805b bf537b 833f981c a3f6b

Sees ciphertext only

Provider's servers and staff

8dc36cc2e d063 1c45e6b1 15b9d1 e995fe72 095c1

Locked out

Where the model runs

Summarize this contract before Friday's call.

Readable only in the TEE

ExposedProtected

In a single week, three incidents came to light. An attacker read stored prompts on GMI Cloud’s systems, OpenRouter warned customers that a third party may have read prompts sent to MiniMax models, and Prime Intellect reported that a modified model answered requests to its DeepSeek V4.1 Flash endpoint for about two days. The same week, Together disclosed that an unauthorized party had obtained a subset of prompts sent to it. Enterprises aren’t immune either. A breach at Fireworks may have exposed Notion AI chat transcripts that, according to Notion, Fireworks had contractually committed not to retain.

The need for private routing has never been clearer, and routers are now scrambling to bolt on encryption and trusted hardware. Nito already runs this way in production. Every model in our catalog runs inside a trusted execution environment (TEE), on a path engineered for full performance. End-to-end encrypted requests are the standard: they stay sealed from your device all the way to the model. For apps that can’t yet encrypt on the device, confidential requests offer an alternative that still runs every model in a TEE.

Running TEEs at scale takes specialized expertise, which is why we recently acquired Switchboard, a team with deep experience running and scaling TEE-based platforms. That expertise is now accelerating our push to build the leading verifiably private inference router.

This guide explains private inference from first principles: why ordinary hosting can’t keep a prompt private, how TEEs change that, how to verify it yourself, and how we built a router on top of it.

01What “private” has to mean

“Private” gets used loosely in AI. It can mean five different things, and they’re easy to blur.

  • Confidentiality in transit. Data is encrypted between machines, usually with TLS. That’s necessary everywhere, but it says nothing about what happens once the data arrives.
  • Confidentiality at rest. Data is encrypted on disks and in databases. Whoever holds the key can read it.
  • Confidentiality in use. Data stays protected while it’s being processed. This is the one inference needs, because the model has to work on your prompt.
  • Retention and training. Whether requests are logged, stored, or used for training. This is a company policy: invisible from outside, and subject to change.
  • Verifiability. Whether you can get cryptographic evidence of which hardware and code handled your request, and confirm your connection actually reached them.

Zero data retention (ZDR) has been the default answer so far. It’s a contract about storage: the provider agrees not to keep your prompts after processing them. That covers less than many assume. Your prompt is still readable on the provider’s machines during processing, by the serving software and anyone with server access. The terms also often carve out legal holds, abuse monitoring, and stateful features. And the only evidence that ZDR is honored is the provider’s own word. In the Fireworks breach, attackers reached Notion data that, under the contract, should never have been stored.

Routing adds one more question: what happens when the private path goes down? If a request silently falls back to an ordinary server, privacy was never really enforced. A private router has to fail closed.

02Four ways to build private inference

There are four broad ways to keep a prompt private while a model runs on it. Two questions separate them: what do you have to trust, and what could someone with full control of the server see?

ApproachWhat you trustWhat someone controlling the server seesTradeoff
Local inferenceYour own deviceNothing, because there is no serverCapacity: the strongest open models need several data-center GPUs’ worth of memory
Hosted inference under contract (ZDR)The provider’s policy, staff, and auditsYour prompts, outputs, and the model’s working memory, in plain textPrivacy rests on promises you can’t verify
Confidential computing (TEEs)The CPU and GPU makers’ hardware, plus a specific build you verify before sending anythingOnly encrypted memoryYou trust the chip vendors, and there is modest performance overhead
Cryptographic computation (FHE, MPC)Math, plus (for MPC) parties that don’t colludeOnly encrypted dataOrders of magnitude slower, and limited to models far smaller than today’s leading open models

Of the four, only TEEs keep the operator out while running today’s largest open models at production speed. The rest of this guide focuses on that approach.

03How trusted execution environments work

A model can only work on your prompt once it’s decrypted. On an ordinary server, anyone who controls the machine can then read it from memory, whether that’s the cloud provider’s staff, an attacker with admin access, or the software that manages the machine. Encryption in transit and at rest doesn’t help at the moment that matters, while the model is reading your prompt.

A trusted execution environment solves this inside the processor itself, by enabling confidentiality in use. The chip isolates the workload and encrypts its memory with a key that never leaves the chip, so the machine’s owner and everything else on the server see only scrambled bytes. The chip can also produce a signed report of exactly what code is running inside, called an attestation, which lets you verify it from the outside.

AI inference uses two processors, and each needs this protection.

The CPU side: a confidential VM. Cloud servers run many virtual machines (VMs) on shared hardware, managed by software called the hypervisor. On an ordinary server, the hypervisor decides which memory each VM gets and can read any of it. A confidential VM takes away that power. On AMD SEV-SNP, the processor encrypts each VM’s memory with its own key and stops the hypervisor from remapping or replaying it. Intel TDX does the same through a small Intel-signed module that sits between the hypervisor and each VM. The serving software runs here: it receives your request, decrypts it, splits it into tokens, and turns the model’s output back into text.

What can the rest of the server see in your VM's memory?

Cloud operator

Sees ciphertext

f43ad3395 47da 83bc5d28 8c2048 500c65e9 70c38

Hypervisor

Sees ciphertext

276d066c8 7a0d b6ef805b bf537b 833f981c a3f6b

Host operating system

Sees ciphertext

5a90399fb ad30 e912b38e e286ae b662cb4f d629e

Admin-level attacker

Sees ciphertext

8dc36cc2e d063 1c45e6b1 15b9d1 e995fe72 095c1

Your VMConfidential VM

Summarize this contract before Friday's call.

Readable only inside

Memory key, held inside the CPU

The GPU side: confidential computing mode. The model itself runs on GPUs. The weights, the intermediate calculations, and the KV cache built from your prompt all live in the GPU’s own memory, which a confidential VM doesn’t cover because the GPU is a separate chip. NVIDIA’s confidential computing mode, available from the Hopper generation onward, walls GPU memory off from the host, encrypts all data moving between CPU and GPU, and lets the GPU prove itself with its own NVIDIA-signed attestation.

Together, the two chips form one TEE. The GPU is assigned to a single confidential VM, everything crossing between them is encrypted, and each chip produces its own attestation. A complete check verifies both.

Performance holds up. In benchmarks on H100 GPUs, confidential mode added below 7% overhead for most of the LLM workloads tested, with nearly zero overhead for larger models and longer sequences (Zhu et al., 2024). The heavy compute runs inside the GPU at full speed, and encryption applies only to data moving in and out.

The hardware keeps everyone outside the TEE from seeing your prompt, with little effect on how fast the model runs. Inside the TEE, though, the serving software works on your prompt directly, so you also need to know that software is trustworthy: that it isn’t logging your prompt or sending it anywhere. Attestation lets you check exactly which software is running before you send anything.

04Proving what’s running: attestation

Encryption gets your prompt safely to whoever holds the key. Attestation tells you who that is. It’s how a machine proves, with a signature from the chip maker, that it’s genuine hardware running exactly the software you expect, from the operating system to the serving code that runs the model. It also proves that the key you’re about to use belongs to that machine.

It works in five steps:

  1. Measure. As the confidential VM boots, the hardware takes a fingerprint (a cryptographic hash) of the first code it loads, and each stage fingerprints the next before handing over: firmware, kernel, settings, and the application.
  2. Report. The workload asks the processor for a signed report containing those fingerprints, the firmware’s security level, and 64 bytes of data of its choosing. The signing key traces back to the chip maker.
  3. Check. A verifier validates the signature, confirms the firmware is current, and compares the fingerprints against approved builds.
  4. Bind. The workload places a fingerprint of its own encryption key in those 64 bytes. Your app then encrypts to, or connects to, exactly that key, so the machine that proved itself is the machine you’re talking to.
  5. Stay fresh. Your app either gets a random challenge included in the report or completes a live encrypted handshake with the bound key. Either way, an old report can’t be replayed.

Attestation

  1. Measure
  2. Report
  3. Check
  4. Bind
  5. Stay fresh

The machineFingerprint e96f

Signed report Fingerprint e96fKey 7d3eChallenge 4f81

Your appSafe to send

Try an attack:

Binding (step 4) is the step implementations most often omit. Without it, a valid report proves only that an approved machine exists somewhere, not that your traffic reached it.

A fingerprint is only meaningful if you can trace it back to published source code. The strongest setups build each release in public, sign it, and record it in a public transparency log, so anyone can confirm that the measured code is the published code. Measurement also has to cover everything that runs. The strongest setups boot from a verified chain onto read-only, integrity-checked disks, so no unmeasured code or data can be loaded later.

Fingerprints can cover the model too. On some of our partners, including the one this guide uses as its example, the attested boot configuration pins the fingerprint (a dm-verity root hash) of a read-only disk holding each model’s weights, and every read from that disk is checked against it. A swapped or modified model would produce a different fingerprint, and in that partner’s design, its router checks the fingerprint before sending requests to the machine.

Attestation replaces a company’s promise with something far narrower and verifiable: one specific, published build that anyone can inspect.

05How Nito routes privately

From your code’s point of view, Nito works like OpenRouter: one OpenAI-compatible API at a single base URL, with streaming and tool calling. You get leading open models, including Kimi K3.1 Pro, DeepSeek V4.1 Flash, and Gemma 4 31B, each with a published price per million tokens. Each app or agent gets its own API key with a daily, monthly, or total spending cap, and usage is prepaid.

Underneath, every model in Nito’s catalog runs in a TEE, and the router is designed to do its job without reading your prompt. A router has four jobs: identify you, see which model you asked for, send the request to the right machine, and bill for it. None of them requires reading the content. Your app seals each request on your device to a key the TEE has proven it holds, so the gateway can pass it along but never open it.

Nito works with several hardware partners, and they don’t all work the same way. Every one runs models in TEEs, but they prove themselves, encrypt requests, and report usage differently. Most of our models run on one partner’s route, which this guide uses as its example.

The journey of an encrypted request

Call any model ID ending in :encrypted from a client that supports encryption. Every model in today’s catalog has an encrypted version, on the Chat Completions API. Here’s the full journey of one on the example route:

  1. Your app fetches the enclave’s attestation through Nito.
  2. Your app verifies it directly, using the hardware partner’s open-source verifier: the signature chain, the signed release and its public log entry, and the key binding.
  3. Your app takes the encryption key from the verified report, so it never has to rely on Nito for keys.
  4. Your app encrypts the entire request to that key with HPKE (RFC 9180), including messages, system prompt, conversation history, tool definitions, tool calls, and tool results.
  5. Nito’s gateway independently verifies the same enclave, locks its connection to that enclave’s key, and forwards your encrypted request. It never resends it and has no unencrypted path.
  6. The enclave decrypts the request, runs the model, and encrypts the reply for your session alone. The reply is authenticated, so your app can detect any tampering.

Other partners use per-message encryption instead: your app encrypts each message to the model’s attested key with an authenticated cipher, and tool definitions and results are encrypted on routes that support encrypted tools. Where they aren’t supported, the gateway rejects tool requests rather than sending them unencrypted. The attestation response tells your client which protocol to use. Either way, the gateway relays ciphertext it holds no key to open, and your client’s own verification is what guarantees that only the enclave can decrypt it.

The router still does all four of its jobs, using only the metadata around each request.

What the gateway seesWhat stays encrypted
Your account and API keyYour prompt and system prompt
The model ID and enclave addressThe reply and the model’s reasoning
When the request was sent, and its encrypted sizeThe conversation history
Token counts reported by the providerTool definitions, calls, and results (on the example route, and on other routes that support encrypted tools)

With per-message encryption, the gateway can also see the shape of the request, such as how many messages it has and who each one is from.

Billing runs on token counts. The provider reports how many tokens each request used, and Nito charges from those counts. On the example route, those counts come straight from the enclave over the gateway’s verified connection. The gateway doesn’t store the ciphertext. All Nito keeps is a usage record: account, model, token counts, cost, and timing.

The same route can also cache prompts for encrypted requests. Nito issues each user in your organization an unguessable cache tag, which your app places inside the encrypted request, so no other account can reuse your cache.

06Verify it yourself

You can check the evidence yourself without taking Nito’s word for it. Nito returns each partner’s original evidence: per-model hardware quotes on some routes, and the router enclave’s signed bundle on the example route, alongside our own verifier’s result. You check it with the chip makers’ own tools and the partner’s open-source verifier.

Your app runs these checks automatically before encrypting anything. To check a model by hand, request its evidence from GET /api/v1/attestation with a fresh 32-byte random challenge and the model-binding headers described in the docs. The response tells you which evidence format the model uses. These two are the most common.

  • Quote-bound evidence (Intel TDX with NVIDIA GPUs). Validate the CPU quote with Intel’s DCAP library and confirm the firmware is current. Find your challenge inside the quote. Validate the GPU evidence with NVIDIA’s Remote Attestation Service where it’s included. Confirm the model’s key is bound into the evidence.
  • Connection-attested evidence (the example route, AMD SEV-SNP). Verify the bundle with the partner’s open-source verifier against the release repository you trust, which checks the report against AMD’s certificate chain and the fingerprints against the signed release. Then send encrypted requests only to the encryption key it verified. This bundle doesn’t contain your challenge and may be a few minutes old. Freshness comes from the encrypted exchange itself. Only the enclave holding that key can decrypt your request and send back a reply your app can authenticate.

The docs walk through both formats step by step in Verify It Yourself, and Appendix A works through an Intel TDX quote in full.

Attestations can also be checked onchain. Solana Confidential Compute, built with Nito and now in beta on Solana devnet, gives developers open-source tools for building private AI with hardware attestations verified on Solana. Start building at solana.ai.

07The trust model

TEEs narrow what you have to trust, from people and policies down to hardware and published code. Here’s exactly what that boundary includes, so you can evaluate it yourself.

  • The chip makers. Intel, AMD, and NVIDIA hardware, firmware, and signing keys. Their designs are publicly documented and continuously tested by independent researchers, flaws are disclosed and patched, and every attestation report shows the firmware version, so outdated machines can be rejected.
  • Physical security. TEEs defend against remote and software attacks, not against someone with their hands on the server. In 2025, researchers showed with TEE.fail that an attacker with physical access and a memory-bus interposer could extract secrets from TDX and SEV-SNP machines, and on Intel, the keys that sign attestation reports. The attack needs someone physically inside the data center, so the data centers hosting the hardware are part of the boundary.
  • The release process. Attestation proves which build is running. Behind each build are the public pipeline, the signing, the transparency log, and whoever approves releases. A public build tells you what ran, and reviewing the code is what tells you it behaves well.
  • The hardware partners. On the example route, Nito and your app verify the partner’s router enclave directly. Your check of that enclave is the first link in the chain. Its attested code is what verifies the GPU machines and protects the hand-off, so you rely on it for that step. On other routes, the evidence describes a TEE serving the model, but Nito doesn’t verify it. Encryption closes that gap, because only the attested key can decrypt your request. On some partners, that key belongs to the partner’s attested gateway, which then hands the request to its GPU machines.
  • Your device, which holds your prompt before encryption and the reply after decryption. In the web app, that includes the app code Nito serves, and web search runs before encryption.

A few things are outside what any TEE protects, by design. A host can always switch a machine off, networks can see that a request happened along with its timing and approximate size, and anything you send to an external tool is visible to that tool.

That’s the trade TEEs make: in place of trusting every operator, staff member, and policy along the path, you trust a small group of heavily audited chip makers whose hardware already secures the world’s cloud. In return, the operator stays out while today’s strongest open models run at production speed, with evidence you can check for yourself.

08A drop-in switch

If your app already uses the OpenAI SDK, switching to Nito starts as a config change: swap in Nito’s base URL, your Nito API key, and a Nito model ID. A confidential request works with the SDK as it is. Verify the hardware behind the model first, then send your prompt.

python

import os, secrets
import requests
from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey
from openai import OpenAI

BASE = "https://app.trynito.ai"
KEY = os.environ["NITO_API_KEY"]
MODEL = "moonshotai/kimi-k3.1-pro:confidential"

# Verify the TEE serving this model first.
binding_key = X25519PrivateKey.generate()
binding_pub = binding_key.public_key().public_bytes_raw().hex()
evidence = requests.get(
    f"{BASE}/api/v1/attestation",
    params={"model": MODEL, "nonce": secrets.token_hex(32)},
    headers={
        "Authorization": f"Bearer {KEY}",
        "nito-attestation-model-binding-key": binding_pub,
        "nito-attestation-model-binding-version": "2",
    },
).json()
# Open the sealed binding for the exact model and verifier (see the docs).
binding = open_model_binding(evidence["model_binding"], binding_key)
verify_evidence(evidence, binding)  # the partner's open-source verifier

# Only then send the prompt.
client = OpenAI(base_url=f"{BASE}/v1", api_key=KEY)
reply = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": "Summarize this support thread."}],
)

An encrypted request follows the same path. The one difference is that your app seals the prompt to the verified key before it leaves, so the router only ever relays ciphertext. Here encrypting_client stands in for the partner’s client library, which wraps the OpenAI client and encrypts on your device:

python

MODEL = "moonshotai/kimi-k3.1-pro:encrypted"

# Verify the TEE serving this model first: the same request as above,
# plus trust_tier="encrypted".
binding = open_model_binding(evidence["model_binding"], binding_key)
enclave = verify_evidence(evidence, binding)  # returns the verified key

# Only then send the prompt, sealed to that key on your device.
client = encrypting_client(base_url=f"{BASE}/v1", api_key=KEY, enclave=enclave)
reply = client.chat.completions.create(
    model=binding.model,
    messages=[{"role": "user", "content": "Summarize this support thread."}],
)

On the example route, the verifier and the encryption library are the hardware partner’s open-source ones, the same ones Nito’s web app uses. The encrypted requests guide covers the protocol. Get your keys and see models and pricing on the Platform page.

Make your next request private.

Create a key, pick a model, and change one base URL.

Appendix

A. Verifying an Intel TDX quote end to end

A verifier that wants to appraise a TDX quote without trusting anyone’s verdict does roughly this.

  1. Parse the quote: the header, the TD report body (MRTD, RTMR[0..3], TDATTRIBUTES, the TEE TCB SVN and REPORTDATA) and the ECDSA signature section.
  2. Validate the PCK certificate chain in the quote up to Intel’s root CA, and check each certificate against Intel’s revocation lists.
  3. Verify the quoting enclave’s report with the PCK public key, check it against Intel’s published QE identity, and confirm that its report data commits to the attestation key.
  4. Verify the ECDSA P-256 signature over the quote header and TD report body with that attestation key.
  5. Look up the platform’s TCB info from Intel’s provisioning service and classify its status (UpToDate, SWHardeningNeeded, OutOfDate, Revoked and so on). Your policy decides which statuses are acceptable.
  6. Check TDATTRIBUTES for debug mode. A debuggable trust domain fails a production policy.
  7. Compare MRTD and the RTMRs, or the event log replayed into them, to reference values for the approved build.
  8. Check that REPORTDATA equals the expected commitment, for example a hash of your challenge and the workload’s public key, and that the challenge is the one you just generated.

Intel’s DCAP quote verification library implements steps 2 through 5. AMD SEV-SNP follows the same shape: the report is signed by a VCEK key unique to the chip and its firmware version, whose certificate chains through AMD’s ASK to its ARK root, the launch measurement is compared to a reference, and REPORT_DATA carries 64 bytes chosen by the workload. GPU evidence uses NVIDIA’s certificate chain, reference integrity manifests and revocation checks, directly or through NVIDIA’s remote attestation service.

B. Further reading

C. Glossary

Attestation

A signed report from the hardware saying what it is and which code it's running, so someone else can check it.

Confidential VM

A virtual machine whose memory the processor encrypts with a key that never leaves the chip, so the host can't read it.

Trusted execution environment

A hardware-protected area of a processor. Code and data inside are isolated from the rest of the machine. Often shortened to TEE.

Hypervisor

The software that runs and manages virtual machines on a server. On an ordinary server it can read every machine's memory.

Measurement

A cryptographic fingerprint of the code loaded into a TEE. Change one byte and the fingerprint changes.

Trusted computing base

Everything a guarantee depends on working correctly. The shorter and more checkable, the better.

Threat model

A plain statement of what a system protects, from whom, and what it still trusts.

Relying party

Whoever acts on an attestation verdict, for example by releasing a key.

Verifier

The service that checks attestation evidence against a policy.

Freshness

Assurance that data is the latest version, not an authentic older copy.

Sandbox

A software boundary that limits what a program can see and reach.

Prompt injection

Instructions hidden in content the AI reads, such as an email, that try to make it do something you didn't ask for.

Fully homomorphic encryption

Encryption that lets a computer work on data without decrypting it. Strong, and still very slow for large AI models.

Intel TDX

Intel Trust Domain Extensions: confidential VMs called trust domains, isolated from the host by a CPU-resident TDX module and per-domain memory encryption.

SEV-SNP

AMD Secure Encrypted Virtualization with Secure Nested Paging: per-VM memory encryption plus a reverse map table that enforces page ownership.

MRTD

The TDX build-time measurement: a hash of the trust domain's initial contents, typically its virtual firmware.

RTMR

One of four TDX runtime measurement registers, extended during boot with the firmware configuration, kernel and workload.

REPORTDATA

64 bytes a TDX workload chooses to include in its signed report, usually a hash of a challenge and the workload's public key.

TCB level

The security version of a platform's firmware and microcode. Verifiers use it to reject machines missing security fixes.

PCK certificate

The Intel-issued certificate that ties a platform's attestation key back to Intel's root of trust.

SPDM

The Security Protocol and Data Model, a DMTF standard devices such as NVIDIA GPUs use to authenticate and report measurements.

HPKE

Hybrid Public Key Encryption (RFC 9180): encrypt to a recipient's public key using a key exchange, a key derivation function and an authenticated cipher.

KV cache

The attention keys and values a model stores for the tokens it has already processed. It is derived from your prompt, so it needs the same protection.

Bounce buffer

A staging area in shared memory where data is encrypted before the GPU or the confidential VM picks it up, so the host only handles ciphertext.