GLM-5.2 web search

by OpperSearchdocs.opper.ai

GLM-5.2 has no web search of its own, so Opper's engine adds it with one tool entry. Pick an EU route and pin Jina or Searchbase, and the model, the query and every page it reads stay in Europe.

UseWeb searchwithin

Add web search to GLM-5.2

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": "alibaba:global/glm-5.2",
"messages": [{"role": "user", "content": "What changed in the news today?"}],
"tools": [{"type": "opper:web_search", "engine": "jina"}]}'

Where you can run it

GLM-5.2 runs on the routes below. Route only to EU providers and pin "engine": "jina" or "searchbase" when your data has to stay in Europe. One route also sells flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
EUNo$1.23$4.92$0.31Not offered on this routeNot offered on this route
EUNo$1.25$4.39$0.20Not offered on this routeNot offered on this route
EUNo$1.50$4.50$0.38Not offered on this routeNot offered on this route
EUNo$1.54$4.84$0.15Not offered on this routeNot offered on this route
EUNo$2.24$5.82Input priceNot offered on this routeNot offered on this route
EUNo$2.01$6.16Input priceNot offered on this routeNot offered on this route
EUNo$1.50$4.50$0.38Not offered on this routeNot offered on this route
USNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
USNo$0.75$2.40$0.14
USNo$0.70$2.20$0.10Not offered on this routeNot offered on this route
USNo$0.15$4.40$0.04Not offered on this routeNot offered on this route
USNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
MultiNo$1.20$4.20Input priceNot offered on this routeNot offered on this route
Multi—$1.40$4.40$0.26Not offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
MultiNo$1.40$4.40Input priceNot offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route

The model

by Z.ai

GLM-5.2 by Z.ai is a 744B open-weight (MIT) mixture-of-experts coding model with a 1M-token context, IndexShare sparse attention, and selectable thinking-effort levels.

Available on

Pricing from$0.15/ 1M input$2.20/ 1M output$0.04/ 1M cache read1Mcontext

Privacy

ZDR
Training
No
Region
Multi, US, EU

Add web search to other models

Step-by-step setup for adding web search to each of these models through Opper.

More tools on Opper

Add web search to GLM-5.2

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