Prerequisites
You need an API key which can be obtained from the Smallest AI dashboard (Developer -> API Keys). No extra package is required beyondagno — the toolkit uses Agno’s built-in HTTP client.
SMALLEST_API_KEY environment variable.
Example
The following agent will use Smallest AI to generate audio based on a user prompt.cookbook/91_tools/smallest_tools.py
Advanced Example: Premium Voices with Lightning v3.1 Pro
For broadcast-quality voices across American, British, and Indian accents, switch to the Pro voice pool:meher) require model="lightning_v3.1_pro"; standard voices (e.g. magnus) use the default lightning_v3.1. Cloned voices are only available on lightning_v3.1.