Skip to content
GPT-5.2-Codex logo

GPT-5.2-Codex

Verified

Multimodal model handling text and images at scale.

OpenAIMultimodalClosed
Vision
Model page
Updated 2026-06-14

About GPT-5.2-Codex

The architecture supports combined text and visual data streams within its large context capacity. OpenAI designed the model as a proprietary offering without released weights. This choice keeps the implementation under company control.

Developers commonly use it for applications that merge lengthy documents with image analysis. The multimodal modality allows processing of mixed inputs in a single session. Access remains limited to authorized API channels.

Capabilities

Long-context reasoning
Code generation
Vision understanding
Multimodal text-image processing
Large-scale document analysis
Complex instruction following

How GPT-5.2-Codex compares

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

Price

USD per 1M output tokens · Lower is better · GPT-5.2-Codex ranks #84 of 110

$10.0
GPT-5 Chat
$10.0
GPT-5.1 Chat
$12.0
Gemini 3.1 Pro Preview Custom Tools
$12.0
Gemini 3.1 Pro Preview
$12.0
Google Gemini Pro Latest
$12.5
Nova Premier 1.0
$14.0
GPT-5.2-Codex
$14.0
GPT-5.2
$14.0
GPT-5.3-Codex
$14.0
GPT-5.2 Chat
$14.0
GPT-5.3 Chat
$15.0
GPT-5.4
$15.0
Claude Sonnet 4.6

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

Best for

Large-Scale Codebase Refactoring

The model processes entire repositories within its 400000-token context to identify dependencies and suggest coordinated changes across multiple files.

Multimodal Technical Documentation Analysis

It combines vision understanding with text to review diagrams, screenshots, and accompanying specifications in product requirement documents.

Complex Instruction-Driven Application Prototyping

Developers use it to follow detailed, multi-step prompts for generating and iterating on full-stack code while maintaining consistency over long sessions.

Strengths & limitations

Strengths

  • +Very large context window for extended inputs
  • +Strong coding specialization
  • +Seamless integration of text and image data

Limitations

  • Restricted to text and image modalities
  • High resource demands at maximum context length
  • No native support for audio or video

Cost calculator

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

$0.00875
per request
$87.5
estimated / month

Based on GPT-5.2-Codex's $1.75/1M input · $14.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.2-codex",
  messages: [{ role: "user", content: "Hello!" }],
});

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

Model slug: openai/gpt-5.2-codex

Editor's verdict

Our take on GPT-5.2-Codex

GPT-5.2-Codex is OpenAI's proprietary multimodal with a 400K-token context window.

At $14.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 very large context window for extended inputs and strong coding specialization.

Did you find this helpful?

Frequently asked questions

The model provides a context window of 400000 tokens for handling extended inputs.

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.2-Codex

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

DFeatured on DhanasviGPT-5.2-Codex 2