Skip to main content

xAI Provider

Use xAI’s Grok models including Grok-4 and Grok-3.

Environment Variables

Supported Modalities

Quick Start

1

Simple Usage

2

With Configuration

Adjust provider credentials and model settings for production — see the sections above.

Available Models

Troubleshooting

Missing API Key

xAI CLI Usage

xAI CLI Usage

Providers Overview

Providers Overview