> ## 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 speech-to-text provider.

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

## OpenAISTT

Initialize the OpenAI STT plugin.

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

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

### Fields

<ParamField path="model" type="str" default="gpt-4o-mini-transcribe'; pinned" />

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

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

<ParamField path="language" type="str" default="en" />

<ParamField path="turn_detection" type="dict | None" default="None" />

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

<ParamField path="silence_threshold" type="float" default="0.01" />

<ParamField path="silence_duration" type="float" default="0.8" />
