GPT-5.2 Codex

OpenAI · January 2026

Built for programming and long, self-directed coding tasks.

Superseded by GPT-5.3 Codex →

  • Modalities

  • Context window

    400,000 tokens, ≈ 300,000 words · about 1,200 pages

  • Max output

    128,000 tokens, ≈ 96,000 words in a single answer

  • Knowledge cutoff

    August 2025

Reasoning effort

  • Low

  • Medium

  • High

  • X-High

Providers

Files you can attach

  • ImagesJPG, PNG, GIF, WEBP
  • DocumentsPDF, DOCX, XLSX, PPTX
  • Text and codeTXT, MD, CSV, TSV, RPT, LOG, PY, TS, TSX, JS, JSX, CS, GO, JAVA, KT, SWIFT, CPP, C, H, PHP, RB, SQL, SH, PS1, HTML, CSS, SCSS, JSON, YAML, YML, XML, INI

Features

  • StreamingSupported
  • Function callingSupported
  • Structured outputsSupported
  • Fine-tuningNot supported

Ready to try it?

Log in

Bring your own API key · Your chats stay in your browser