> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tinfoil.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct API Access

> Access the Tinfoil inference endpoint directly via HTTPS (not recommended for production).

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](/verification/verification-in-tinfoil#audit-time-verification-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).

<CodeGroup>
  ```bash cURL theme={"dark"}
  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"}]
    }'
  ```
</CodeGroup>
