Consultants in a BoxGrokGrok guides
Grok API tools

Grok API tool prices: web search, X search and code execution

Short answer

On Grok's API pricing page on December 6, 2026, web search, code execution and file attachments were each listed at $5 per 1,000 calls, X search at $5 per 1,000 posts or $10 per 1,000 profiles, and collections search at $2.50 per 1,000 calls. Image understanding and remote MCP tools listed no invocation fee and are billed by tokens.

Last reviewed against the vendors' own pages. See sources.

Listed tool price in dollars per 1,000 calls

As listed on Grok's API pricing page, reviewed December 6, 2026, in US dollars. X search is billed per post or profile returned.

Show as table
ItemListed tool price in dollars per 1,000 calls
Web search (per 1,000 calls)$5.00
X search, posts (per 1,000)$5.00
X search, profiles (per 1,000)$10.00
Code execution (per 1,000 calls)$5.00
File attachments (per 1,000 calls)$5.00
Collections search (per 1,000 calls)$2.50

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.

ToolTool nameAs listed
Web searchweb_search$5 per 1,000 calls
X searchx_search$5 per 1,000 posts; $10 per 1,000 profiles
Code executioncode_execution, code_interpreter$5 per 1,000 calls
File attachmentsattachment_search$5 per 1,000 calls
Collections searchcollections_search, file_search$2.50 per 1,000 calls
Image generationimage_generationImage API rates
Image understanding, X video understanding, remote MCP toolsview_image, view_x_video, MCPToken-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.

  1. List the questions that truly need live web or X data, and answer the rest from your own documents.
  2. Estimate calls per task and multiply by the listed per-1,000 price.
  3. Add the token cost from the API pricing guide.
  4. 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.

Sources

Last reviewed . Vendor plans and prices change often; every product claim and price on this page was checked against the vendor pages below on that date. Anything we could not verify was left out.

  1. API pricing (docs.grok.com)
  2. Web Search tool (docs.grok.com)

Consultants in a Box is an independent consultancy. This page is not published or endorsed by the vendor. Figures shown are the vendor's listed prices, not ours. Grok is a trademark of its owner.

Setting up or connecting it?

Start with the free business analysis, or book a call and we will talk through your tools and a practical first step.

Book a free consultation

Tell us about your team and the software you need help with. We'll follow up to schedule a time to talk.

Open the form on its own page

Talk to a person

The fastest way is to pick a time. Prefer to write? Leave a message and we will email you back, usually the same business day.

Book a free call

By sending this you agree to our Terms and Privacy Policy.