Anthropic vs xAI

Claude Haiku 4.5 vs Grok 4.7: pricing comparison

Claude Haiku 4.5 costs 30% less than Grok 4.7 for a typical 1,000-input, 500-output request. Here is how the two compare on price, context and discounts.

Prices last updated:

Side-by-side prices

Claude Haiku 4.5Grok 4.7
ProviderAnthropicxAI
Input per 1M tokens$1.00$2.00
Output per 1M tokens$5.00$6.00
Context window200K500K
Batch discount50% offNot offered
Typical request (1,000 in / 500 out)$0.0035$0.005
Monthly at 1,000 requests/day$105.00$150.00

Grok 4.7: Price shown is for inputs below 200K tokens.

Compare with your own numbers

Claude Haiku 4.5 per request
$0.0035
Per month
$105.00
Grok 4.7 per request
$0.005
Per month
$150.00

Cost by task

Cost per 1,000 requests at standard prices.
TaskTokens (in / out)Claude Haiku 4.5Grok 4.7
Short chat reply500 / 300$2.00$2.80
RAG answer6,000 / 600$9.00$15.60
Summarize a long document12,000 / 1,000$17.00$30.00
Output-heavy generation1,000 / 4,000$21.00$26.00

Output tokens usually dominate the bill — see input vs output token cost.

Frequently asked questions

Is Claude Haiku 4.5 or Grok 4.7 cheaper?
Claude Haiku 4.5 is cheaper for a typical request of 1,000 input and 500 output tokens: $0.0035 versus $0.005 for Grok 4.7, about 30% less.
What are the per-token prices of Claude Haiku 4.5 and Grok 4.7?
Claude Haiku 4.5 costs $1.00 input and $5.00 output per million tokens. Grok 4.7 costs $2.00 input and $6.00 output per million tokens.
Which has the larger context window, Claude Haiku 4.5 or Grok 4.7?
Grok 4.7 has the larger context window: 500K tokens versus 200K for Claude Haiku 4.5.

More comparisons

All comparisons →