GLM 5.2 and Sonar Pro Search are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
GLM 5.2, from Z.ai, has a 1,048,576-token context window and is priced at $0.308/M tokens input, $0.968/M tokens output on OpenRouter.
Sonar Pro Search, from Perplexity, has a 200,000-token context window and is priced at $3/M tokens input, $15/M tokens output on OpenRouter.