Skip to main content
SmallestTools enable an Agent to generate natural speech and list available voices using Smallest AI Lightning text-to-speech.

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.
Set both API keys:

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:
Pair voices with the right model: Pro voices (e.g. 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.

Toolkit Params

Toolkit Functions

Models

Developer Resources