> ## Documentation Index
> Fetch the complete documentation index at: https://codinitdev-mintlify-update-changelog-codinit-dev-90028.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI (Grok)

> Configure xAI's Grok models with large context windows and reasoning capabilities.

**Website:** [https://x.ai/](https://x.ai/)

## Getting an API Key

1. Go to [xAI Console](https://console.x.ai/) and sign in
2. Navigate to API Keys section
3. Create a new API key and name it (e.g., "CodinIT")
4. Copy the key immediately - you won't see it again

## Configuration

1. Click the settings icon (⚙️) in CodinIT
2. Select "xAI" as the API Provider
3. Paste your API key
4. Choose your model

## Supported Models

**Grok-3 Series (131K context):**

* `grok-3-beta` (Default)
* `grok-3-fast-beta`
* `grok-3-mini-beta` (Reasoning enabled)
* `grok-3-mini-fast-beta` (Reasoning enabled)

**Grok-2 Series (131K context):**

* `grok-2-latest`
* `grok-2`
* `grok-2-1212`

**Vision Models:**

* `grok-2-vision-latest` (32K context)
* `grok-2-vision` (32K context)
* `grok-vision-beta` (8K context)

## Reasoning Capabilities

Available on `grok-3-mini-beta` and `grok-3-mini-fast-beta`:

* **Step-by-step problem solving:** Methodical thinking process
* **Reasoning effort control:** Set `low` for quick responses or `high` for complex problems
* **Reasoning trace access:** View the model's thinking process

## Notes

* **Context window:** Up to 131K tokens for most models
* **Vision support:** Available on select models
* **Pricing:** Varies by model, see xAI documentation
