Skip to main content
The Phala endpoint is TEE-only: upstream verification is required even when the provider block is omitted. No request option disables this policy. This host always filters the catalog to TEE-capable models, even with tee=false or tee=1; omit the query to get the same catalog. The separate zdr filter accepts only true. Attested routing restricts a request to an upstream that the gateway verified before sending the prompt. Verification runs inside the TEE, produces an enforceable channel binding, and fails closed: if no eligible upstream verifies, the prompt is never forwarded. Use it when a prompt must not reach a provider whose execution environment you cannot check. The examples below use a private model; see List the models you can use to find one. Two levels of constraint are available:

Require an attested upstream

Add the provider block to the request. JSON inference routes accept it, including chat, Messages, Responses, embeddings, legacy completions, image generation, SystemOne, reranking, and speech synthesis. On multipart audio transcription and image edits, send the same JSON object in the single X-ACI-Provider header instead. Check service_capabilities.supported_multipart_constraint_endpoints in the attestation report. The selected model must have a route for the operation. A gateway capability does not guarantee model availability. When verification is required by the request or endpoint policy, a model that passes admission but has no eligible verified, attested upstream fails with 503 upstream_verification_failed before the prompt is sent. Failover retries stay inside the attested set, so an unverified upstream never receives the prompt as a fallback. Admission can reject a request earlier: a TEE-only endpoint rejects an existing non-TEE model with 404, and routing constraints such as provider.zdr can leave no eligible route (404). An unknown model returns 404 model_not_found. On an endpoint where verification is optional, setting "aci_verified": false or omitting it adds no request-level attestation constraint. A TEE-only endpoint forces verification even when the client sends false or omits the field. This does not waive validation: combining false with session pins is still rejected as contradictory.
Requests that send the removed X-Upstream-Verification header return 400 with type invalid_request_error and the message X-Upstream-Verification is no longer supported; use provider.aci_verified. Remove the header and use the request-body controls above.

Pin a request to one attested channel

aci_verified accepts any upstream that is verified right now. To require one specific attested channel, pass its session id. This is useful when you have already inspected a session’s evidence and want subsequent requests to reach that exact channel or fail. List the sessions that can serve your model. The unfiltered list covers every upstream the gateway has verified, so filter it: a session belonging to another upstream will never match your request. Each entry carries a session_id as 64 lowercase hex characters, the verifier that produced it, its channel binding, and an expires_at timestamp. ?upstream_name= filters the same list by upstream. See Attested sessions. The most relevant id is the one that already served you. A verified response’s receipt names the session that served it, so a client can pin follow-up requests to the channel it just used. The example id is a snapshot from the public sessions list. Replace it with a current id for your model before sending the request. Pin a request to one or more of them: Listing several ids means any one of them may serve the request. If none of them matches a currently verified channel, the request fails with 412 and no prompt is sent:
A session id is tied to one verified channel and validity period. Re-verification can reuse an unexpired session when the verified material is equivalent. Changed material, or verification after the session expires, produces a new id. Read a current id shortly before you pin it, and expect a pinned id to stop matching. A pin that stops matching is a failure, never a silent fallback to a different channel. Do not retry a 412 with the same unavailable pins; inspect current sessions and approve a new set before changing the request. aci_session_ids implies aci_verified. Passing session ids together with "aci_verified": false is rejected as a contradiction rather than resolved in either direction.

List the models you can use

Embedding models have their own catalog, which takes the same parameter: On an endpoint where the catalog filter is optional, tee accepts only true; any other value, including false, returns 400. Omit the parameter for its full catalog. On a TEE-only endpoint, the filter is forced: any tee value, or omitting it, returns only private models. The independent zdr filter accepts only true on either endpoint type; omit it to leave retention unconstrained. ?zdr=true composes with the endpoint’s TEE filter. TEE-only serving does not imply zero data retention.
?tee=true and provider: {"aci_verified": true} read different properties. The catalog filter reports a model’s own is_tee capability flag. The routing constraint is enforced against the provider actually serving the request.A model listed under ?tee=true can still return 503 for an attested request when none of its live deployments is on an attested provider. The catalog tells you which models are offered confidentially. Only the gateway decides what a given request may reach.
The requested model id, claims.extra.canonical_model_id, and measured --served-model-name may use different spellings; inspect the mapping under your policy rather than hard-coding a normalization rule.

Request validation

The gateway parses the attestation fields itself and rejects anything it cannot read, rather than treating it as an absent constraint. Invalid entries below return 400 with type invalid_request_error and forward nothing; the table also shows valid controls. aci_verified and aci_session_ids are read by the gateway and removed before the request reaches a provider. They compose with the other provider fields, such as zdr.

What the constraint guarantees

The check runs before any prompt bytes leave the gateway:
  1. The route is classified as an attested provider.
  2. Verification is required for that route and cannot be waived by a request header.
  3. Verification returns a verified result and an enforceable channel binding.
  4. The request is forwarded over the bound channel.
Verification evidence is cached for a short interval and refreshed in the background, so a verified result may come from a recent check rather than one performed at that instant. The channel binding is enforced on every connection. If the upstream presents a key or certificate that does not match the binding, the gateway re-verifies and retries, then fails. A request is never served over a channel that does not match the evidence it was verified against. The constraint applies per request. The gateway evaluates each failover candidate independently and can use a current cached verification and attested session.

Verify that it held

A completed attested request returns x-receipt-id. ACI-constrained streams, including all TEE-only endpoint streams, and E2EE streams are never early-committed. Fetch the receipt after completion and read its upstream.verified event:
The example session id is a snapshot. In your receipt, session_id names the channel that served the request and is the id to pin for follow-up requests. Inspecting "result": "verified" and "required": true with curl and jq does not verify the receipt signature or the gateway’s attestation. Verify those and the request and response hashes before accepting the receipt as proof that the constraint held. See Verify a response. The request you sent is bound into the same receipt through request.received.body_hash, so you can prove which constraint you asked for alongside the result you got.

Receipts and Sessions

What a session id identifies and how long it lives.

Channel Binding

How a verified channel is enforced on the wire.

Zero Data Retention

The retention constraint, which composes with this one.

Chat Completions

The full provider routing block.