Skip to main content
Use https://inference.phala.com/v1 as your SDK base URL. This host serves TEE-capable models and requires verified, channel-bound upstream serving on every inference request. Account access and billing use your Phala API key.

Enforced constraints

The catalog’s is_tee flag describes capability. A listed model can still return 503 if no eligible provider is currently verified. The host policy applies across failover candidates and cannot be relaxed by a client.

Make a request

List current model ids before choosing one:

Apply additional policy

Use provider.aci_session_ids to restrict the request to sessions you have independently appraised. Use provider.zdr to require zero data retention. These constraints apply together with the host policy; see Attested Routing and Zero Data Retention.

Verify the exchange

Fetch the receipt using x-receipt-id and require the upstream.verified event to record result: "verified" and required: true. Verify the gateway attestation, receipt signature, exact body hashes, and cited session. Inspecting JSON alone is not verification. The TypeScript ACI Verifier supplies a verified transport and receipt checks.

API overview

Attested routing