MiniMax M2 and GPT-5.1-Codex-Max are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
MiniMax M2, from MiniMax, has a 204,800-token context window and is priced at $0.255/M tokens input, $1.02/M tokens output on OpenRouter.
GPT-5.1-Codex-Max, from OpenAI, has a 400,000-token context window and is priced at $1.25/M tokens input, $10/M tokens output on OpenRouter.