Antimatter
OpenAI

GPT-5.2-Codex

openai/gpt-5.2-codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows.

$1.925 in · $15.40 out per 1M tokens400k contextJan 14, 2026

about 0.9¢ a message

A typical message: about 500 tokens you send and 500 it writes.

Published facts from the catalog, billed prices and what we measured here. Anything not measured says so.

Price, billed here

Input, per 1M tokens
$1.925provider $1.75
Output, per 1M tokens
$15.40provider $14.00
Cached input, per 1M
$0.1925provider $0.175
Margin
+10%

Context and formats

Context window
400,000 tokens
Longest answer
128,000 tokens
Reads
text and images
Makes
text
First listed
2026-01-14

Measured here, last 7 days

First token, median
not measured
Answered without error
not measured

Tools and JSON

Tool calling
declaredthe provider's claim, not yet measured here
JSON output
declaredthe provider's claim, not yet measured here

Price and latency history as JSON: GET /api/planet/history?id=openai/gpt-5.2-codex.

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

In OpenAI's words.

The answer appears here.

Use one OpenAI compatible endpoint, this model's id and an am_live_ key from the dashboard. You can also try it in chat first with no key.

curl https://useantimatter.com/v1/chat/completions \
  -H "Authorization: Bearer $ANTIMATTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-5.2-codex", "messages": [{"role": "user", "content": "Hello"}]}'

Everything else is in the docs.

A badge showing this model's live price per million tokens, as billed here, for a README or a site. It links back to this page.

GPT-5.2-Codex price on Antimatter
<a href="https://useantimatter.com/planet/openai/gpt-5.2-codex"><img src="https://useantimatter.com/api/badge/price?id=openai%2Fgpt-5.2-codex" alt="GPT-5.2-Codex price on Antimatter" height="28"></a>

Closest in price and memory, from other labs.

Go back to the map, or take this model into a chat.