Locus product guide · Updated
Grok API pricing in 2026: xAI token, tool and media rates
Grok 4.7, xAI’s flagship model, costs $2 per million input tokens, $0.50 per million cached input tokens and $6 per million output tokens. Once a prompt reaches 200,000 tokens, every token in that request bills at double rates. Grok 4.3 and the Grok 4.20 models cost $1.25 input and $2.50 output, and grok-build-0.1 costs $1 and $2. The Batch API takes 20% off most text models. Prices checked November 10, 2026.
How much does each Grok model cost per million tokens?
xAI lists one rate for short prompts and a higher rate once a prompt reaches 200,000 tokens. The long-context rate then applies to every token in that request. Figures come from xAI’s API pricing page. Prices checked November 10, 2026.
Grok (xAI) and Groq are different companies. Groq runs open models on its own chips and has its own pricing.
| Model | Context | Input | Cached input | Output | From 200k prompt tokens: input, cached, output |
|---|---|---|---|---|---|
| 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-4.20 (reasoning, non-reasoning and multi-agent) | 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 |
What changes the price of a Grok request?
Several options raise or lower the token price. Server-side tools add a fee per call or per item on top of tokens, and the model decides how many tools to call, so cost grows with query complexity.
- Batch API: 20% off all token types on Grok 4.7, 4.6, 4.5, 4.3 and the 4.20 models. Most batches finish within 24 hours and do not count toward rate limits. Other models, including grok-build-0.1, get no batch discount.
- Priority processing: 2 times standard rates, billed only when the response confirms the priority tier.
- US regional endpoint: 1.1 times standard rates. It serves Grok 4.7 and 4.6 only.
- Policy violations: a request blocked before generation in the Responses API costs $0.05.
- Grok 4.7 Fast exists only inside Cursor and Grok Build, not on the public API.
| Server-side tool | Price | Billing unit |
|---|---|---|
| Web Search | $5 per 1,000 | Per call |
| X Search | $5 per 1,000 posts, $10 per 1,000 profiles | Per item returned |
| Code Execution | $5 per 1,000 calls | Per call, Python sandbox |
| Collections Search | $2.50 per 1,000 | Per call over your uploaded files |
| Remote MCP tools | Tokens only | No per-call fee |
What do Grok images, video and voice cost?
xAI prices media per output. Image editing inputs also cost $0.002 to $0.01 per image. Batch requests for images and video bill at standard rates.
| Product | Price | Note |
|---|---|---|
| grok-imagine-image | $0.02 per image | 1K or 2K |
| grok-imagine-image-2.0 | $0.04 to $0.08 per image | Rises with resolution and quality |
| grok-imagine-video-1.5 | $0.08 to $0.25 per second | 480p to 1080p |
| grok-imagine-video-1.5-lite | $0.02 to $0.14 per second | 480p to 1080p output |
| Text to speech | $15 per 1M characters | Voice API |
| Speech to text | $0.10 per hour | $0.20 per hour streaming |
| Speech to speech | $0.08 per minute | grok-voice-3.0 |
What does a real Grok workload cost?
Take 10,000 calls, each with a 2,000-token prompt and a 500-token answer: 20 million input tokens and 5 million output tokens. The cached column assumes 1,500 tokens of each prompt are a cache hit.
Reasoning tokens bill as tokens too, so a model that thinks before answering costs more than the table shows. If every call also runs one web search, add $50 for the 10,000 searches.
| Model | Standard | Batch API | With 1,500 tokens cached |
|---|---|---|---|
| grok-4.7 | $70.00 | $56.00 | $47.50 |
| grok-4.5 | $70 | $56 | $44.50 |
| grok-4.3 | $37.50 | $30.00 | $21.75 |
| grok-build-0.1 | $30.00 | No batch discount | $18.00 |
Does the Grok API have a free tier or rate limits?
xAI’s pricing page lists no free tier. Rate limits rise with cumulative API spend since January 1, 2026, and a team never drops a tier. Buyers of X API credits can earn up to 20% back in xAI API credits, as described in the X API pricing guide.
| Tier | Cumulative spend | grok-4.7 requests per second | grok-4.7 tokens per minute |
|---|---|---|---|
| Tier 0 | $0 | 150 | 50M |
| Tier 1 | $50 | 172 | 53M |
| Tier 2 | $250 | 208 | 60M |
| Tier 3 | $1,000 | 312 | 74M |
| Tier 4 | $5,000 | 500 | 100M |
How does Grok work through Locus Pro?
Locus Pro offers Grok chat, web search, X search, code execution, speech and images as separate endpoints, paid from one prepaid credit balance with no xAI account. Catalog checked November 10, 2026.
grok/chat accepts grok-4.7, grok-4.6, grok-4.5, grok-4.3 and the two grok-4.20-0309 models. The multi-agent model is excluded because it does not accept an output cap, and max_tokens is required. Each call holds an amount sized from the prompt and output budget, then settles to reported usage.
| Locus endpoint | What it does |
|---|---|
| grok/chat | Chat completions on the Grok models above |
| grok/web-search | A Grok answer grounded in web search |
| grok/x-search | A Grok answer grounded in X posts |
| grok/tts | Speech from text |
| grok/image-generate | Images from a text prompt |
Which Grok model and setup should you choose?
For steady volume, Grok can cost less per call with your own xAI account and API key, which also gets the Batch discount and rate limits that rise with spend.
Locus Pro fits an agent that uses Grok for one job, such as X search, next to other models and data APIs. You get one balance, a max_credits ceiling on each call, a monthly spend limit and no separate xAI billing.
- Best quality and agentic tool calling: grok-4.7.
- Long documents up to 1 million tokens at lower cost: grok-4.3 or the grok-4.20 models.
- Cheapest text rates: grok-build-0.1 at $1 and $2.
- Searching X posts: compare the X Search tool at $5 per 1,000 posts plus tokens with the X API at $0.005 per post read.
Frequently asked questions
Is Grok the same as Groq?
No. Grok is the model family from xAI. Groq is a separate company that serves open models such as GPT-OSS on its own hardware, with its own pricing.
Is there a free Grok API tier?
The xAI pricing page lists none. New teams start at Tier 0 rate limits and pay per token. X API credit purchases can earn up to 20% back in xAI API credits.
Why did one long Grok request cost twice as much?
Once a prompt reaches 200,000 tokens, xAI bills every token in that request at the long-context rate, which is double the short-context rate on Grok 4.7.
How is the Grok X Search tool billed?
Per item fetched: $5 per 1,000 posts and $10 per 1,000 profiles, counting parent and quoted posts, plus the tokens the model uses.
Implementation references
Use these first-party references for current request contracts and account requirements. Tool availability, prices, and negotiated terms can change.
Sources
Third-party details were checked on November 10, 2026. Vendors change pricing and features often, so confirm on their site before you decide.