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

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

### Options

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

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

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

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

<ParamField path="turn_detection" type="Record<string, any> | null" default="null" />

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

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

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