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

# Deepgram

> Python API reference for the deepgram speech-to-text provider.

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

## DeepgramSTT

Initialize the Deepgram STT plugin

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

```python theme={null}
from zeroruntime.plugins import DeepgramSTT  # direct to the vendor, with your key
from zeroruntime.inference import DeepgramSTT  # same fields, through the gateway, no vendor key
```

### Fields

<ParamField path="model" type="str" default="nova-2" />

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

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

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

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

<ParamField path="sample_rate" type="int" default="48000" />

<ParamField path="endpointing" type="int" default="50" />

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

<ParamField path="keywords" type="list[str] | None" default="None" />

<ParamField path="keyterm" type="list[str] | None" default="None" />

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

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

<ParamField path="tag" type="Union[str, List[str]] | None" default="None" />

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

<ParamField path="base_url" type="str" default="wss://api.deepgram.com/v1/listen" />

***

## DeepgramSTTV2

Initialize the Deepgram STT plugin (Flux / v2 API).

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

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

### Fields

<ParamField path="model" type="str" default="flux-general-en" />

<ParamField path="input_sample_rate" type="int" default="48000" />

<ParamField path="target_sample_rate" type="int" default="16000" />

<ParamField path="eager_eot_threshold" type="float" default="0.6" />

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

<ParamField path="eot_timeout_ms" type="int" default="7000" />

<ParamField path="keyterm" type="list[str] | None" default="None" />

<ParamField path="language_hint" type="list[str] | None" default="None" />

<ParamField path="tag" type="Union[str, List[str]] | None" default="None" />

<ParamField path="base_url" type="str" default="wss://api.deepgram.com/v2/listen" />

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