Compare GPT-5.1-Codex from OpenAI and gpt-oss-safeguard-20b from OpenAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
GPT-5.1-Codex and gpt-oss-safeguard-20b are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
GPT-5.1-Codex, from OpenAI, has a 400,000-token context window and is priced at $1.25/M tokens input, $10/M tokens output on OpenRouter.
gpt-oss-safeguard-20b, from OpenAI, has a 131,072-token context window and is priced at $0.075/M tokens input, $0.30/M tokens output on OpenRouter.