DocsAPI ReferencePricingConsole
Developers
Welcome
Introduction
Getting Started
Models and Pricing
Rate Limits
Regional Endpoints
Debugging Errors
Release Notes
Model Capabilities
Text
Generate Text
Reasoning
Structured Outputs
Streaming
Comparison
Images
Image Understanding
Image Generation
new
Video
new
Video Generation
new
Audio
new
Voice Overview
Voice Agent API
Files
Chat with Files
Legacy
Chat Completions
Files & Collections
Files Overview
Managing Files
Collections
Collections via API
Collection Metadata
Tools
Overview
Function Calling
Web Search
X Search
Code Execution
Collections Search (RAG)
Remote MCP Tools
Deep Dive
Citations
Streaming & Sync
Tool Usage Details
Advanced Usage
Advanced API Usage
Overview
Batch API
new
Deferred Completions
Fingerprint
Async Requests
Use with Code Editors
Prompt Engineering for Grok Code
Migration Guides
Migrating to Responses API
Migrating to New Models
Community
Cookbook
Community Integrations
FAQ
Data & Privacy
General
Loading...

Welcome to xAI Documentation

Build with Grok, the AI model designed to deliver truthful, insightful answers.


Get started

API & SDK

Learn how to integrate Grok into your applications.

Console

Learn about billing, API keys, and account settings.

Grok App

Learn how to use Grok on web and mobile.

Quick start with the API

Quickstart

Create an API Key and make your first request.

Tools

Let Grok search, execute code, and call functions.

Images

Use Grok to analyze images or perform OCR.