Grok 4.7 API pricing and agent cost
| Provider | xAI |
|---|---|
| Input | $2.0 / 1M tokens |
| Output | $6.0 / 1M tokens |
| Cached input | $0.5 / 1M tokens |
Under 200K context; $4/$12 above.
Source: https://docs.x.ai/developers/pricing (checked 2026-10-25)
Example agent cost
An agent making 5 tool calls per task, with 3,000 input and 800 output tokens per call, running 100 tasks a day costs about $0.0540 per task, $5.40 per day, and $162.00 per month on Grok 4.7.
Not sure your numbers are right? Get a $9 AI Agent Cost Audit
Most agent bills are dominated by context re-sent on every tool call, retries and output length, which a quick estimate misses. Send us your setup and get a written breakdown per task, day and month, cheaper model options and specific savings ideas within 48 hours.
Get my audit: $9 See a sample report
One-time $9 via Stripe Checkout. Nothing recurring. Prices from official provider pages.
Get the TokenTab newsletter
Model price changes and agent cost tips, straight to your inbox. Unsubscribe anytime; we only use your email for this newsletter.
Sponsor this tool
Reach AI builders, agent developers and vibe coders who are choosing models and platforms. See sponsor options or email tokentab+sponsors@mail.grokbot.com.