Available SDKs
Read the full documentation for your SDK:Python
JavaScript
Go
Rust
Swift
CLI
Why you should use the SDKs
The SDKs make it easy to integrate Tinfoil into your applications without having to worry about encryption, attestation verification, or other security pitfalls. All the privacy and integrity features offered by Tinfoil are automatically verified for you and all connections are blocked in case of verification failure. Each SDK is designed to be a drop-in replacement for OpenAI clients. This means you can continue to use the chat completions or responses API formats with Tinfoil models. However, not all backend features are supported or enabled for all models. If you experience issues, please don’t hesitate to contact us. For accessing the inference endpoint directly via HTTPS without an SDK (which we discourage for production workloads), see Direct API Access.Guides
Prompt Caching
Reuse prompt prefixes with automatic per-user cache scoping.
Web Search
Enable AI models to search the web with optional PII protection.
Tool Calling
Learn how to use function calling capabilities with AI models.
Structured Outputs
Use JSON schema validation for reliable data extraction.
Image Processing
Process images with multimodal AI models.
Document Processing
Upload and process documents securely.
Proxy Server
Keep your API key server-side while preserving end-to-end encryption.

