Grok 4.7 API pricing (xAI)

$2.0 input / $6.0 output per 1M tokens. Context 500,000; our tier 3; verified; last checked 2026-10-13.

Input $/1MOutput $/1MContextTierVerifiedChecked
$2.0$6.0500,0003verified2026-10-13

Official source: https://docs.x.ai/docs/models. Provider page: xAI API pricing.

Note: <200K prompt; ≥200K $4/$12

Example monthly bills by job

JobExample volumeThis model
Simple Q&A / chat10M in / 2M out$32.00
Coding20M in / 5M out$70.00
Long documents100M in / 2M out$212.00
Hard reasoning10M in / 10M out$80.00

Cost only, not quality. “Tier” is our rough capability judgment (1 = light, 4 = frontier), not a benchmark. Standard pay-as-you-go text prices only.

Related head-to-head comparisons

See every model on the full price table, all models, or see what you'd save switching from Grok 4.7 in the savings calculator.

Weekly "AI price drops" email

Placeholder only — this form collects nothing.