AI Web Search / Grounding Cost Calculator
Giving an LLM live web access costs more than the per-search fee everyone quotes — the page content it fetches is billed as input tokens too. Estimate the real monthly bill, split into search fees vs retrieved tokens, across Claude, GPT, Gemini and Sonar. No signup, no API key.
How it works
A hosted “web search” or “grounding” tool has two costs that provider pricing pages list in different places. The first is the per-call fee — Anthropic bills $10 per 1,000 searches, Google bills per 1,000 grounded prompts after a free daily quota, and OpenAI bills per call by search-context size. The second, and usually larger, is the retrieved content: every search fetches page text that is appended to your prompt and billed as input tokens at the model's input rate. The calculator prices both and shows the split.
The math, per provider, is:
- Total searches =
requests × searches_per_request. Searches are an average, so this may be fractional. - Chargeable searches =
max(0, total_searches − free_per_day × 30). Providers with a daily free grounded quota (Gemini) have it subtracted first; the chargeable count is floored at zero so the free tier never over-bills. - Search fee =
chargeable_searches ÷ 1,000 × fee_per_1k. - Retrieved-content cost =
total_searches × retrieved_tokens ÷ 1,000,000 × input_$/1M— the page text billed as input tokens. - Base token cost = your own prompt input plus generated output:
requests × (prompt_tok × input_$/1M + output_tok × output_$/1M) ÷ 1,000,000. - Total monthly cost = search fee + retrieved-content cost + base token cost.
The comparison table re-runs this identical formula for every seeded provider using that provider's own fee, token prices and free quota, then sorts cheapest-first. Your edited rates apply only to the selected model so the comparison stays a fair like-for-like. Every headline total is cross-checked by an independent segment-sum (search + retrieved + prompt + output), which agrees to the cent with the grouped total. All prices are static, human-verified constants dated by LAST_VERIFIED — no live pricing calls.
Worked examples
Frequently asked questions
Sources & references
- Anthropic — Web search tool ($10 per 1,000 searches + token costs)
- Anthropic — API pricing (per-model input/output token rates)
- OpenAI — Responses API web search tool (per-call fee + input tokens)
- OpenAI — API pricing
- Google — Gemini grounding with Google Search (free quota, then per-1k)
- Google — Gemini API pricing
- Perplexity — Sonar API pricing (per-request search fee + token costs)
Prices were last cross-checked against the cited sources on 2026-06-21. Anthropic rates are verified against the Anthropic web-search and pricing docs; OpenAI, Google and Perplexity rows are published list prices that change without notice — re-check the provider page before relying on a figure. Rates are USD; the rupee view uses an indicative, editable USD→LKR rate.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.