Gemini answers from memory, not the live web. Enable google_search
Without google_search, Gemini stays on its cutoff and returns no citations. Pass google_search, not google_search_retrieval, then read url_citation. Short answer: 5 steps. 1) Prove the request never enabled Search; 2) Pass the current google_search tool; 3) Check steps and annotations, not only output_text; 4) Watch Search quotas and pricing on Gemini 3+; 5) Combine tools only when you preserve tool context.
Last updated: · This page is the decision checklist; the tools list for “Enable Gemini Grounding with Google Search” is a separate URL.
How do I enable google_search when Gemini answers from memory, not the live web?
Prove the request never enabled Search
Grounding is opt-in. If you call the model with only a prompt, you get a normal completion—no `google_search_call` / `google_search_result` steps and no inline `url_citation` annotations. Official grounding docs: https://ai.google.dev/gemini-api/docs/google-search
Pass the current google_search tool
On current Gemini models, add `tools=[{"type": "google_search"}]` (Interactions API / Google Gen AI SDK). Older samples used `google_search_retrieval`; Google’s docs say to use `google_search` for current models. Example: `client.interactions.create(model="gemini-4-hydrogen", input="…", tools=[{"type": "google_search"}])`.
Check steps and annotations, not only output_text
A grounded reply includes search steps plus text with `annotations` of type `url_citation` (`url`, `title`, `start_index`, `end_index`). Iterate `interaction.steps` for `google_search_call` queries and `model_output` citations. Missing citations usually means the tool was omitted, the model skipped Search for that prompt, or your client dropped annotation fields.
Watch Search quotas and pricing on Gemini 3+
For Gemini 3 and newer, billing is per search query the model runs (5,000 free search requests/month shared across those models, then $14 per 1,000 search requests per Google’s grounding docs). Empty queries are ignored for billing. Paid Tier also has a default ~1,500 search RPD project limit you can raise in AI Studio. Pricing overview: https://ai.google.dev/gemini-api/docs/pricing
Combine tools only when you preserve tool context
You can pair `google_search` with URL context, code execution, Maps (on supported models), and custom function calling on Gemini 3/4—but you must return the tool call/result parts the API sends back so later turns keep context. If Search still never fires, try a prompt that needs a recent fact, confirm the model supports Search, and check troubleshooting for blocked or quota errors: https://ai.google.dev/gemini-api/docs/troubleshooting
Which tools are best to enable Gemini Grounding with Google Search?
Grounding with Google Search
How to enable google_search, read citations, and understand response steps.
Gemini API pricing
Model token pricing plus Search grounding charges.
Troubleshooting
Maps common Gemini API failure modes when tools or quotas misbehave.
Google AI Studio
Try a grounded prompt interactively and request higher Search quota if needed.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Enable Gemini Grounding with Google Search” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.