Skip to main content
You can access the Tinfoil inference endpoint directly via HTTPS, but this is not recommended in production:
  1. No privacy guarantee: Direct access skips the automatic attestation verification our SDKs perform, so you have no cryptographic proof your data is processed in a secure enclave and no protection against man-in-the-middle attacks. You still get auditability through attestation transparency, but this only allows post-hoc verification and is a much weaker guarantee.
  2. Lower performance: Our SDKs automatically choose the best secure router / enclave and load balance across them. Direct access can degrade performance.
We maintain direct HTTPS compatibility for debugging and simple testing (e.g., inference requests via cURL).
curl -X POST https://inference.tinfoil.sh/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<MODEL_NAME>",
    "messages": [{"role": "user", "content": "Hello world"}]
  }'