> ## 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 realtime models provider.

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

## XAIRealtime

xAI's Grok realtime model implementation

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

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

### Fields

<ParamField path="model" type="str" default="grok-4-1-fast-non-reasoning" />

<ParamField path="config" type="Mapping[str, Any] | None" default="UNSET" />

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