LiveKit docs › Build Agents › Models › STT › Additional models › Gradium

---

# Gradium STT plugin guide

> How to use the Gradium STT plugin for LiveKit Agents.

Available in:
- [ ] Node.js
- [x] Python

## Overview

This plugin allows you to use [Gradium](https://gradium.ai) as an STT provider for your voice agents. Gradium streams transcription over a WebSocket connection and returns both interim and final transcripts.

### Installation

Install the plugin from PyPI:

```shell
uv add "livekit-agents[gradium]~=1.8"

```

### Authentication

The Gradium plugin requires a [Gradium API key](https://studio.gradium.ai/platform/api-keys).

Set `GRADIUM_API_KEY` in your `.env` file:

```shell
GRADIUM_API_KEY=<your-gradium-api-key>

```

### Usage

Use Gradium STT in an `AgentSession` or as a standalone transcription service. For example, you can use this STT in the [Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md).

```python
from livekit.agents import AgentSession
from livekit.plugins import gradium

session = AgentSession(
    stt=gradium.STT(
        model_name="default",
        language="en",
    ),
    # ... llm, tts, etc.
)

```

### Parameters

This section describes some of the available parameters. See the [plugin reference](https://docs.livekit.io/reference/python/livekit/plugins/gradium/index.html.md#livekit.plugins.gradium.STT) for a complete list of all available parameters.

- **`api_key`** _(string)_ (optional) - Environment: `GRADIUM_API_KEY`: Gradium API key. Required if the environment variable isn't set.

- **`model_name`** _(string)_ (optional) - Default: `default`: Gradium STT model to use.

- **`language`** _(string)_ (optional) - Default: `en`: [Language code](https://docs.livekit.io/agents/models/stt.md#language-codes) for the input audio. Override it per stream with `stt.stream(language="...")`, which applies to that stream only and leaves the instance default unchanged. It can't be changed with `update_options()`. The plugin sends the base language subtag, so `en-US` is sent as `en`.

- **`sample_rate`** _(integer)_ (optional) - Default: `24000`: Input audio sample rate in Hz. `24000` is the only supported value; any other value raises a `ValueError`.

- **`encoding`** _(string)_ (optional) - Default: `pcm_s16le`: Input audio encoding. `pcm_s16le` is the only supported value.

- **`temperature`** _(float)_ (optional) - Default: `None`: Temperature used for decoding. Leave it unset for greedy sampling. The plugin passes the value through to Gradium without validating its range.

- **`vad_threshold`** _(float)_ (optional) - Default: `0.9`: Inactivity probability, as reported by Gradium's voice activity detection, above which the selected bucket counts as silence for endpointing.

- **`vad_bucket`** _(integer)_ (optional) - Default: `2`: Index of the bucket to read from Gradium's voice activity detection predictions. Set it to `None` to disable endpointing.

- **`vad_flush`** _(boolean)_ (optional) - Default: `true`: Flush the recognizer state the first time voice activity detection triggers, so text that's still being processed is returned as soon as possible.

- **`buffer_size_seconds`** _(float)_ (optional) - Default: `0.08`: Audio buffer size in seconds. This is the only parameter that `update_options()` accepts, and changing it reconnects the WebSocket.

## Additional resources

The following resources provide more information about using Gradium with LiveKit Agents.

- **[Python package](https://pypi.org/project/livekit-plugins-gradium/)**: The `livekit-plugins-gradium` package on PyPI.

- **[Plugin reference](https://docs.livekit.io/reference/python/livekit/plugins/gradium/index.html.md#livekit.plugins.gradium.STT)**: Reference for the Gradium STT plugin.

- **[GitHub repo](https://github.com/livekit/agents/tree/main/livekit-plugins/livekit-plugins-gradium)**: View the source or contribute to the LiveKit Gradium STT plugin.

- **[Gradium docs](https://gradium.ai/api_docs.html)**: Gradium API documentation.

- **[Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md)**: Get started with LiveKit Agents and Gradium.

- **[Gradium TTS](https://docs.livekit.io/agents/models/tts/gradium.md)**: Guide to the Gradium TTS plugin with LiveKit Agents.

---

This document was rendered at 2026-11-14T14:36:07.019Z.
For the latest version of this document, see [https://docs.livekit.io/agents/models/stt/gradium.md](https://docs.livekit.io/agents/models/stt/gradium.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).