https://inference.phala.com/v1 requires verified upstream serving. Ordinary SDK calls use TLS; use a verification client to establish the gateway identity and pin the channel.
The platform runs inference behind an Attested Confidential Inference (ACI) gateway. The gateway is a
workload running inside a Trusted Execution Environment (TEE, Intel TDX). It does two things a normal
API cannot:
- It proves which code is running, in a real TEE, with an attestation report.
- It signs a per-response receipt that ties your exact request and response to that attested workload.
The two proof layers
Attestation report
Proves the gateway is a specific workload running in a genuine TEE, and publishes the keys it
signs with. Fetch it from
GET /v1/aci/attestation?nonce=.Signed receipt
Proves what the gateway received and returned for one request, signed by a key from the attested
report. Fetch it from
GET /v1/aci/receipts/{id}.Request flow
- You call the API over TLS, or add E2EE for field-level encryption.
- The gateway records your request and computes its hash.
- When verified serving is required, the backend verifies the upstream provider and enforces a channel binding before forwarding. If it cannot, it does not send your prompt (fail-closed).
- The response returns through the gateway, which signs the receipt after it has observed the final response bytes.
provider.aci_verified: true or session pins to require it.
Check the receipt to determine how a response was served.
What you can verify
After one request you hold enough to check, locally:- The gateway is a genuine TEE workload with a known identity (attestation report).
- The receipt was signed by a key that report endorses.
- The signed request hash matches the request you sent, and the signed response hash matches the response you received.
- When attestation was required, the upstream was verified and the channel was bound before your prompt was forwarded.

