Skip to content
GPT-5.1-Codex-Max logo

GPT-5.1-Codex-Max

Verified

OpenAI multimodal model with 400k-token context for text and image tasks.

OpenAIMultimodalClosed
Vision
Model page
Updated 2026-06-14

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

Long-context reasoning
Code generation
Vision understanding
Multimodal integration
Technical problem solving

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

$8.0
o4 Mini Deep Research
$9.0
Gemini 3.5 Flash
$9.0
Google Gemini Flash Latest
$10.0
GPT-5 Codex
$10.0
GPT-5.1-Codex
$10.0
GPT-5.1
$10.0
GPT-5.1-Codex-Max
$10.0
GPT-5
$10.0
Gemini 2.5 Pro
$10.0
GPT-5.1 Chat
$10.0
GPT-5 Chat
$12.0
Gemini 3.1 Pro Preview Custom Tools
$12.0
Gemini 3.1 Pro Preview

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.

$0.00625
per request
$62.5
estimated / month

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.

JavaScript · openai
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

Our take on GPT-5.1-Codex-Max

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.

Did you find this helpful?

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…

Sign in to review

Other GPT models

Sibling versions in the GPT family from OpenAI.

Promote GPT-5.1-Codex-Max

Add this badge to your website, or share the tool.

DFeatured on DhanasviGPT-5.1-Codex-Max 2