Interact with Tinfoil using the same OpenAI Chat Completions API standard:
-from openai import OpenAI
-client = OpenAI()
+from tinfoil import TinfoilAI
+client = TinfoilAI()
TinfoilAI
supports the same interface as the OpenAI
Python clientView on GitHubTinfoil Client
The Tinfoil client provides secure, verified access to our API:
- Requests are automatically blocked if verification of the enclave fails
- Compatible with the OpenAI API endpoint, making it a drop-in replacement
Model Inference with Tinfoil
Available Models
Loading models...