Try Bifrost Enterprise free for 14 days.
Request access

gpt-4 Cost Calculator - OpenRouter

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

Pricing data last updated:

gpt-4 Cost Calculator

Mode: Chat

Max: 8,191 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,191
Max Output Tokens4,096
Max Tokens4,096

About gpt-4

gpt-4 is a chat model from OpenRouter, one of 351 chat models they offer. It is priced at $30.00 per 1M input tokens and $60.00 per 1M output tokens, ranking 2279 out of 2292 chat models by cost and cheaper than 0% of models in this category. gpt-4 supports function calling, structured output. 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,191
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,191 input tokens. The maximum output length is 4,096 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Response Schema - Structured output formatting

How gpt-4 Pricing Compares

At $30.00 per 1M input tokens and $60.00 per 1M output tokens, gpt-4 ranks 2279 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 351 OpenRouter chat models, with support for function calling, structured output.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-4
gpt-4Azure$30.00$60.000%
gpt-4-0613Azure$30.00$60.000%
ft:gpt-4-0613OpenAI$30.00$60.000%

Alternatives to gpt-4

Similar chat models from other providers

Azure
gpt-4
$30.00/1M input
0% vs gpt-4
OpenAI
gpt-4
$30.00/1M input
0% vs gpt-4
OpenAI
gpt-4-0613
$30.00/1M input
0% vs gpt-4

Frequently Asked Questions

Is gpt-4 cheaper than gpt-4?

No. gpt-4 costs $30.00 per 1M input tokens while gpt-4 costs $30.00 per 1M input tokens, making gpt-4 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 2279 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 OpenRouter models?

Among OpenRouter's 351 chat models, gpt-4 ranks 345 by input cost.

What are the best alternatives to gpt-4?

The most comparable chat models to gpt-4 are: gpt-4 from Azure ($30.00/1M input tokens); gpt-4-0613 from Azure ($30.00/1M input tokens); ft:gpt-4-0613 from OpenAI ($30.00/1M input tokens); gpt-4 from OpenAI ($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 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-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.