Try Bifrost Enterprise free for 14 days.
Request access

gpt-4 Cost Calculator - OpenAI

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

Pricing data last updated:

gpt-4 Cost Calculator

Mode: Chat

Max: 8,192 tokens

Max: 4,096 tokens

Cost Breakdown

Input Cost$0.030000
Output Cost$0.060000
Total Cost$0.090000

Pricing Details

Input: $0.00003000 per token
Output: $0.00006000 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

Limits

Max Input Tokens8,192
Max Output Tokens4,096
Max Tokens4,096

About gpt-4

gpt-4 is a chat model from OpenAI, one of 100 chat models they offer. It is priced at $30.00 per 1M input tokens and $60.00 per 1M output tokens, ranking 2276 out of 2292 chat models by cost and cheaper than 0% of models in this category. gpt-4 supports function calling, prompt caching. It accepts up to 8K input tokens.

Pricing Information

Input Cost$30.00 per 1M tokens
Output Cost$60.00 per 1M tokens

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

Technical Specifications

Maximum Input Tokens8,192
Maximum Output Tokens4,096
Maximum Total Tokens4,096

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 8,192 input tokens. The maximum output length is 4,096 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Prompt Caching - Optimize repeated prompts
System Messages - Configure model behavior

How gpt-4 Pricing Compares

At $30.00 per 1M input tokens and $60.00 per 1M output tokens, gpt-4 ranks 2276 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 0% of models in this category.

gpt-4 is one of 100 OpenAI chat models, with support for function calling, prompt caching.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-4
claude-opus-4.7-fastOpenRouter$30.00$150.000%
claude-opus-4.6-fastOpenRouter$30.00$150.000%
gpt-4Azure$30.00$60.000%

Alternatives to gpt-4

Similar chat models from other providers

OpenRouter
claude-opus-4.7-fast
$30.00/1M input
0% vs gpt-4
OpenRouter
claude-opus-4.6-fast
$30.00/1M input
0% vs gpt-4
Azure
gpt-4
$30.00/1M input
0% vs gpt-4
OpenRouter
gpt-4
$30.00/1M input
0% vs gpt-4

Frequently Asked Questions

Is gpt-4 cheaper than claude-opus-4.7-fast?

No. gpt-4 costs $30.00 per 1M input tokens while claude-opus-4.7-fast costs $30.00 per 1M input tokens, making claude-opus-4.7-fast 0% more affordable for input. However, gpt-4 may offer different capabilities or performance characteristics that justify the price difference.

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

gpt-4 input pricing is $30.00 per 1M tokens, which is 5355% above the median of $0.55 for chat models. It ranks 2276 out of 2292 chat models by input cost, making it cheaper than 0% of models in this category. For output, it costs $60.00 per 1M tokens compared to the median of $1.50.

What makes gpt-4 different from other OpenAI models?

Among OpenAI's 100 chat models, gpt-4 ranks 98 by input cost.

What are the best alternatives to gpt-4?

The most comparable chat models to gpt-4 are: claude-opus-4.7-fast from OpenRouter ($30.00/1M input tokens); claude-opus-4.6-fast from OpenRouter ($30.00/1M input tokens); gpt-4 from Azure ($30.00/1M input tokens); gpt-4-0613 from Azure ($30.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 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-4 costs?

gpt-4 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 $30.00 and generating 1M output tokens costs $60.00.