xAI’s Grok provides advanced reasoning capabilities and real-time knowledge. The plugin supports conversation memory, streaming responses, and function calling (Grok 4.1+).Documentation Index
Fetch the complete documentation index at: https://visionagents.ai/llms.txt
Use this file to discover all available pages before exploring further.
Vision Agents requires a Stream account
for real-time transport. Most providers offer free tiers to get started.
Installation
Quick Start
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
model | str | "grok-4-latest" | Model ("grok-4-latest", "grok-4.1") |
api_key | str | None | API key (defaults to XAI_API_KEY env var) |
tools_max_rounds | int | 3 | Maximum tool-call rounds per response |
Function Calling
Grok 4.1+ supports function calling:Events
The xAI plugin emits a low-level event for streaming chunks. Most developers should use the core LLMResponseCompletedEvent instead.Next Steps
xAI Realtime
Speech-to-speech over WebSocket
xAI TTS
Text-to-speech with expressive voices

