Node.js SDK
Node.js SDK for Tinfoil’s secure AI inference API
GitHub: tinfoil-node

GitHub: tinfoil-node
Installation
Migration from OpenAI
Migrating from OpenAI to Tinfoil is straightforward. The client is designed to be compatible with the OpenAI Node.js client:TinfoilAI
extends the standard OpenAI client with built-in security features.
Running the Chat Example
To run the streaming chat example:- Clone the repository
- Install dependencies:
- Create a
.env
file with your configuration:
- Run the example:
Usage
Model Examples
Below are specific examples for each supported model. Click on any model to see its configuration and usage example.Chat Models
DeepSeek R1 - deepseek-r1-0528
DeepSeek R1 - deepseek-r1-0528
Mistral Small 3.1 24B - mistral-small-3-1-24b
Mistral Small 3.1 24B - mistral-small-3-1-24b
Llama 3.3 70B - llama3-3-70b
Llama 3.3 70B - llama3-3-70b
Qwen 2.5 72B - qwen2-5-72b
Qwen 2.5 72B - qwen2-5-72b
Audio Models
Whisper Large V3 Turbo - whisper-large-v3-turbo
Whisper Large V3 Turbo - whisper-large-v3-turbo
Kokoro - kokoro
Kokoro - kokoro
Embedding Models
Nomic Embed Text - nomic-embed-text
Nomic Embed Text - nomic-embed-text