All providers/xAI (Grok)

xAI (Grok) API Pricing

39 models. Grok 3, Grok 3 Mini, and all xAI models. Prices per 1M tokens in USD.

Cheapest input

$0.2/1M

grok-4-1-fast-reasoning

Most expensive input

$5/1M

grok-vision-beta

Models with cache pricing

31 of 39

ModelInput $/1MOutput $/1MCache $/1M
grok-4-1-fast-reasoning$0.2$0.5$0.05
grok-4-1-fast-non-reasoning$0.2$0.5$0.05
grok-4-fast-non-reasoning$0.2$0.5$0.05
grok-4-fast-reasoning$0.2$0.5$0.05
grok-code-fast-1$0.2$1.5$0.02
grok-4-1-fast$0.2$0.5$0.05
grok-4-1-fast-reasoning-latest$0.2$0.5$0.05
grok-4-1-fast-non-reasoning-latest$0.2$0.5$0.05
grok-code-fast$0.2$1.5$0.02
grok-code-fast-1-0825$0.2$1.5$0.02
grok-3-mini$0.3$0.5$0.075
grok-3-mini-beta$0.3$0.5$0.075
grok-3-mini-latest$0.3$0.5$0.075
grok-3-mini-fast$0.6$4$0.15
grok-3-mini-fast-beta$0.6$4$0.15
grok-3-mini-fast-latest$0.6$4$0.15
grok-4.20-0309-reasoning$2$6$0.2
grok-4.20-0309-non-reasoning$2$6$0.2
grok-4.20-multi-agent-0309$2$6$0.2
grok-4$2$6$0.2
grok-2$2$10-
grok-2-1212$2$10-
grok-2-vision-1212$2$10-
grok-2-latest$2$10-
grok-2-vision$2$10-
grok-2-vision-latest$2$10-
grok-4-latest$2$6$0.2
grok-4.20-multi-agent-beta-0309$2$6$0.2
grok-4.20-beta-0309-reasoning$2$6$0.2
grok-4.20-beta-0309-non-reasoning$2$6$0.2
grok-3$3$15$0.75
grok-4-0709$3$15$0.75
grok-3-beta$3$15$0.75
grok-3-latest$3$15$0.75
grok-3-fast$5$25$1.25
grok-3-fast-beta$5$25$1.25
grok-3-fast-latest$5$25$1.25
grok-beta$5$15-
grok-vision-beta$5$15-

Track xAI (Grok) costs with LLMKit

Proxy your xAI (Grok) requests through LLMKit. Every call gets logged with token counts, dollar costs, and session attribution. Set budget limits that actually reject requests before they hit the provider.

MIT licensed. Built with Claude Code. Source on GitHub