47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. Claude Opus 5 vs Grok 4.7

Claude Opus 5 vs Grok 4.7: API pricing and context window

Grok 4.7 is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 76% cheaper for output ($6.00 vs $25.00). Context window: 1,000,000 tokens for Claude Opus 5, 500,000 for Grok 4.7. A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7.

Last updated: Pricing data: LiteLLM (MIT)

Claude Opus 5
$5.00 / $25.00
Input / Output, per 1M tokens · 1M context window
Grok 4.7
$2.00 / $6.00
Input / Output, per 1M tokens · 500K context window

Side by side

FieldClaude Opus 5Grok 4.7Claude Opus 5 vs Grok 4.7
Input$5.00$2.00+150%
Output$25.00$6.00+317%
Cached input$0.50$0.50
Context window1,000,000500,000+100%
Long-context thresholdnone200,000
Batch API input$2.50$1.60+56%
Batch API output$12.50$4.80+160%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
Web searchYesYes
Structured outputYesYes

Cost per task

TaskClaude Opus 5Grok 4.7Cheaper
Chat request (10K in + 1K out)$0.075$0.026Grok 4.7 (65% less)
Codebase question (100K in + 2K out)$0.55$0.212Grok 4.7 (61% less)
Same question, context cached (100K cached + 2K out)$0.10$0.062Grok 4.7 (38% less)
Long document (300K in + 4K out)$1.60$1.25Grok 4.7 (22% less)
1M tokens a month (750K in + 250K out)$10.00$3.00Grok 4.7 (70% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Claude Opus 5 · Grok 4.7

More comparisons

Questions

Which is cheaper, Claude Opus 5 or Grok 4.7?

Grok 4.7 is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 76% cheaper for output ($6.00 vs $25.00). A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7.

Which has the larger context window, Claude Opus 5 or Grok 4.7?

Claude Opus 5 accepts more: 1,000,000 input tokens, against 500,000 for Grok 4.7.

How much does a typical request cost on Claude Opus 5 and Grok 4.7?

A chat request with 10K input and 1K output tokens costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7. A 100K-token codebase question with a 2K answer costs $0.55 and $0.212.

What are the differences between Claude Opus 5 and Grok 4.7?

Claude Opus 5 / Grok 4.7: input: $5.00 / $2.00; output: $25.00 / $6.00; context window: 1,000,000 / 500,000; long-context threshold: none / 200,000; Batch API input: $2.50 / $1.60; Batch API output: $12.50 / $4.80.