Private LLM APIs: Compare ZDR, TEE and E2EE13 min read2,624 words

Private LLM APIs: Compare ZDR, TEE and E2EE

Compare eight OpenAI-compatible private LLM APIs by retention, enclave security and encryption boundaries, then choose one that fits your workload.

private LLM APIszero data retentiontrusted execution environmentOpenAI-compatible APILLM data privacy
Private LLM APIs: Compare ZDR, TEE and E2EE

Private LLM APIs: What ZDR, TEEs and Encryption Really Protect

When you send a prompt to a hosted model, you're sending data outside your own systems. That's often fine for a public question - but it's a big deal when the request includes customer records, source code, legal documents, or internal business plans. And the word private doesn't tell you what's actually happening to that data.

Some providers offer zero data retention (ZDR): a contractual promise that they won't keep prompts or responses. Others run models inside a trusted execution environment (TEE), which aims to protect data while it's in use from the infrastructure operator. A smaller set encrypts requests so they can only be decrypted inside a particular enclave. These protections target different risks, and the point where encryption ends matters just as much as the encryption itself.

This guide compares eight OpenAI-compatible APIs using the distinctions that matter in production: retention, hardware isolation, where encryption is terminated, verifiable attestation, model choice, and integration cost. It's not a ranking. Provider documentation was checked on November 20, 2026; features and terms can change, so verify the current docs and your account settings before sending sensitive data.

What does private mean for an LLM API?

Privacy isn't one control. It's a set of controls across different parts of a request: what's stored, who can inspect data while the model runs, and which software or hardware can decrypt it. Picking a provider is really deciding which risks you want to reduce - and which assumptions your organization is willing to make.

Zero data retention is a policy, not an enclave

With ZDR, a provider says it won't routinely store prompts or responses after processing. That commitment is usually contractual, or described in product terms. It can work well when you need access to proprietary models (like GPT or Claude) and you don't want to deploy confidential-computing infrastructure yourself.

But ZDR by itself doesn't stop an operator - or an upstream model provider - from seeing the request while it's being processed. It also may not cover every data type or every endpoint. You need to check the exact definition, exceptions, which endpoints are included, the account settings, and how any upstream provider fits in. For example, OpenRouter documents a CSAM-related exception to its ZDR definition and notes that self-serve accounts can allow Safety Retention endpoints by default. Those "small" details change what the promise means in practice.

A TEE protects data in use, with hardware in the trust chain

A trusted execution environment uses hardware isolation to protect data while code runs. In the APIs compared here, providers describe setups using Intel TDX, AMD SEV-SNP, or NVIDIA confidential-computing GPUs. The point is to limit what the host operator can inspect in enclave memory during inference.

A TEE changes the trust model, but it doesn't remove trust. You're still relying on the processor or GPU vendor, the enclave configuration, and the software running inside the enclave. Also, a TEE doesn't automatically tell you the model is correct, that prompts are handled safely after processing, or that every component in the request path is protected. You should ask what runs inside the enclave: the gateway, the model worker, or both.

E2EE depends on where the request is decrypted

"End-to-end encryption" can sound reassuring, but it only helps if you know the endpoint where decryption happens. If a request is decrypted inside a gateway enclave and then forwarded to a model host, the gateway is protected - but the model may not be running inside the same trusted boundary. If decryption happens inside the enclave that runs the model, the request can remain encrypted across more of the delivery path.

Attestation is one way to check that boundary. A hardware-signed report records a measurement of the code running in an enclave. A verifier can compare that measurement to a published (or otherwise trusted) reference. This is stronger than trusting a provider's statement alone, but it still depends on trusting the verification process, the reference values, and the hardware vendor. Attestation verifies a measured workload; it isn't a full audit of the whole company, and it doesn't guarantee the code has no defects.

How do private OpenAI-compatible APIs compare?

All eight services here support an OpenAI-compatible interface in some form. That compatibility can make migration easier, but it doesn't mean identical model names, routing options, privacy guarantees, or SDK behavior. The table summarizes provider documentation checked on November 20, 2026. Not described means the feature wasn't found in the provider's documentation reviewed for this comparison; it doesn't prove the feature doesn't exist.

API Retention and privacy boundary TEE and encryption Attestation and model scope
Morse Private tier promises no retention by contract; enclave keeps no prompts or replies TEE tier; E2EE tier encrypts to the model enclave Verifier available; 87 open-weight models
OpenRouter Per-request ZDR option; provider routing can deny data collection TEE and E2EE not described on reviewed pages Open and proprietary models
TrustedRouter Prompt storage off; configurable ZDR or confidential routing Gateway runs in a TEE; TLS ends inside its enclave Image digest can be checked; open and proprietary models
Phala / RedPill Gateway says it does not store request or response bodies; upstream ZDR option Gateway in Intel TDX; GPU-TEE models; E2EE ends at gateway Verifiers available; open and proprietary models, with proprietary models outside the TEE
NEAR AI Cloud Says it does not log prompts or responses Intel TDX and NVIDIA GPU TEE; E2EE to model enclave for protected models Open-source verifier; open models in TEE, proprietary models outside it
Tinfoil Says it does not retain prompt or response content after replying Confidential VM and GPU options; encryption to model enclave SDKs and attestation verifier; open-weight models only
Prem Contract-based ZDR mode; separate confidential mode SEV-SNP or TDX plus NVIDIA; confidential mode supports encrypted requests Reticle verifier; open-weight models only
Privatemode Says prompts are not stored SEV-SNP, TDX and NVIDIA options; client proxy encrypts to worker Proxy-based verification and public reference values; open-weight models only

What stands out across the providers

OpenRouter focuses more on model choice and routing, including both open and proprietary models. Its ZDR option can be required per request, but you still need to confirm which upstream providers are eligible and how your account's Safety Retention settings are configured. TrustedRouter also supports open and proprietary routing, with a confidential-only host and a published image digest for its gateway workload.

Phala / RedPill and NEAR AI mix gateway or model-enclave options with access to proprietary models. The boundary isn't identical. For example, RedPill's documented E2EE ends inside its gateway, while NEAR AI describes encryption to the model enclave for protected models. NEAR AI's GPT, Claude, and Gemini options are described as Incognito, but they run outside a TEE. In other words: don't treat product labels as a substitute for checking the model-specific security path.

Tinfoil, Prem, and Privatemode focus on confidential inference for open-weight models. Tinfoil says ordinary OpenAI SDK calls skip its attestation check and aren't recommended for production. Prem separates contractual ZDR from confidential mode, which uses a local proxy and a verifier that checks CPU and GPU measurements. Privatemode uses a local proxy to encrypt prompts for a server-side worker.

Morse offers multiple tiers (private, TEE, and E2EE) and states a privacy floor per request. Its docs say the enclave keeps no prompt or reply, and it provides a verifier to compare the running release with open-source code. The service is pay as you go, with no subscription. As with every option in the table, verify the exact model, route, and terms you plan to use - don't assume one toggle applies the same way to every request.

How do you integrate and verify a private API?

For an existing application, the first integration step is often small: change the base URL, API key, and model identifier. OpenAI-compatible APIs can preserve a lot of your existing Chat Completions code. The security work isn't only a URL change, though. You also need to set the provider-specific privacy option, confirm what happens when a route is unavailable, and build verification into your deployment process.

Change the endpoint and set a privacy floor

For example, a Python client using Morse can request that only a TEE-backed route serves the call:

import os

from openai import OpenAI

client = OpenAI(

base_url='https://inference.trymorse.ai/v1',

api_key=os.environ['MORSE_API_KEY'],

)

reply = client.chat.completions.create(

model='z-ai/glm-5.3',

messages=[{'role': 'user', 'content': 'Summarize this contract clause.'}],

extra_body={'provider': {'min_privacy': 'tee'}},

)

print(reply.choices[0].message.content)

The migration pattern is similar elsewhere: use the provider's endpoint, credentials, and model ID, then pass its routing options through the SDK. For OpenRouter, the docs describe per-request options such as provider: {zdr: true}. The parameter name and failure behavior are provider-specific, so test them instead of assuming one service's settings will carry over.

A privacy floor matters because routing systems may have multiple eligible providers. If your requirement is that a request must never fall back to a lower privacy level, set the constraint on the request and confirm what the API does when it can't satisfy it. A preference isn't the same as a hard constraint. Morse and TrustedRouter document minimum-privacy options; OpenRouter documents a ZDR requirement; RedPill documents an upstream ZDR option. Check the current behavior and error response for the exact route you use.

Automate attestation checks

Don't treat verification as something you do once during procurement. Run the provider's verifier in CI or as part of deployment. Depending on the provider, verification might use a command-line tool, SDK, proxy, or a published image digest.

A release check should answer these practical questions:

  • Does the verifier fetch a fresh, hardware-signed report?
  • Does it compare the measurement to a reference you trust?
  • Does your application fail closed if verification fails (or can't run)?
  • Can you identify which model, route, and privacy setting were used for a request?

These steps reduce operational ambiguity. They don't validate every upstream service, model behavior, or contractual claim - that's on top of attestation, not replaced by it.

Include metadata and operations in your threat model

Even if the prompt is protected, other information may still be visible to parts of the service. Consider account identity, payment details, IP address, timing, token counts, routing metadata, and error logs. Also check what happens to uploaded files, tool calls, cached responses, and abuse-monitoring data.

The documentation summarized here focuses mainly on prompt and response handling, so treat it as incomplete. You'll still want to map the full data flow for your specific integration.

Which private LLM API should you choose?

Start with the model and workload, then pick the protection boundary that matches your real risk. A team that needs a proprietary model may make different choices than a team that's willing to run open-weight models in a verified enclave. There's no universal winner here: stronger isolation can reduce model choice or add integration and verification work.

Use this decision path

  • You need GPT, Claude or Gemini: OpenRouter, TrustedRouter, Phala / RedPill, and NEAR AI list proprietary-model access. Confirm the privacy mode for the exact model. In the documented options, proprietary inference may rely more on retention controls than on running inside an attested model enclave.
  • You need the model to run in attested hardware: Consider Morse's TEE or E2EE tiers, Tinfoil, NEAR AI's protected open models, Prem confidential mode, Privatemode, or Phala's GPU-TEE models. Verify the model-specific route - providers may offer both protected and unprotected destinations.
  • You need encryption to end inside the model enclave: Morse's E2EE tier, NEAR AI, Tinfoil, Prem confidential mode, and Privatemode describe this kind of boundary. RedPill's documented E2EE ends at the gateway, which is a different design.
  • You mainly need a contractual retention commitment: Compare ZDR scope, exceptions, account settings, and upstream-provider terms. OpenRouter, Morse's private tier, TrustedRouter, Prem ZDR mode, and other providers describe retention controls, but the definitions aren't interchangeable.
  • You need broad model selection with minimal code change: An OpenAI-compatible endpoint can reduce migration effort. It won't remove provider-specific work around model IDs, errors, streaming, tools, logging, and privacy parameters.

Treat privacy as a requirement, not a product label

Write down what data can enter a prompt, which operators may process it, whether it can leave a verified environment, and what evidence you require. Then test the intended route using non-sensitive data.

Also, make sure the request fails instead of silently switching to something weaker when your preferred protection isn't available.

This is where trade-offs become real. A proprietary model might perform better for a specific workflow. An open-weight model running in a TEE might give you a stronger, more inspectable boundary. A local proxy or attestation check adds deployment work, but that can be worth it for regulated data or high-impact customer information. For lower-risk prompts, a contractual ZDR commitment may be a reasonable operational choice. The deciding factor is the cost of exposure - not the marketing term that sounds best.

Conclusion

Private LLM APIs are easier to compare once you stop treating "privacy" as one feature. ZDR governs retention commitments; TEEs protect data in use within a hardware boundary; E2EE explains how far encryption reaches; and attestation gives evidence about the enclave's measured code.

Choose based on the data you handle, the models your product needs, and the boundary your risk model requires. Then verify the actual route, automate attestation where it's available, and test that privacy constraints fail closed. That's how you turn a provider's claim into something you can monitor operationally.

Frequently Asked Questions

No. ZDR is a provider commitment, generally defined by contract or product terms, not to retain prompts or responses. A TEE is a hardware-isolated environment intended to protect data while code runs. Attestation can help verify the measured workload, but neither control automatically replaces the other.
Yes. The providers compared here support OpenAI-compatible APIs in some form. You typically change the base URL, API key and model ID, then add provider-specific routing options. Prem and Privatemode also describe local-proxy approaches. Compatibility does not guarantee identical behavior across models or endpoints.
A verifier obtains a hardware-signed report about an enclave and compares its code measurement with a reference. Examples in provider documentation include Morse's verifier, Tinfoil's attestation tooling, Phala's verifier, NEAR AI's open-source verifier and Prem's Reticle. Verification is useful only if your system checks it and responds safely to failure.
Not necessarily. You need to know where decryption happens. If it ends at a gateway enclave, that gateway can process the plaintext and the model may run elsewhere. Some providers describe encryption that ends in the enclave running the model. Check the documented path for the specific model and request.
Set a request-level privacy constraint where the provider supports one, and verify the documented behavior when no eligible route is available. Test that failure path. Do not rely on a dashboard preference or a routing label unless you have confirmed that it is enforced for every request.

Related articles