Skip to main content

Try our API

Use one of the Tinfoil SDKs to make some inference requests to an AI model. It’s as easy as getting an API key and running one of our examples.

Get an API key

You’ll need a Tinfoil API key to make inference requests. Create one here.

Installation

Install the SDK for your language.
The Go, Swift, and CLI setups below use beta V3 attestation verification. The Python, JavaScript, and Rust setups are outside the V3 beta.

Inference

Make your first inference request with the gpt-oss-120b model.

Connect other OpenAI-compatible apps

Tinfoil has an OpenAI-compatible API, so apps and tools that accept a custom base URL can use Tinfoil models. Use your Tinfoil API key and a model ID from the model catalog. How you connect decides whether your client verifies the secure enclave itself.
A direct connection skips connection-time verification: your app trusts the TLS certificate for inference.tinfoil.sh instead of checking the secure enclave’s attestation. Requests are still covered by audit-time verification. Use an SDK or the proxy when you can, and connect directly only from apps that can run neither, such as mobile apps.

Next steps

SDK documentation

Migration, async usage, and per-model examples across all Tinfoil SDKs.

Model catalog

Browse all available AI models.