> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Smallestai

> Python API reference for the smallestai text-to-speech provider.

<Card title="Usage guide" icon="book" href="/plugins/tts/smallestai" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## SmallestAITTS

Initialize the SmallestAI TTS plugin.

Slot: tts. Route: plugins -- direct to the vendor, with SMALLEST\_API\_KEY or
an explicit api\_key.

```python theme={null}
from zeroruntime.plugins import SmallestAITTS  # direct to the vendor, with your key
```

### Fields

<ParamField path="model" type="Literal['lightning', 'lightning-large', 'lightning-v2', 'lightning-v3.1']" default="lightning_v3.1" />

<ParamField path="voice_id" type="str" default="magnus" />

<ParamField path="language" type="Literal['en', 'hi']" default="en" />

<ParamField path="sample_rate" type="int" default="24000" />

<ParamField path="speed" type="float" default="1.0" />

<ParamField path="consistency" type="float" default="0.5" />

<ParamField path="similarity" type="float" default="0.0" />

<ParamField path="enhancement" type="float" default="1.0" />

<ParamField path="sentence_streaming" type="bool" default="True" />

<ParamField path="base_url" type="str" default="https://api.smallest.ai/waves/v1" />

<ParamField path="timeout" type="float" default="30.0" />

<ParamField path="enable_streaming" type="bool" default="True" />

<ParamField path="max_connection_age_sec" type="float" default="300.0" />

<ParamField path="complete_backoff_ms" type="int" default="0" />

<ParamField path="max_buffer_flush_ms" type="int" default="0" />
