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

# Openai

> TypeScript API reference for the openai text-to-speech provider.

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

## OpenAITTS

Initialize the OpenAI TTS plugin.

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

### Options

<ParamField path="model" type="string" default="gpt-4o-mini-tts" />

<ParamField path="voice" type="string | Record<string, string>" default="ash" />

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

<ParamField path="instructions" type="string | null" default="null" />

<ParamField path="language" type="string | null" default="null" />

<ParamField path="base_url" type="string | null" default="null" />

<ParamField path="response_format" type="string" default="pcm" />

<ParamField path="chunked_synthesis" type="boolean" default="false" />
