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

# Xai

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

## XAISTT

Initialize the xAI STT plugin.

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

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

### Fields

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

<ParamField path="encoding" type="Literal['pcm', 'mulaw', 'alaw']" default="pcm" />

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

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

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

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

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

<ParamField path="channels" type="int" default="1" />

<ParamField path="base_url" type="str" default="wss://api.x.ai/v1/stt" />
