OpenAI previous flagship

GPT-5.2

OpenAI's previous flagship for complex professional work, combining configurable reasoning with broad knowledge, strong multimodal understanding, coding, spreadsheets, and multi-step agentic workflows.

Context window
400K
tokens
Max output
128K
tokens
Input
$1.75
per 1M tokens
Cached input
$0.175
per 1M tokens
Output
$14.00
per 1M tokens

01 / Overview

What GPT-5.2 Is

GPT-5.2 is OpenAI's previous flagship model for complex professional work, designed to combine broad world knowledge, configurable reasoning, multimodal understanding, coding, tool use, and long-context workflows in one general-purpose model.

A General Professional Model Before the GPT-5.4 and GPT-6 Generations

GPT-5.2 was released as a flagship general-purpose model for both ordinary professional work and agentic tasks. OpenAI highlighted improvements over GPT-5.1 in general intelligence, instruction following, accuracy, token efficiency, multimodality, code generation, tool calling, context management, and spreadsheet understanding.

That breadth is what separates GPT-5.2 from more specialized variants. GPT-5.2 Codex focused on interactive coding products, while GPT-5.2 Pro traded more time and compute for harder problems. The base GPT-5.2 occupied the middle: a broad model for complex reasoning, knowledge-heavy tasks, code-heavy work, and multi-step agents.

The model also introduced several API-era improvements that are useful to understand historically and operationally: an xhigh reasoning level, concise reasoning summaries, client-side compaction, Apply Patch support, local shell support, custom tools, and allowed-tool restrictions.

OpenAI now recommends GPT-6 Astra as the current flagship for the most demanding API workloads. GPT-5.2 itself, however, remains documented as an available previous flagship rather than a deprecated model.

  • Previous flagship model for complex professional work.
  • Broad fit across reasoning, knowledge, coding, spreadsheets, and multimodal tasks.
  • Supports reasoning from none through xhigh.
  • Includes explicit context-management and tool-control features.
  • Current OpenAI guidance recommends GPT-6 Astra for newer flagship deployments.
Model profile
Provider
OpenAI
Family
GPT-5.2
Positioning
Previous flagship
Knowledge cutoff
Aug 31, 2025
Input modalities
Text, Image
Output modality
Text
Default reasoning
None

02 / Use cases

Where GPT-5.2 Fits Best

GPT-5.2 is best understood as a broad professional-work model: it can reason across documents, generate and modify code, work with spreadsheets, interpret images, call tools, and coordinate several steps inside one task.

Useful When the Work Crosses Several Skill Boundaries

Many production tasks are not purely writing, coding, or analysis. A model may need to read a business document, extract constraints, inspect a spreadsheet, produce a plan, generate code, and call tools before it can complete the request.

GPT-5.2 was designed for that kind of mixed professional workload. OpenAI specifically highlighted improvements in spreadsheet understanding and creation, front-end UI generation, vision, tool calling, and broad world knowledge.

Research-heavy work is another fit. OpenAI's prompting guidance describes GPT-5.2 as more steerable when synthesizing information across many sources and recommends explicitly defining the research bar, ambiguity handling, citations, and output structure.

For software tasks that do not require the Codex-specific specialization, GPT-5.2 can still handle code-heavy and multi-step agentic work, including shell and structured patch workflows.

  • Complex professional analysis across multiple artifacts.
  • Spreadsheet understanding, transformation, and generation.
  • Front-end and general code generation.
  • Research and synthesis across multiple sources.
  • Multi-step tool workflows that combine reasoning with execution.
Professional workloads
  1. 01

    Document and knowledge work

    Reason across requirements, reports, policies, research, and other professional source material.

  2. 02

    Spreadsheet workflows

    Understand tabular data, reason about spreadsheet structure, and help create or modify spreadsheet-oriented work.

  3. 03

    Code and front-end generation

    Generate software changes and user interfaces while reasoning about the broader task rather than a single isolated snippet.

  4. 04

    Multi-step agents

    Combine reasoning, tools, shell execution, structured patches, and context management across longer workflows.

03 / Pricing

GPT-5.2 Pricing

GPT-5.2 costs $1.75 per million input tokens, $0.175 per million cached input tokens, and $14.00 per million output tokens.

Cost Depends on Reasoning Depth and Workflow Shape

A GPT-5.2 request can be inexpensive when the prompt is small and reasoning is disabled, or materially more expensive when a task requires long context, extensive reasoning, tool feedback, and a large final answer.

Reasoning tokens are billed as output tokens, so increasing reasoning effort changes more than latency. It can directly raise the cost of a request even when the visible final response stays relatively short.

Cached input is priced at one tenth of the standard input rate. That can be useful for workflows that repeatedly reuse stable instructions, schemas, repository guidance, or other prefix content.

For multi-step agents, cost should be measured per completed workflow. A task may involve several model turns, shell output, tool calls, context compaction, and retries before producing one user-visible result.

  • $1.75 per 1M input tokens.
  • $0.175 per 1M cached input tokens.
  • $14.00 per 1M output tokens.
  • Reasoning tokens count toward output usage.
  • Tool-specific services can introduce separate charges.
Token pricing

1M tokens · USD

Input
$1.75
Cached input
$0.175
Output
$14.00

Example: 10K input + 2K output

Input cost
$0.0175
Output cost
$0.0280
Estimated total
$0.0455

04 / Context

A 400K Context Window with Compaction Support

GPT-5.2 provides a 400,000-token context window and up to 128,000 output tokens, while its generation also introduced client-side compaction for longer-running Responses API conversations.

Context Management Was a Core GPT-5.2 Improvement

OpenAI explicitly called out context management as one of the areas improved in GPT-5.2.

A 400K window can hold substantial professional working sets: multiple documents, spreadsheet-related instructions, source code, tool definitions, prior messages, and intermediate results. But long-running agent workflows can still accumulate enough state to approach that limit.

Client-side compaction addresses that problem by shrinking the context sent into subsequent Responses API turns while retaining useful state. It is especially relevant when a workflow contains many tool interactions or a long conversational history.

This makes GPT-5.2 useful as a reference point for modern context strategy. Instead of assuming that every prior token must remain verbatim, applications can deliberately manage what the model needs to remember.

  • 400,000-token context window.
  • Maximum output of 128,000 tokens.
  • Designed for substantial professional and agentic working sets.
  • Supports the GPT-5.2-era compaction workflow.
  • Good evaluation target for comparing full-history versus managed-context strategies.
Context capacity

Context window

400,000

Max output

128,000

Input contextOutput limit

A professional GPT-5.2 context can combine documents, spreadsheet instructions, source code, tool definitions, research material, and intermediate agent state.

05 / Reasoning

Reasoning from None to XHigh

GPT-5.2 supports none, low, medium, high, and xhigh reasoning effort, with none as the default.

Start Cheap, Increase Deliberation Only When Evaluation Justifies It

The none default lets GPT-5.2 handle lower-latency interactions without forcing every request through an extended reasoning phase.

For more demanding work, developers can progressively increase reasoning effort. low and medium are useful evaluation points for structured professional tasks, while high and xhigh are better candidates for harder planning, synthesis, debugging, and multi-step agent execution.

GPT-5.2 was the generation that added the xhigh level to this model line. OpenAI also introduced concise reasoning summaries, giving applications a more compact way to expose useful information about the reasoning process without relying on hidden reasoning tokens.

The right setting is workload-specific. An application that always uses the maximum level may waste time and output-token budget on tasks that already succeed at none or low.

Reasoning effort
none · defaultlowmediumhighxhigh

Routine professional task

Start at none or low for clear transformations, straightforward coding, structured extraction, and low-ambiguity workflows.

Complex multi-step task

Test medium through xhigh when planning, research synthesis, debugging, or agent execution benefits from deeper deliberation.

06 / Capabilities

Tools for Controlled Agentic Work

GPT-5.2 supports streaming, function calling, structured outputs, image input, custom tools, allowed-tool restrictions, Apply Patch, local shell workflows, web-assisted research, and Responses API context management.

Tool Control Was Part of the Model's Core API Story

GPT-5.2 supports the basic production features expected from a general API model: streaming, function calling, and structured outputs.

OpenAI also trained the model for more explicit agent behavior. The Apply Patch tool allows it to emit structured file changes for create, update, and delete operations. Local shell support lets a controlled application expose command-line operations and feed execution results back into the next model turn.

Custom tools can accept free-form text rather than only JSON arguments. GPT-5.2 also supports grammar constraints for custom-tool outputs, which can enforce a particular syntax or domain-specific language.

The allowed_tools mechanism provides another layer of control: an application can declare a larger tool universe but restrict the model to a smaller subset for the current step. This is useful for safety, predictability, caching, and long-running workflows.

  • Streaming supported.
  • Function calling supported.
  • Structured outputs supported.
  • Text and image input with text output.
  • Apply Patch supported.
  • Local shell workflows supported.
  • Custom tools and constrained tool outputs supported.
  • Allowed-tool restrictions supported.
  • Fine-tuning and predicted outputs are not supported.
Professional and agent tools
  • Structured outputs

    Return machine-readable results that conform to an application-defined schema.

    Supported
  • Apply Patch

    Emit structured create, update, and delete operations for code and file-editing workflows.

    Supported
  • Local shell

    Use a controlled command-line interface in agentic workflows and reason over command results.

    Supported
  • Custom tools

    Send free-form tool inputs such as code, SQL, shell commands, configuration, or other domain-specific text.

    Supported
  • Allowed tools

    Restrict a larger registered toolset to the subset the model may use during a particular step.

    Supported
  • Fine-tuning

    OpenAI currently lists fine-tuning as unsupported for GPT-5.2.

    Not listed

07 / Evaluation

Strengths and Limitations

GPT-5.2 remains a useful reference model for complex professional and agentic work because it combines broad capability with explicit reasoning and tool controls, but newer GPT-6 models now occupy OpenAI's recommended flagship positions.

Strengths

  • Broad professional capability

    GPT-5.2 was designed across reasoning, knowledge work, coding, multimodality, spreadsheets, and agentic workflows rather than one narrow specialization.

  • Flexible reasoning budget

    Five effort levels from none through xhigh allow applications to tune latency, cost, and inference depth by task.

  • Strong context management

    A 400K context window plus compaction support makes GPT-5.2 suitable for longer professional and multi-step workflows.

  • Explicit agent controls

    Apply Patch, local shell, custom tools, allowed-tool restrictions, function calling, and structured outputs support controlled execution.

What to consider

  • No longer the current flagship

    OpenAI now recommends GPT-6 Astra for the most demanding current API workloads.

  • Smaller context than newer frontier models

    The 400K window is substantial but below the 1.05M context offered by later GPT-5.4, GPT-5.5, GPT-5.6, and GPT-6 models.

  • Reasoning can increase output cost

    Reasoning tokens are billed as output tokens, so higher effort levels can materially change request economics.

  • No fine-tuning

    The official model card lists fine-tuning and predicted outputs as unsupported.

Evaluate the previous flagship

Test GPT-5.2 against your actual professional workloads

Run representative research, spreadsheet, coding, multimodal, and multi-step agent tasks, then compare response quality, token usage, context behavior, latency, and cost in EidoStack.

Start Free

GPT-5.2 is still documented and available, but OpenAI recommends GPT-6 Astra as the current flagship for the most demanding API workloads.

Common Questions

What is GPT-5.2?

GPT-5.2 is OpenAI's previous flagship model for complex professional work. It was designed for broad reasoning, world knowledge, multimodal understanding, coding, spreadsheets, tool use, and multi-step agentic tasks.

Is GPT-5.2 deprecated?

The current OpenAI GPT-5.2 model card does not mark the base gpt-5.2 model as deprecated. It is described as a previous flagship, and OpenAI recommends GPT-6 Astra for the latest flagship API workloads.

How much does GPT-5.2 cost?

GPT-5.2 costs $1.75 per 1M input tokens, $0.175 per 1M cached input tokens, and $14.00 per 1M output tokens.

What is the context window of GPT-5.2?

GPT-5.2 has a 400,000-token context window and supports up to 128,000 output tokens.

What reasoning levels does GPT-5.2 support?

GPT-5.2 supports none, low, medium, high, and xhigh reasoning effort. None is the default.

What is the knowledge cutoff for GPT-5.2?

OpenAI lists August 31, 2025 as the knowledge cutoff for GPT-5.2.

What workloads are a good fit for GPT-5.2?

GPT-5.2 is suitable for complex professional analysis, broad knowledge tasks, spreadsheet workflows, code generation, front-end work, research synthesis, and multi-step agentic tasks.

Does GPT-5.2 support image input?

Yes. GPT-5.2 accepts text and image input and produces text output. Direct audio and video modalities are not supported.

Does GPT-5.2 support structured outputs?

Yes. OpenAI lists structured outputs, function calling, and streaming as supported.

Does GPT-5.2 support Apply Patch?

Yes. OpenAI's Apply Patch documentation lists GPT-5.2 as supported for structured file create, update, and delete operations.

Does GPT-5.2 support shell workflows?

Yes. OpenAI's GPT-5.2 usage guide documents local shell support for controlled command-line workflows.

What context-management features were introduced with GPT-5.2?

OpenAI highlighted improved context management and client-side compaction, which can shrink the context sent between turns in long-running Responses API workflows.

Can GPT-5.2 be fine-tuned?

No. The official model card lists fine-tuning as unsupported for GPT-5.2.

What model does OpenAI recommend instead of GPT-5.2 for new flagship workloads?

The current GPT-5.2 model card recommends GPT-6 Astra as OpenAI's latest flagship for the most demanding work.

Model information

Last updated

The specifications and capabilities on this page are based on OpenAI's official GPT-5.2 model card, GPT-5.2 usage guide, changelog, tool documentation, and prompting guidance. Provider pricing, availability, tool behavior, and recommended migration targets may change, so production assumptions should be checked against the latest OpenAI documentation.

GPT-5.2 — Pricing, 400K Context & Professional Reasoning | EidoStack