Model availability and supported fields change. Test streaming or tool use with the selected model
before depending on it in production.
Privacy boundary
Every request enters through Phala’s attested gateway. This TEE-only endpoint requires a verified upstream; evidence coverage varies by provider. Ordinary Anthropic SDK clients do not verify the gateway, pin its TLS key, or audit response receipts. Use the TypeScript ACI verifier or Private AI Proxy for client-side verification.
Troubleshooting
Symptom
Check
401 authentication error
Pass the Phala key as auth_token or authToken, not api_key or apiKey.
Request path contains /v1/v1/messages
Set the base URL to https://inference.phala.com, without /v1.
Model not found
Refresh GET /v1/models and use the exact model ID.
Unsupported field returns 400
Update the SDK, then remove beta-only fields not accepted by the selected model.