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

Prerequisites

You need an API key which can be obtained from the Smallest AI dashboard (Developer -> API Keys). No extra package is required beyond agno — the toolkit uses Agno’s built-in HTTP client.
Set the 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:
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