> ## 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

> TypeScript 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.

```ts theme={null}
import { SmallestAITTS } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

<ParamField path="model" type="'lightning' | 'lightning-large' | 'lightning-v2' | 'lightning-v3.1'" default="lightning_v3.1" />

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

<ParamField path="language" type="'en' | 'hi'" default="en" />

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

<ParamField path="speed" type="number" default="1" />

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

<ParamField path="similarity" type="number" default="0" />

<ParamField path="enhancement" type="number" default="1" />

<ParamField path="sentence_streaming" type="boolean" default="true" />

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

<ParamField path="timeout" type="number" default="30" />

<ParamField path="enable_streaming" type="boolean" default="true" />

<ParamField path="max_connection_age_sec" type="number" default="300" />

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

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