Skip to main content

Documentation Index

Fetch the complete documentation index at: https://env.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Grok

xAI’s Grok models are designed for real-time information and direct, unfiltered responses.

Available Models

ModelContextBest For
Grok-2128K tokensComplex tasks, full capability
Grok-2 Mini128K tokensFast responses, lighter tasks

Setup

  1. Get an API key from console.x.ai
  2. Open env Settings (⌘ + ,)
  3. Add your key under xAI
  4. Select a Grok model to start chatting

Features

Real-Time Knowledge

Grok has access to real-time information from X (Twitter), giving it awareness of current events and trending topics.

Direct Responses

Grok is designed to be more direct and less filtered than other models, while still being helpful.

Fast Inference

Grok-2 Mini offers particularly fast response times for interactive use.

Tips

Grok is great for questions about current events or topics trending on social media.
  • Use Grok-2 for complex tasks that need full reasoning capability
  • Use Grok-2 Mini for quick questions and faster interactions
  • Grok works well for casual conversation and direct answers

Keyboard Shortcut

Press ⌘ + 4 to quickly switch to Grok.