Grok (xAI): Grok-2 — Free AI Model & API

grok-(xai)/grok-2
Free since May 16, 2026 Free until Context 131K Released Status Free
chat reasoning

Try Grok-2

Test this model directly in the playground.

Click to start testing in Playground...

Quick Setup

Copy the model ID and base URL below, then head to the config generator to get ready-to-use snippets for Claude Code, Cursor, Codex, and more.

Model ID
grok-2
Base URL
https://api.x.ai/v1
Configure for Claude Code, Cursor & more →
See our FAQ for common questions about free LLM APIs