---
title: "Grounding with Google Search & Bing: Pricing, Limits, Privacy"
description: "How grounding with Google Search works in Gemini, what it costs on Gemini 3 and 2.5, why it can't be zero data retention, how grounding with Bing Search works in Azure AI Foundry, and when to use your own search tool."
category: "guides"
url: https://keirolabs.cloud/blog/grounding-with-google-search-bing
published: 2026-11-24
updated: 2026-11-24
---

# Grounding with Google Search and Bing: how Gemini and Azure ground answers, pricing and limits

## The 60-second version

**Grounding with Google Search lets a Gemini model run Google searches while it answers and cite the pages it used.** Grounding with Bing Search does the same for agents on Microsoft's Azure AI Foundry. In both, the model decides whether to search, writes the queries, reads the results and returns an answer with citations.

| | Grounding with Google Search | Grounding with Bing Search |
|---|---|---|
| Where | Gemini API and Vertex AI | Azure AI Foundry agents, Azure AI Search |
| Price | Gemini 3+: 5,000 searches free a month, then **$14 per 1,000**. Gemini 2.5: 1,500 grounded requests free a day, then **$35 per 1,000** | Billed per grounding transaction (see Microsoft's pricing page) |
| Limits | Per-model rate limits | 150 transactions a second, 1 million a day |
| Display rules | Show Google's Search Suggestions with grounded answers | Show citations and the link to the Bing query |
| Data retention | On Vertex AI, Google stores prompts and output **30 days**; can't be disabled | Microsoft's terms for the service |
| Use outside its platform | No | No: results only work inside Microsoft's products |

**Both are the fastest way to ground answers on their platform, and both lock you into it.** If you need grounding that works across models, controls what the model reads, or keeps no data, use your own search tool. There's a short version at the end.

## How does grounding with Google Search work?

**You enable the `google_search` tool on a Gemini request, and the model handles the rest:**

1. **The model reads the prompt** and decides whether a Google search would improve the answer.
2. **It writes one or more search queries** and runs them.
3. **It reads the results** and writes the answer.
4. **The response includes the answer with citations,** where each citation links a span of text to a source URL. It also includes the queries the model ran, and a Search Suggestions snippet (HTML) that Google's terms require you to display alongside grounded results.

**Grounding can be combined with URL context,** so the model answers from both Google results and specific pages you pass in.

## How much does grounding with Google Search cost?

| Model | Free | Then |
|---|---|---|
| Gemini 3 and newer | 5,000 search queries a month, shared across Gemini 3+ models | **$14 per 1,000 search queries** |
| Gemini 2.5 Pro, Flash, Flash-Lite | 1,500 grounded requests a day (Flash and Flash-Lite share theirs) | **$35 per 1,000 grounded prompts** |

**Watch the unit.** On Gemini 3, you pay per search query, so one prompt that makes three searches bills three. On Gemini 2.5, you pay per grounded prompt, however many searches it ran. Token costs for the search results apply on top. The same comparison for OpenAI, Claude and Ollama is in [web search in LLM APIs](/blog/llm-web-search-api).

## Is grounding with Google Search private?

**Not in the zero-data-retention sense.** Under Google Cloud's service terms, when you use Grounding with Google Search on Vertex AI, Google stores prompts, the context you provide, and the generated output for 30 days. The stated purpose is creating grounded results and search suggestions, and the data may be used for debugging and testing the grounding systems. **There's no way to turn that storage off.**

**So if your workload needs ZDR,** grounding with Google Search is out, even when the rest of your Vertex AI setup is ZDR. Our [zero data retention guide](/blog/zero-data-retention-ai-apis) covers which model and search providers offer ZDR, and how.

## What is grounding with Bing Search?

**Grounding with Bing Search is Microsoft's web grounding tool for agents built on Azure AI Foundry.** It replaced the open Bing Search APIs for most AI use cases after Microsoft retired the Bing Web Search and Bing Custom Search APIs on August 11, 2025 ([what to use instead](/blog/bing-search-api-alternatives)).

- **It's an agent tool, not a search API.** The agent calls Bing when its reasoning decides it needs to, and the final answer comes back grounded in Bing results with citations.
- **Results can't be used elsewhere.** Microsoft describes it as an add-on for select Microsoft products whose outputs aren't directly accessible to other applications.
- **Display requirements:** answers must show the cited sites and the link to the Bing query, per Microsoft's use and display requirements.
- **Limits:** 150 transactions a second and 1 million a day per plan.
- **Custom Search variant:** Grounding with Bing Custom Search restricts results to domains you choose.
- **What's next:** Microsoft now points new projects to **Web IQ**, its next-generation web grounding, which powers the web search tool in the Microsoft Foundry Responses API. Existing Grounding with Bing setups keep working.

## What about grounding GPT and Claude models?

**OpenAI and Anthropic offer their own built-in equivalents:**

- **OpenAI:** the `web_search` tool in the Responses API, $10 per 1,000 calls plus search content tokens.
- **Anthropic:** the Claude web search tool, `web_search_20260209`, $10 per 1,000 searches plus result tokens. Setup, dynamic filtering and `pause_turn` handling are in our [Claude web search tool guide](/blog/claude-web-search-tool).

Like Google's and Microsoft's tools, each works only with its own provider's models.

## Built-in grounding or your own search tool?

| | Built-in grounding (Google, Bing, OpenAI, Claude) | Your own search tool |
|---|---|---|
| Setup | One tool flag | A function the model calls, about 30 lines |
| Works across models | No | Yes: the same tool for Gemini, GPT, Claude and local models |
| Control over results | Filters at best | Full: rerank, filter, cache, dedupe before the model reads |
| Citations | Built in | Numbered sources in the prompt, checked in code |
| Price per 1,000 searches | $10 to $35 | Keirolabs: $0.03 to $0.10 on plans (`/search/lite`) |
| Zero data retention | Google: no (30-day storage) | Keirolabs: `"zdr": true` on paid plans |

**Choose built-in grounding** when you're committed to one platform, volume is low, and setup time matters most.

**Choose your own tool** when you run several models, need to control what the model reads, need ZDR, or search at volume.

**A minimal grounding tool on Keirolabs (ours):**

```python
import os, requests

def web_search(query: str, n: int = 8) -> str:
    r = requests.post(
        "https://api.keirolabs.cloud/api/v2/search/lite",
        headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
        json={"query": query, "count": n},
        timeout=30,
    )
    r.raise_for_status()
    return "\n".join(f"[{i+1}] {x['title']}\n{x['url']}\n{x.get('snippet', '')}"
                     for i, x in enumerate(r.json()["results"]))
```

Register it as a tool with any model that supports function calling. The full loops for Claude, OpenAI-compatible APIs and local models are in [how to give an LLM a web search tool](/blog/llm-web-search-tool-calling). For the grounded prompt and citation checks, see [grounding AI agents with web search](/blog/grounding-ai-agents-web-search).

New Keirolabs accounts get up to 2,000 free credits with no card ([get a key](https://platform.keirolabs.cloud/register)).
