Use xAI web search with Grok 3 Mini

by xAIWeb search

Grok 3 Mini has its own web search, and auto uses it. On every other route and endpoint Opper's engine runs the search.

UsexAI web searchwithin

Add xAI web search to Grok 3 Mini

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

In your code

curl https://api.opper.ai/v3/compat/chat/completions \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "xai/grok-3-mini",
"messages": [{"role": "user", "content": "What changed in the news today?"}],
"tools": [{"type": "opper:web_search"}]}'

Where you can run it

Grok 3 Mini runs xAI web search on the routes below. Some routes also sell priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
MultiNo$0.30$0.50$0.07
MultiNo$0.30$0.50$0.07

The model

by xAI

Grok 3 Mini by xAI is a lightweight reasoning model with visible thinking tokens and a 131k context window for logic-based tasks.

Available on

Pricing from$0.30/ 1M input$0.50/ 1M output$0.07/ 1M cache read131Kcontext

Privacy

ZDR
Training
No
Region
Multi

Use xAI web search with other models

Step-by-step setup for xAI web search on each of these models through Opper.

More tools on Opper

Use xAI web search with Grok 3 Mini

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