Google Search grounding

by GoogleWeb search

Grounding with Google Search connects Gemini to live Google Search results. Gemini decides when to search, writes its own queries and returns metadata that ties each part of its answer to a source, and Google's terms require showing its Search Suggestions with a grounded answer. On Opper, opper:web_search on auto uses it when you call Gemini on the generateContent endpoint, and Opper's own engine everywhere else. Pin "engine": "native" to require it, or pin Jina or SearchBase to keep searches in the EU instead. It runs on 34 routes in the catalogue today.

UseGoogle Search groundingwithin

Add Google Search grounding on Opper

Set up with agents

Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.

Get your API key

Key info

Endpoint
generateContent
Region
Provider
Pin it with
"engine": "native"
Index
Google Search
Native routes
34

In your code

curl "https://api.opper.ai/v3/compat/v1beta/models/gemini/gemini-4-argon:generateContent" \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents": [{"role": "user", "parts": [{"text": "What changed in the news today?"}]}],
"tools": [{"type": "opper:web_search", "engine": "native"}]}'

Use Google Search grounding with these models

Step-by-step setup for Google Search grounding on each of these models through Opper.

More tools on Opper

Use Google Search grounding through Opper

One key, 700+ models, a choice of region, and zero data retention. Tools run in the same request, with every call in your traces.

Get startedView Documentation