> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI

> Use Grok models from xAI in your BoostGPT AI teammates

## Overview

xAI's Grok models bring real-time knowledge and unique capabilities to your AI teammates. Known for their direct, informative responses and ability to access current information.

## Available Models

> [card] Grok 4.7
>
> **9 credits** • xAI's most capable model for coding and knowledge work, with a 500K context window.
>
> * 500K context window
> * Exceptional reasoning (reasoning model)
> * Speed: Medium • Cost: Medium
> * Vision: images supported
> * Model id: `grok-4.7`

> [card] Grok 4.6
>
> **9 credits** • Previous-generation Grok model, with a 500K context window and strong multimodal reasoning.
>
> * 500K context window
> * Exceptional reasoning (reasoning model)
> * Speed: Medium • Cost: Medium
> * Vision: images supported
> * Model id: `grok-4.6`

> [card] Grok 4.5
>
> **8 credits** • The flagship Grok model, with native video input and strong multimodal reasoning.
>
> * 500K context window
> * Exceptional reasoning (reasoning model)
> * Speed: Medium • Cost: Medium
> * Vision: images supported
> * Model id: `grok-4.5`

> [card] Grok 4.3
>
> **5 credits** • A versatile 1M-context model offering strong language and reasoning capabilities at low cost.
>
> * 1M context window
> * Excellent reasoning (reasoning model)
> * Speed: Medium • Cost: Low
> * Vision: images supported
> * Model id: `grok-4.3`

> [card] Grok 4.20 Reasoning
>
> **5 credits** • Grok 4.20 in reasoning mode, with enhanced analytical and problem-solving capabilities.
>
> * 1M context window
> * Excellent reasoning (reasoning model)
> * Speed: Medium • Cost: Low
> * Vision: images supported
> * Model id: `grok-4.20-0309-reasoning`

> [card] Grok 4.20 Non-Reasoning
>
> **5 credits** • Grok 4.20 in non-reasoning mode, optimized for speed on tasks that do not need deep analysis.
>
> * 1M context window
> * Good reasoning
> * Speed: Fast • Cost: Low
> * Vision: images supported
> * Model id: `grok-4.20-0309-non-reasoning`

> [card] Grok Build 0.1
>
> **4 credits** • Development-focused Grok model with a smaller 256k context window.
>
> * 256K context window
> * Good reasoning
> * Speed: Fast • Cost: Low
> * Vision: images supported
> * Model id: `grok-build-0.1`

## Setup

### Using BoostGPT-Hosted API Keys

**1. Select Grok Model**

In your BoostGPT dashboard, select any Grok model when creating or configuring your bot.

**2. Choose Your Model**

* **Grok 3**: Best for balanced performance
* **Grok 4.1 Fast**: When you need speed
* **Grok 3 Mini**: Cost-effective for simple tasks
* **Grok 3 Reasoning**: Complex analytical tasks

### Using Your Own xAI API Key

> [tab] Dashboard Setup
>
> **1. Navigate to Integrations**
>
> Go to [app.boostgpt.co](https://app.boostgpt.co/integrations) and select **Integrations**
>
> **2. Select xAI**
>
> Find and click on the **xAI** provider
>
> **3. Add API Key**
>
> Enter your xAI API key and select which AI teammates will use this key
>
> **4. Save Configuration**
>
> Click save to apply your custom API key

> [tab] Core SDK
>
> ```javascript bot.js theme={null}
> import { BoostGPT } from 'boostgpt';
>
> const client = new BoostGPT({
>   key: process.env.BOOSTGPT_API_KEY,
>   project_id: process.env.BOOSTGPT_PROJECT_ID
> });
>
> // Create bot with Grok model
> const bot = await client.createBot({
>   name: 'My Grok Bot',
>   model: 'grok-4.5',
>   instruction: 'You are a helpful and direct assistant.'
> });
> ```

## Next Steps

> [card] [Model Comparison](/docs/providers/model-comparison.md)
>
> Compare Grok with other providers

> [card] [Reasoning Models](/docs/providers/reasoning-models.md)
>
> Learn about Grok 3 Reasoning

> [card] [SDK Reference](/docs/sdk/core/api-reference.md)
>
> Full API documentation

> [card] [Provider Overview](/docs/providers/overview.md)
>
> See all available providers


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.