Skip to content
GPT-5.1-Codex logo

GPT-5.1-Codex

Verified

OpenAI's closed multimodal model for large-scale text and image tasks.

OpenAIMultimodalClosed
Vision
Model page
Updated 2026-06-14

About GPT-5.1-Codex

The model combines text and vision capabilities in a single architecture. Its 400000-token context supports lengthy inputs that mix code, documentation, and visual elements. OpenAI keeps the weights proprietary.

Users apply it to scenarios requiring simultaneous analysis of images and extensive textual data. Typical workloads include reviewing large code repositories paired with diagrams or screenshots. The design emphasizes unified multimodal processing without public weight access.

Capabilities

Long-context code analysis
Multimodal reasoning
Image-guided code generation
Large-scale document understanding
Advanced programming assistance
Text and vision integration

How GPT-5.1-Codex compares

GPT-5.1-Codex (striped bar) vs other multimodal on intelligence, speed and price.

Price

USD per 1M output tokens · Lower is better · GPT-5.1-Codex ranks #85 of 124

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

Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).

Best for

Large-scale codebase navigation

The 400,000-token context window enables the model to ingest and reason across entire repositories or lengthy technical documents in one pass.

Multimodal code generation from visuals

As a multimodal model it can accept diagrams, screenshots, or UI mockups together with textual prompts to produce or modify code.

Extended technical documentation tasks

The combination of long context and OpenAI training supports coherent summarization, refactoring, or explanation of very large code-related materials.

Strengths & limitations

Strengths

  • +Strong performance on extended coding workflows
  • +Effective integration of visual context with code
  • +Handles very large inputs without losing coherence
  • +Specialized for software development tasks

Limitations

  • Limited to text and image inputs only
  • High computational cost for maximum context
  • May require careful prompt engineering for complex tasks

Cost calculator

Estimate what GPT-5.1-Codex would cost for your usage.

$0.00625
per request
$62.5
estimated / month

Based on GPT-5.1-Codex'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",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);

Model slug: openai/gpt-5.1-codex

Editor's verdict

Our take on GPT-5.1-Codex

GPT-5.1-Codex 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 strong performance on extended coding workflows and effective integration of visual context with code.

Did you find this helpful?

Frequently asked questions

Specific pricing details are not included in the provided model specifications.

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

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

DFeatured on DhanasviGPT-5.1-Codex 2