This free Grok cost calculator shows your likely monthly bill. Pay per token for Grok models. No monthly fee. Your real cost depends on your own usage, so enter your numbers above. We use the official Grok pricing page, last checked on November 3, 2026.
What is the Grok API?
The Grok API from xAI gives developers access to Grok models. xAI now recommends one model, Grok 4.7, for code, chat and agent work. It has a 500,000 token context, configurable reasoning and strong tool calling. The API also offers voice, image and video models.
Grok can pull in live information through its Web Search and X Search tools, which makes it a fit for agents that need current news or social data.
How much does Grok API cost?
| Model | Input / 1M | Cached input / 1M | Output / 1M | Cost per support chat* |
|---|---|---|---|---|
| Grok 4.7 | $2.00 | $2.00 | $6.00 | $0.0252 |
Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens. Input costs the same as GPT-6.1 Sol, but output is cheaper ($6.00 vs $10.00), so Grok does well on tasks that write a lot.
The models page does not list a cached-input price, so our calculator prices all input at the full rate. If xAI gives you a cache discount, your bill will be lower. One support chat costs about $0.0252 with this assumption.
Voice API
For voice agents, xAI lists speech-to-speech at $0.08 per minute, text-to-speech at $15 per million characters and streaming speech-to-text at $0.20 per hour.
What is included, and what is not?
- Included: model calls, reasoning, tool calling, image input.
- Not included: Hosting for your agent code
- Not included: Web Search and X Search tools
What does Grok API cost at 3 business sizes?
A support chat agent on Grok 4.7, 22 working days, no buffer.
| Size | Chats per day | Plan | AI model | Platform | Total per month |
|---|---|---|---|---|---|
| Small | 20 | Pay as you go | $11.09 | $0.00 | $11.09 |
| Medium | 200 | Pay as you go | $111 | $0.00 | $111 |
| Large | 2,000 | Pay as you go | $1,109 | $0.00 | $1,109 |
What hidden costs should you watch for?
- Search tools. Web Search and X Search add their own cost and the tokens to read results.
- Reasoning. Higher reasoning settings produce more output tokens.
- Huge context. A 500K context invites long prompts; every token is billed.
How can you lower your Grok bill?
- Use low reasoning for simple tasks.
- Turn on search only when the agent needs current information.
- Check the Batch API on the model page for jobs that can wait.
What are the main Grok API alternatives?
Who is Grok best for?
Good fit
- Agents that need current news or X (Twitter) data
- Writing-heavy tasks, since output is relatively cheap
- Developers who want one strong flagship model
Not the best fit
- Owners who do not want to write code
What are the key Grok features?
- Grok 4.7: One flagship model for code, chat and agents.
- 500K context: Long inputs in one request.
- Configurable reasoning: Trade speed for depth per request.
- Web and X Search: Server-side search tools for real-time information.
- Voice API: Speech-to-speech, text-to-speech and speech-to-text.
How do you set up Grok?
The steps below show the general setup. Button names change often, so follow the idea of each step rather than exact labels.
- Create an xAI API account. Sign up on the xAI developer console and add billing.
- Create an API key. Store it on your server.
- Try it in the playground. Test your prompts and reasoning settings.
- Connect your code. Call Grok 4.7 through the API; many OpenAI-style libraries work with a base URL change.
- Enable search only if needed. Turn on Web or X Search for agents that need fresh information.
Tips from setup
- Use low reasoning for simple tasks.
- Check the model page for Batch API support.
How do you calculate your Grok cost?
- What will Grok do for you?. Pick the job closest to yours. We fill in typical usage for that job, so you do not need to know anything about tokens.
- How many times a day?. Use a normal working day. A rough guess is fine, and we count 22 working days a month.
- Read your answer. You see one monthly figure, the cost of each Grok task and what makes up the total.
Want to compare more tools at once? Use the main AI agent cost calculator.
How should you budget for Grok?
With a model API, you pay for what the model reads and writes, so your bill comes from your own design choices. The length of your instructions, how much chat history you resend, and how many steps each task takes matter as much as the price per token. Doubling the steps roughly doubles the cost.
To budget for Grok, run 20 to 50 real tasks through the model and record the tokens each one uses. Multiply the average by your expected monthly volume, then add 20% for retries and long requests. Set a monthly spending limit in your account so a bug cannot run up a large bill. Remember the API price does not cover hosting, your own development time or any paid tools your agent calls.
Grok pricing FAQ
How much does the Grok API cost?
Grok 4.7 costs $2 per million input tokens and $6 per million output tokens. There is no monthly fee.
Which Grok model should I use for an agent?
xAI recommends Grok 4.7 for code, chat and everything else except image, video and voice, which have their own models.
Does the Grok API have a voice option?
Yes. The Voice API lists speech-to-speech at $0.08 per minute, plus text-to-speech and speech-to-text options.
How accurate is this Grok cost calculator?
It uses prices from the official Grok pricing page, last checked on November 3, 2026, and our own averages for typical usage. Treat your result as a planning estimate. Your real cost depends on your prompts, call lengths and busy days, so add about 20% and test with real work.
What does the Grok cost calculator leave out?
It does not count these costs: Hosting for your agent code; Web Search and X Search tools. It also leaves out tax and the time it takes to build and check your agent.
How do I work out what Grok will cost my business?
Answer the questions in the calculator at the top of this page with your normal daily numbers. A rough guess is fine. Then run a small test for a week and replace your guess with your real usage.
Get your Grok cost estimate
Now put in your own numbers. The Grok cost calculator at the top of this page gives you a figure in about a minute. Then run a small test with real work and compare your real usage with the estimate. Still deciding? Compare other AI tools.
Source and last checked date
All Grok prices on this page come from the official xAI Grok API pricing page, last checked on November 3, 2026. No cached-input price is listed on the models page, so cached tokens are priced at the normal input rate here.
More cost calculators
Other ai model apis: OpenAI, Claude, DeepSeek, Gemini, Mistral.
All tools: n8n, Vapi, GoHighLevel, Retell AI, Bland AI, ElevenLabs, Synthflow, Make, Zapier Agents, Lindy, Botpress, Chatbase, Voiceflow, Relevance AI. Or go back to the AI agent cost calculator.