Skip to main content
xAI’s Grok models have access to real-time data from X (Twitter) and provide large context windows with strong reasoning capabilities.

Supported Models

ModelIDContextToolsNotes
Grok 2grok-2131KYesLatest stable
Grok 3grok-3131KYesMost capable
Grok 2 Minigrok-2-mini131KYesFaster/cheaper

Setup

1

Get an API key

Apply for API access at x.ai.
2

Set the environment variable

export XAI_API_KEY=xai-...
3

Verify

profclaw doctor --provider xai

Environment Variables

XAI_API_KEY
string
required
Your xAI API key. Format: xai-...

Configuration Example

XAI_API_KEY=xai-...

Model Aliases

AliasModel
grokgrok-2
grok-3grok-3

Usage Examples

profclaw chat --model grok "What is trending in AI right now?"
profclaw chat --model grok-3 "Complex reasoning task"

Notes

  • API endpoint: https://api.x.ai/v1 (OpenAI-compatible)
  • Status: Beta
  • Grok has access to real-time X/Twitter data, making it useful for current events queries.
  • xAI access is invitation-based and may have waitlist requirements.