Use SearchBase with GLM-5.2

by SearchBaseWeb searchsearchbase.md

GLM-5.2 searches the web through SearchBase with one tool entry, "engine": "searchbase". GLM-5.2 has no search of its own, so this is how it reads the web.

UseSearchBase logoSearchBasewithin

Add SearchBase 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": "searchbase"}]}'

Where you can run it

GLM-5.2 runs SearchBase on the routes below. 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

Use SearchBase with other models

Step-by-step setup for SearchBase on each of these models through Opper.

More tools on Opper

Use SearchBase with 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