xAI Grok LLM API Cost Calculator

Compare what your prompts cost across every major LLM — with exact token counts for OpenAI models, right in your browser.

Prices verified 2026-07-24 · per 1M tokens · sources linked per provider

xAI Grok lists 2 models here, with input prices from $1.25 to $2 per 1M input tokens. At a standard 1,000-in / 500-out call, Grok 4.3 is the cheapest at $0.0025 per call. Prices verified 2026-07-24. All providers → xAI Grok model IDs →

ModelCost / callCost / month× best price
Grok 4.3cheapest$0.00375$3.75
Grok 4.5$0.008$8.002.1×

Token counter

0 tokens

Token counts are exact for OpenAI models (tiktoken o200k_base, run in your browser). For other providers the count is an estimate — notably Claude Opus 4.7+/Sonnet 5 and similar newer models use a tokenizer that produces roughly 30% more tokens for the same text.

Related tools

Scaling AI content or ops? Elegant Atomics builds growth systems for B2B SaaS — Trevor’s company. Work with us →