GPT-5.1-Codex-Max
VerifiedOpenAI multimodal model with 400k-token context for text and image tasks.
About GPT-5.1-Codex-Max
The architecture supports extensive context retention across both textual and visual modalities. This enables handling of lengthy documents paired with images without losing coherence. Its design emphasizes integration of language understanding with visual interpretation.
Strengths lie in sustained reasoning over combined text-image inputs at scale. Typical usage includes complex coding workflows augmented by diagrams, detailed visual analysis projects, and enterprise tasks requiring high-capacity multimodal context.
Capabilities
How GPT-5.1-Codex-Max compares
GPT-5.1-Codex-Max (striped bar) vs other multimodal on intelligence, speed and price.
Price
USD per 1M output tokens · Lower is better · GPT-5.1-Codex-Max ranks #84 of 122
Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).
Best for
Large-Scale Code Repository Analysis
The 400000-token context supports reviewing entire codebases for inconsistencies or refactoring opportunities in a single pass.
Multimodal Technical Documentation Review
Vision understanding combined with code generation lets the model interpret diagrams alongside source code to produce integrated technical solutions.
Complex Technical Problem Solving
Long-context reasoning and multimodal integration enable step-by-step resolution of problems that span text, images, and code.
Strengths & limitations
Strengths
- +Handles very large contexts
- +Strong coding focus
- +Combines text and image inputs
- +Suitable for complex technical workflows
Limitations
- –Limited to text and image modalities
- –High resource demands for large contexts
- –No support for other media types
Cost calculator
Estimate what GPT-5.1-Codex-Max would cost for your usage.
Based on GPT-5.1-Codex-Max's $1.25/1M input · $10.00/1M output. Estimate only — actual cost varies by provider and caching.
Quick start
OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. Only the model slug changes between models.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: "openai/gpt-5.1-codex-max",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(completion.choices[0].message.content);Model slug: openai/gpt-5.1-codex-max
Editor's verdict
GPT-5.1-Codex-Max is OpenAI's proprietary multimodal with a 400K-token context window.
At $10.00 per 1M output tokens, it is premium-priced for its class.
It is available through OpenAI's API and aggregators like OpenRouter.
Best suited to handles very large contexts and strong coding focus.
Frequently asked questions
The model supports a context window of 400000 tokens.
User reviews
Real, verified reviews from the community shape this model's rating.
Loading reviews…
Other GPT models
Sibling versions in the GPT family from OpenAI.