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

> TypeScript 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

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

### Options

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

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

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