The Phala endpoint is TEE-only: upstream verification is required even when this block is omitted.
aci_verified can express that requirement explicitly, and aci_session_ids narrows it to specified verified channels. No request option disables the endpoint policy. See Provider Verification.
Require an attested upstream
Add theprovider block to the request. Every inference endpoint accepts it: /v1/chat/completions, /v1/messages, /v1/responses, /v1/embeddings, and /v1/completions.
503 (upstream_verification_failed). Failover retries stay inside the attested set, so a plaintext upstream never receives the prompt as a fallback.
Setting "aci_verified": false, or omitting the field, adds no request-level constraint. The endpoint still requires verified serving.
A request that requires an attested upstream cannot also opt out of the attestation. No request header or option relaxes this constraint once
aci_verified is set.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.
session_id as a bare 64-character lowercase hex digest with no prefix, the verifier that produced it, its channel binding, and an expires_at timestamp. ?upstream_name= filters the same list by upstream. See Get Session.
The most reliable id is the one that already served you. Every response’s receipt names the session that served it, so a client can pin follow-up requests to the channel it just used.
Pin a request to one or more of them. The example id below was obtained from the live sessions endpoint; replace it with a currently accepted id before sending:
412 (session_not_accepted) and no prompt is sent:
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
true is the only accepted value. Any other value, including false, returns 400. Omit the parameter for the full catalog.
Request validation
The gateway parses the attestation fields itself and rejects anything it cannot read, rather than treating it as an absent constraint. Every case below returns400 with type invalid_request_error and forwards nothing.
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:- The route is classified as an attested provider.
- Verification is required for that route and cannot be waived by the request.
- Verification returns a verified result and an enforceable channel binding.
- The request is forwarded over the bound channel.
Verify that it held
A successful attested request returnsx-receipt-id. Fetch that receipt and read its upstream.verified event:
session_id names the channel that served the request, and is the id to pin for follow-up requests. The cited session holds channel_binding, typed claims, and evidence; inspect its upstream_name rather than assuming a catalog provider name. 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.
Related
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.
