Try Bifrost Enterprise free for 14 days.
Request access

gpt-5.2-codex Cost Calculator - OpenAI

Calculate the cost of using gpt-5.2-codex from OpenAI for your AI applications

Pricing data last updated:

gpt-5.2-codex Cost Calculator

Mode: Responses

Max: 272,000 tokens

Max: 128,000 tokens

Cost Breakdown

Input Cost$0.001750
Output Cost$0.014000
Total Cost$0.015750

Pricing Details

Input: $0.00000175 per token
Output: $0.00001400 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

Function Calling
Vision
Reasoning
Web Search

Limits

Max Input Tokens272,000
Max Output Tokens128,000
Max Tokens128,000

About gpt-5.2-codex

gpt-5.2-codex is a responses model from OpenAI, one of 23 responses models they offer. It is priced at $1.75 per 1M input tokens and $14.00 per 1M output tokens, ranking 21 out of 50 responses models by cost and cheaper than 56% of models in this category. gpt-5.2-codex supports vision, function calling, reasoning, web search, prompt caching, structured output. It accepts up to 272K input tokens.

Pricing Information

Input Cost$1.75 per 1M tokens
Output Cost$14.00 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens272,000
Maximum Output Tokens128,000
Maximum Total Tokens128,000

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 272,000 input tokens. The maximum output length is 128,000 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Vision - Process and understand images
Advanced Reasoning - Complex problem-solving capabilities
Web Search - Access real-time web information
Prompt Caching - Optimize repeated prompts
Parallel Function Calling - Execute multiple functions simultaneously
Response Schema - Structured output formatting

How gpt-5.2-codex Pricing Compares

At $1.75 per 1M input tokens and $14.00 per 1M output tokens, gpt-5.2-codex ranks 21 out of 50 responses models by input cost. It is more affordable compared to the median of $4.13 for responses models, and is cheaper than 56% of models in this category.

gpt-5.2-codex is one of 23 OpenAI responses models, with support for vision, function calling, reasoning, web search, prompt caching, structured output.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-5.2-codex
codex-miniAzure$1.50$6.00-14%
gpt-5.2-codexAzure$1.75$14.000%
gpt-5.3-codexAzure$1.75$14.000%

Alternatives to gpt-5.2-codex

Similar responses models from other providers

Azure
codex-mini
$1.50/1M input
-14% vs gpt-5.2-codex
Azure
gpt-5.2-codex
$1.75/1M input
0% vs gpt-5.2-codex
Azure
gpt-5.3-codex
$1.75/1M input
0% vs gpt-5.2-codex
Azure
gpt-5.1-codex
$1.38/1M input
-21% vs gpt-5.2-codex

Frequently Asked Questions

Is gpt-5.2-codex cheaper than codex-mini?

No. gpt-5.2-codex costs $1.75 per 1M input tokens while codex-mini costs $1.50 per 1M input tokens, making codex-mini 14% more affordable for input. However, gpt-5.2-codex may offer different capabilities or performance characteristics that justify the price difference.

How does gpt-5.2-codex pricing compare to the average responses model?

gpt-5.2-codex input pricing is $1.75 per 1M tokens, which is 58% below the median of $4.13 for responses models. It ranks 21 out of 50 responses models by input cost, making it cheaper than 56% of models in this category. For output, it costs $14.00 per 1M tokens compared to the median of $24.75.

What makes gpt-5.2-codex different from other OpenAI models?

Among OpenAI's 23 responses models, gpt-5.2-codex ranks 6 by input cost.

What are the best alternatives to gpt-5.2-codex?

The most comparable responses models to gpt-5.2-codex are: codex-mini from Azure ($1.50/1M input tokens); gpt-5.2-codex from Azure ($1.75/1M input tokens); gpt-5.3-codex from Azure ($1.75/1M input tokens); gpt-5.1-codex from Azure ($1.38/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How do I check if OpenAI is down?

You can monitor OpenAI service health in real time on the Bifrost OpenAI Status page. It tracks current component status, active incidents, and historical reliability data pulled from the official status page every 60 seconds.

How do I calculate gpt-5.2-codex costs?

gpt-5.2-codex is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $1.75 and generating 1M output tokens costs $14.00.