What does each built-in tool cost?
Per Grok's API pricing page, tools are charged per invocation on top of the model's token rates.
| Tool | Tool name | As listed |
|---|---|---|
| Web search | web_search | $5 per 1,000 calls |
| X search | x_search | $5 per 1,000 posts; $10 per 1,000 profiles |
| Code execution | code_execution, code_interpreter | $5 per 1,000 calls |
| File attachments | attachment_search | $5 per 1,000 calls |
| Collections search | collections_search, file_search | $2.50 per 1,000 calls |
| Image generation | image_generation | Image API rates |
| Image understanding, X video understanding, remote MCP tools | view_image, view_x_video, MCP | Token-based, no invocation fee |
From Grok's API pricing page, December 6, 2026. Prices are the vendor's listed prices in US dollars and can change.
How is X search counted?
The page says X search is billed per item: every post returned by a search or thread fetch, including parent and quoted posts, counts toward the post rate.
- A search that returns many posts can cost more than the same number of web searches, so cap results where the tool allows.
- Profiles are listed at $10 per 1,000, double the post rate.
From Grok's API pricing page, December 6, 2026. Prices are the vendor's listed prices in US dollars and can change.
How do you turn web search on?
Per Grok's Web Search page, you add a web search tool to the request, and Grok can then search the web in real time and browse pages.
- In the Responses API, include a web_search entry in the tools list.
- The page lists optional parameters for domain filters, image understanding, image search and user location.
- That page itself gives no price; the per-call price is on the pricing page above.
From Grok's Web Search page, December 6, 2026.
How do you keep tool costs under control?
Tool calls add up quickly in an agent loop, so decide up front which questions need live data.
- List the questions that truly need live web or X data, and answer the rest from your own documents.
- Estimate calls per task and multiply by the listed per-1,000 price.
- Add the token cost from the API pricing guide.
- Set a monthly spend alert before you connect it to customers.
Frequently asked questions
How much does Grok web search cost?
On December 6, 2026 the pricing page listed web search at $5 per 1,000 calls.
How much does X search cost?
The page listed $5 per 1,000 posts and $10 per 1,000 profiles, counting every post returned, including parent and quoted posts.
Do MCP tools cost extra?
The page listed remote MCP tools as token-based with no invocation fee; the price is set by the MCP server.
Do the tool prices include the tokens?
No. The pricing page lists tool charges per call, and the model's token rates apply as well.
Can you help us build with it?
Yes. We help small and mid-size businesses pick one useful task, connect it to their systems and keep an eye on cost. Book a call to start.
Need help with Grok?
We help small and mid-size businesses choose a model, connect it to their other systems and keep spend under control. See our Grok guides and services, and the Workflow automation service, and the AI implementation, and the OpenAI guides.




