Skip to main content
xAI’s Grok provides advanced reasoning capabilities and real-time knowledge. The plugin supports conversation memory, streaming responses, and function calling (Grok 4.1+).
Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.

Installation

Quick Start

Set XAI_API_KEY in your environment or pass api_key directly.

Parameters

Function Calling

Grok 4.1+ supports function calling:
See the Function Calling guide for details.

Events

The xAI plugin no longer documents provider-specific event classes for normal app code. Prefer core events and provider-agnostic response handling.

Next Steps

xAI Realtime

Speech-to-speech over WebSocket

xAI TTS

Text-to-speech with expressive voices