VERIFIED xAI TEXT API PRICING (USD / 1M TOKENS)
| Model |
Ctx |
<200K In / Cache / Out |
≥200K Cliff In / Cache / Out |
grok-4.7 |
500K |
$2.00 / $0.50 / $6.00 |
$4.00 / $1.00 / $12.00 |
grok-4.6 |
500K |
$2.00 / $0.50 / $6.00 |
$4.00 / $1.00 / $12.00 |
grok-4.5 |
500K |
$2.00 / $0.30 / $6.00 |
$4.00 / $0.60 / $12.00 |
grok-4.3 |
1M |
$1.25 / $0.20 / $2.50 |
$2.50 / $0.40 / $5.00 |
grok-build-0.1 |
256K |
$1.00 / $0.20 / $2.00 |
$2.00 / $0.40 / $4.00 |
Notes: Long-context ≥200K bills ALL prompt & output tokens at 2×. US Regional Endpoint (us.api.x.ai) adds 1.1×. Batch API gives 20% off. Reasoning tokens bill at completion rate.
[1] Official SpaceXSI / xAI API Pricing
https://docs.x.ai/developers/pricing
Source for short-context vs ≥200K long-context cliff rates, cached input pricing, US Regional 1.1× multiplier, Batch 20% discount, and Priority 2× tier.
[2] Prompt Caching & Best Practices
https://docs.x.ai/developers/advanced-api-usage/prompt-caching
Documents prefix-exact KV cache matching from byte 0, server routing via prompt_cache_key (Responses API) or x-grok-conv-id header/gRPC metadata, previous_response_id chaining, and preserving reasoning.encrypted_content.
[3] Context Compaction API (responses.compact)
https://docs.x.ai/developers/advanced-api-usage/context-compaction
Documents POST /v1/responses/compact and xai_sdk chat.compact(). Compaction items must come first in input[] and carry opaque encrypted_content verbatim to stay beneath the 200K cliff.
[4] The X Subscription — Shared Weekly Pool Limits
https://docs.x.ai/x-subscription/usage-limits
Grok Bot is included on Premium ($30/mo · 4×), Super ($100/mo · 15×), and Ultra ($200/mo · 50×). Grok chat, Grok Bot, and Cursor first-party models draw from one shared weekly pool; overages bill prepaid top-up credits.
[5] Grok Bot for Engineering — Lingxi Li (SpaceXSI)
https://x.ai/bot/guides/grok-bot-for-engineering
Sep 10, 2026 engineering guide detailing five domain-isolated engineer bots (Baltata, Shaoruru, Hogan, Craig, Quill) + Jenny (Head of Ops), scaling from 15 to 200+ cloud agents via shared Notion DB state and daily playbook syncs.
[6] Field Burn Audits — Larsen Cundric (@larsencc) & maestro (@maestrooth)
Nov 20, 2026 field audits: Larsen Cundric's 572-user survey & 6 pasteable rules (stuck loops #1 complaint); maestro's multiplicative burn formula (wake-ups × context × steps × fan-out) cutting weekly usage 2,000 → 400 units.
[7] Grok Bot Core Model — An Agent with Its Own Computer
https://docs.x.ai/grok-bot/get-started
Official SpaceXSI onboarding docs defining Grok Bot as an always-on teammate on a shared cloud computer across desktop & mobile, progressing from Assistant (L1) → Bot with a Job (L2) → Team of Bots (L3).
[8] Grok Bot Building Blocks — Skills vs. Routines & Narrow Triggers
https://docs.x.ai/grok-bot/skills-routines-and-automations
Separates Skills (reusable instructions for how to execute) from Routines (rules for when to run). Explicitly warns to keep Slack channels & trigger phrases narrow so busy channels don't drain usage.
[9] Connected Apps, OAuth Security & Templates as Recipes
Documents why native connected apps (OAuth tokens held off the bot computer) are faster and more reliable than VM browser clicking, and why shared Bot templates package a parameterized recipe rather than a raw clone.