Try Bifrost Enterprise free for 14 days.
Request access

gpt-5-codex Cost Calculator - Opencode

Calculate the cost of using gpt-5-codex from Opencode for your AI applications

Pricing data last updated:

gpt-5-codex Cost Calculator

Mode: Chat

Cost Breakdown

Input Cost$0.001070
Output Cost$0.008500
Total Cost$0.009570

Pricing Details

Input: $0.00000107 per token
Output: $0.00000850 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

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

About gpt-5-codex

gpt-5-codex is a chat model from Opencode, one of 48 chat models they offer. It is priced at $1.07 per 1M input tokens and $8.50 per 1M output tokens, ranking 1548 out of 2292 chat models by cost and cheaper than 32% of models in this category.

Pricing Information

Input Cost$1.07 per 1M tokens
Output Cost$8.50 per 1M tokens

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

How gpt-5-codex Pricing Compares

At $1.07 per 1M input tokens and $8.50 per 1M output tokens, gpt-5-codex ranks 1548 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 32% of models in this category.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-5-codex
amazon.titan-text-express-v1AWS Bedrock$1.30$1.70+21%
anthropic.claude-haiku-4-5-20251001-v1:0AWS Bedrock$1.00$5.00-7%
anthropic.claude-haiku-4-5@20251001AWS Bedrock$1.00$5.00-7%

Alternatives to gpt-5-codex

Similar chat models from other providers

AWS Bedrock
amazon.titan-text-express-v1
$1.30/1M input
+21% vs gpt-5-codex
AWS Bedrock
anthropic.claude-haiku-4-5-20251001-v1:0
$1.00/1M input
-7% vs gpt-5-codex
AWS Bedrock
anthropic.claude-haiku-4-5@20251001
$1.00/1M input
-7% vs gpt-5-codex
Anyscale
CodeLlama-34b-Instruct-hf
$1.00/1M input
-7% vs gpt-5-codex
Anyscale
CodeLlama-70b-Instruct-hf
$1.00/1M input
-7% vs gpt-5-codex

Frequently Asked Questions

Is gpt-5-codex cheaper than amazon.titan-text-express-v1?

Yes. gpt-5-codex costs $1.07 per 1M input tokens compared to amazon.titan-text-express-v1's $1.30 per 1M input tokens, making it 21% more affordable. Both are chat models.

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

gpt-5-codex input pricing is $1.07 per 1M tokens, which is 95% above the median of $0.55 for chat models. It ranks 1548 out of 2292 chat models by input cost, making it cheaper than 32% of models in this category. For output, it costs $8.50 per 1M tokens compared to the median of $1.50.

What makes gpt-5-codex different from other Opencode models?

Among Opencode's 48 chat models, gpt-5-codex ranks 23 by input cost.

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

The most comparable chat models to gpt-5-codex are: amazon.titan-text-express-v1 from AWS Bedrock ($1.30/1M input tokens); anthropic.claude-haiku-4-5-20251001-v1:0 from AWS Bedrock ($1.00/1M input tokens); anthropic.claude-haiku-4-5@20251001 from AWS Bedrock ($1.00/1M input tokens); CodeLlama-34b-Instruct-hf from Anyscale ($1.00/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 calculate gpt-5-codex costs?

gpt-5-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.07 and generating 1M output tokens costs $8.50.