https://inference.phala.com/v1,
or an Anthropic client at https://inference.phala.com (its SDK appends /v1/messages), and send
your key as a bearer token.
Base URL
404 and requires verified upstream serving. See Endpoint policy.
Authentication
Send an API key as a bearer token for inference and private artifacts:Endpoints
Inference
Each model has an
is_tee boolean: is_tee: true means it can be served confidentially. The
receipt’s upstream.verified event confirms a specific response was. See
Models.
Verification
To verify a response: fetch the attestation report with a fresh
nonce, read the x-receipt-id
header on your response, fetch its signed receipt, then check the receipt signature under the attested
keyset and compare the request and response hashes. See Verify a response.
Legacy
Legacy endpoints kept for backward compatibility with earlier API clients. New integrations should use the canonical endpoints above.
The Phala endpoint always requires verified upstream serving. See Endpoint policy.
Request format
Most POST requests use JSON. Audio transcriptions usemultipart/form-data.
Response format
Response headers
Inference responses include verification headers:
To select a model, set the
model field in the request body. For end-to-end encryption, send the
X-E2EE-* request headers from the E2EE guide.
Errors
Errors return a JSON body with an appropriate HTTP status./v1/messages uses the Anthropic error
envelope, with top-level type: "error", an error object, and a request_id. Other endpoints use
the OpenAI-compatible shape shown here:
See Error handling.

