Gemini URL context

by GoogleWeb fetch

URL context is Google's Gemini tool for reading the pages you link in a prompt. Gemini takes up to 20 URLs per request and 34MB per URL, reads web pages, PDFs and images, checks Google's index cache before fetching live, and pairs with Google Search grounding to find pages first. Paywalled pages, YouTube and Google Workspace files are out of reach. On Opper it works on the Gemini generateContent endpoint, passed through as Google defines it.

UseGemini URL contextwithin

Add Gemini URL context 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

Tool
urlContext
Endpoint
generateContent

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": "Summarise https://opper.ai/pricing"}]}],
"tools": [{"urlContext": {}}]}'

Use Gemini URL context with these models

Step-by-step setup for Gemini URL context on each of these models through Opper.

More tools on Opper

Use Gemini URL context 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