JellyPod Speech SDK
Use Smallest AI as a TTS provider in the JellyPod Speech SDK — a universal, cross-platform TypeScript SDK that works in Node.js, edge runtimes, and the browser. Switch between providers without changing your application code.
Installation
Setup
Get your API key from app.smallest.ai and set it as an environment variable:
Models
The SDK supports two Lightning models:
Pass the model id to the factory to select which model to use:
Generate Speech
Add this inside any TypeScript/JavaScript file in your project — an API route, a server action, a backend script, or a CLI tool:
The createSmallestAI() factory reads SMALLEST_API_KEY from the environment automatically if no apiKey is passed.
Provider Options
All parameters are optional. Pass them via providerOptions to override defaults:
Save to File (Node.js)
Available Voices
Standard Pool (lightning_v3.1)
217 voices across English, Hindi, Spanish, and 9 Indian languages. Default voice: magnus. A few popular ones:
Fetch the full list:
Premium Pool (lightning_v3.1_pro)
Curated catalog with American, British, and Indian accents. Default voice: meher. Indian voices code-switch between English and Hindi; British and American voices are English-only.
Switching Providers
One of the main benefits of the Speech SDK is swapping providers without changing application logic. To switch away from Smallest AI, replace the factory import:
Everything else — generateSpeech, result shape, metadata — stays identical.

