GLM 5.1 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.1, from Z.ai, has a 204,800-token context window and is priced at $0.9086/M tokens input, $2.856/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.