Try Bifrost Enterprise free for 14 days.
Request access

gpt-5.2-codex Cost Calculator - OpenRouter

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

Pricing data last updated:

gpt-5.2-codex Cost Calculator

Mode: Chat

Max: 400,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

Limits

Max Input Tokens400,000
Max Output Tokens128,000
Max Tokens128,000

About gpt-5.2-codex

gpt-5.2-codex is a chat model from OpenRouter, one of 351 chat models they offer. It is priced at $1.75 per 1M input tokens and $14.00 per 1M output tokens, ranking 1717 out of 2292 chat models by cost and cheaper than 25% of models in this category. gpt-5.2-codex supports vision, function calling, reasoning, prompt caching, structured output. Its 400K-token context window is in the top 15% among chat models.

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 Tokens400,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 400,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
Prompt Caching - Optimize repeated prompts
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 1717 out of 2292 chat models by input cost. It is more expensive compared to the median of $0.55 for chat models, and is cheaper than 25% of models in this category.

gpt-5.2-codex is one of 351 OpenRouter chat models, with support for vision, function calling, reasoning, prompt caching, structured output. its 400K-token context window places it in the top 15% of chat models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-5.2-codex
amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$2.19$17.50+25%
apac.amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$2.19$17.50+25%
eu.amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$2.19$17.50+25%

Alternatives to gpt-5.2-codex

Similar chat models from other providers

AWS Bedrock
amazon.nova-2-pro-preview-20251202-v1:0
$2.19/1M input
+25% vs gpt-5.2-codex
AWS Bedrock
apac.amazon.nova-2-pro-preview-20251202-v1:0
$2.19/1M input
+25% vs gpt-5.2-codex
AWS Bedrock
eu.amazon.nova-2-pro-preview-20251202-v1:0
$2.19/1M input
+25% vs gpt-5.2-codex
AWS Bedrock
us.amazon.nova-2-pro-preview-20251202-v1:0
$2.19/1M input
+25% vs gpt-5.2-codex
Azure
gpt-5.2
$1.75/1M input
0% vs gpt-5.2-codex

Frequently Asked Questions

Is gpt-5.2-codex cheaper than amazon.nova-2-pro-preview-20251202-v1:0?

Yes. gpt-5.2-codex costs $1.75 per 1M input tokens compared to amazon.nova-2-pro-preview-20251202-v1:0's $2.19 per 1M input tokens, making it 25% more affordable. Both are chat models and share support for vision, function calling, reasoning, prompt caching, structured output.

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

gpt-5.2-codex input pricing is $1.75 per 1M tokens, which is 218% above the median of $0.55 for chat models. It ranks 1717 out of 2292 chat models by input cost, making it cheaper than 25% of models in this category. For output, it costs $14.00 per 1M tokens compared to the median of $1.50.

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

Among OpenRouter's 351 chat models, gpt-5.2-codex ranks 269 by input cost.

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

The most comparable chat models to gpt-5.2-codex are: amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($2.19/1M input tokens); apac.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($2.19/1M input tokens); eu.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($2.19/1M input tokens); us.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($2.19/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 large is gpt-5.2-codex's context window?

gpt-5.2-codex supports up to 400,000 input tokens, placing it in the top 15% of chat models by context window size (rank 304 of 2159). This makes it suitable for processing long documents, extensive code repositories, or maintaining detailed conversation histories.

How do I check if OpenRouter is down?

You can monitor OpenRouter service health in real time on the Bifrost OpenRouter 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.