Prerequisites
Get a Smallest AI key from the Smallest AI dashboard under Developer > API Keys.SmallestTools uses Agno’s built-in HTTP client. The example uses Gemini as its agent model.
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.