DevTk.AI

GPT-5.2-Codex

OpenAI unavailable

GPT-5.2-Codex by OpenAI: $1.75/M cache-miss input, $14.00/M output tokens. Cached input: $0.175/M. 400K context, 128K max output. Vision & Function Calling. Price verified 2026-11-18.

Input Price

$1.75

cache miss / 1M tokens

Cached Input

$0.175

per 1M tokens

Output Price

$14.00

per 1M tokens

Context Window

400K

tokens

GPT-5.2-Codex price history

No price changes recorded for GPT-5.2-Codex in our AI API price change log (earliest entry: 2026-05-27). Current rates last verified against the official OpenAI pricing page on 2026-11-18. See all AI API price changes

Cheaper ways to use GPT-5.2-Codex

Current free credits and discounts that apply to OpenAI models.

  • 🧠OpenAI APIFree Trial— Usage-based API billing; new accounts use prepaid credits, free credits are not guaranteed
See all AI deals and free credits →

Specifications

ProviderOpenAI
Model IDgpt-5.2-codex
Input Price$1.75 / 1M cache-miss tokens
Cached Input Price$0.175 / 1M tokens
Output Price$14.00 / 1M tokens
Context Window400K tokens
Max Output128K tokens
Capabilities
textvisionfunction_callingstructured_output
Release Date2026-04
Pricing SourceOfficial OpenAI pricing
Price Verified2026-11-18
NotesShut down on 2026-07-23. Prefer GPT-6 Sol for agentic coding.

Monthly Cost Estimates

Estimated monthly costs based on different daily usage levels (assuming 50% input / 50% output split). Input estimates use cache-miss pricing, so cache-heavy workloads can be lower.

Daily TokensMonthly CostAnnual Cost
10K $2.36 $28.35
50K $11.81 $141.75
100K $23.63 $283.50
500K $118.13 $1417.50
1.0M $236.25 $2835.00

How GPT-5.2-Codex Pricing Compares

Standard cache-miss input / output prices per 1M tokens, compared with active, price-verified models priced in USD. Cached, batch and long-context rates are not included.

  • Within OpenAI: 4 of 15 other active OpenAI models have a lower input price, and 8 have a lower output price.
  • Similar context window: among the 20 active models with a 200K–800K token context window, GPT-5.2-Codex ranks #20 from cheapest at a 50/50 input/output mix. Cheapest: GLM-4.7-Flash ($0.00/$0.00). It is the most expensive in this group.

Use our Token Counter to estimate how many tokens your prompts use, and our Pricing Calculator to compare costs across all models.

GPT-5.2-Codex Key Details

  • Pricing: $1.75/M cache-miss input tokens, $0.175/M cached input tokens, $14.00/M output tokens
  • Context window: 400K tokens — 71 of 90 active models we track have a larger window
  • Max output: 128K tokens per response
  • Capabilities: text, vision, function_calling, structured_output
  • Highlights: Shut down on 2026-07-23. Prefer GPT-6 Sol for agentic coding.
  • Released: 2026-04

Other OpenAI Models

Similar Price Range

Related Tools

FAQ

How much does GPT-5.2-Codex cost?

GPT-5.2-Codex costs $1.75 per million cache-miss input tokens and $14.00 per million output tokens. Cached input costs $0.175 per million tokens. For a typical workload of 100K input tokens/day and 50K output tokens/day, expect approximately $26.25/month before cache-hit savings.

What is GPT-5.2-Codex's context window?

GPT-5.2-Codex supports a context window of 400K tokens. This means your combined input prompt and output response can be up to 400K tokens. The maximum output per response is 128K tokens.

Is GPT-5.2-Codex good for my use case?

GPT-5.2-Codex supports text, vision, function_calling, structured_output. We track pricing and limits, not output quality, so test it on your own prompts before committing. The price comparison above lists cheaper and pricier models with a similar context window, and the Pricing Calculator estimates your monthly cost across all of them.