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

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

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

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

### Fields

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

<ParamField path="voice" type="str | dict[str, str]" default="ash" />

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

<ParamField path="instructions" type="str | None" default="None" />

<ParamField path="language" type="str | None" default="None" />

<ParamField path="base_url" type="str | None" default="None" />

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

<ParamField path="chunked_synthesis" type="bool" default="False" />
