xAI · API pricing

Grok 4.7 API pricing

Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens on xAI's standard tier, and cached input is $0.50. Checked against the official pricing page on October 12, 2026.

Input / 1M$2.00
Cached input / 1M$0.50
Output / 1M$6.00
Context window500K

Higher rate for prompts of 200K+.

What Grok 4.7 costs for common workloads

WorkloadMonthly costRank of 20
Support chatbot
60,000 requests · 1,500 in / 300 out
$288#13
Document summaries
20,000 requests · 6,000 in / 400 out
$288#13
Coding assistant
30,000 requests · 4,000 in / 800 out
$384#13
RAG search
100,000 requests · 2,500 in / 250 out
$650#13

Price it for your own workload

Compared against similar models from other providers.

Start from a use case

1,000 tokens is about 750 English words. Input includes your system prompt, chat history and any retrieved documents.

Mistral Large
MistralCheapest
$72.00 /mo
$95.04 /mo
$288 /mo
$396 /mo
$720 /mo
$1,800 /mo
$1,800 /mo

Compare Grok 4.7