🎁 New Sign up free, 10 calls on us. Up to $1, no card needed.

GPT-5.2 Codex Released 2026-01-14

OpenAI chat code tools reasoning
Input$1.75/M
Output$14/M
Cache read$0.875/M
Context400K
vs GPT-4o~65% cheaper
Knowledge cutoff2025-08

Provider list prices: no platform markup, pay-as-you-go. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing. Effective input at a 70% cache-hit rate:$1.1375/M. Automatic prefix caching once a prompt passes the minimum length, with no code changes; cached reads are discounted (up to 90% on current models) and there is no write fee.

Use GPT-5.2 Codex in 30 seconds

OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="gpt-5.2-codex",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

About GPT-5.2 Codex

Most intelligent coding model of its generation
Optimized for long-horizon agentic coding
Four reasoning-effort levels, low through xhigh

GPT-5.2 Codex is described by OpenAI as its most intelligent coding model of its generation: an upgraded version of GPT-5.2 optimized for long-horizon, agentic coding tasks in Codex-style environments.

  • It supports a 400K-token context window, 128K max output tokens, four reasoning-effort levels (low through xhigh), streaming, function calling, and structured outputs.
  • The model is purpose-built for autonomous, extended development workflows rather than general chat.
  • Synthorai routes GPT-5.2 Codex traffic through its OpenAI-compatible endpoint with no client changes required.

Specs & limits

Max output (vendor spec)128,000
Modalitiestext + image → text
Featurestools · parallel_tool_calls · structured_output · streaming · vision · batch · reasoning · caching
NotableGPT-5.2 variant optimized for long-running agentic coding in Codex environments; 400k context.
Prompt cachingautomatic · min 1,024-token prefix · TTL 5–10m, up to 1h

per OpenAI official docs ↗

FAQ

Is the GPT-5.2 Codex API free to try?

Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $1.75/M input tokens, that credit alone covers roughly 71 requests of ~8K tokens against GPT-5.2 Codex.

What is GPT-5.2 Codex best at?

Most intelligent coding model of its generation, plus optimized for long-horizon agentic coding and four reasoning-effort levels, low through xhigh. See the About section for the full picture from the vendor's own release notes.

How much does GPT-5.2 Codex cost?

GPT-5.2 Codex costs $1.75 per million input tokens and $14 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.875/M.

Does GPT-5.2 Codex support prompt caching?

Yes, automatically: OpenAI-served prompts cache with no code changes. Cached input tokens bill at $0.875/M vs $1.75/M uncached; prompts need a 1,024-token stable prefix to cache (TTL 5–10m, up to 1h). Prompt caching guide →

How do I get access to GPT-5.2 Codex?

Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gpt-5.2-codex", and you're done. One API key covers every model on the gateway.

What is GPT-5.2 Codex's knowledge cutoff?

GPT-5.2 Codex's knowledge cutoff is 2025-08, per the vendor's official documentation (as of 2026-07-09).

Related models

Get your free API key Compare your cost →