Try Bifrost Enterprise free for 14 days.
Request access

grok-4 Cost Calculator - OpenRouter

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

Pricing data last updated:

grok-4 Cost Calculator

Mode: Chat

Max: 256,000 tokens

Max: 256,000 tokens

Cost Breakdown

Input Cost$0.003000
Output Cost$0.015000
Total Cost$0.018000

Pricing Details

Input: $0.00000300 per token
Output: $0.00001500 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
Reasoning
Web Search

Limits

Max Input Tokens256,000
Max Output Tokens256,000
Max Tokens256,000

About grok-4

grok-4 is a chat model from OpenRouter, one of 351 chat models they offer. It is priced at $3.00 per 1M input tokens and $15.00 per 1M output tokens, ranking 1920 out of 2292 chat models by cost and cheaper than 16% of models in this category. grok-4 supports function calling, reasoning, web search — one of only 6 chat models with this combination. Its 256K-token context window is in the top 29% among chat models.

Pricing Information

Input Cost$3.00 per 1M tokens
Output Cost$15.00 per 1M tokens

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

Technical Specifications

Maximum Input Tokens256,000
Maximum Output Tokens256,000
Maximum Total Tokens256,000

Pro Tip

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

Model Capabilities

Function Calling - Execute custom functions and tools
Advanced Reasoning - Complex problem-solving capabilities
Web Search - Access real-time web information

How grok-4 Pricing Compares

At $3.00 per 1M input tokens and $15.00 per 1M output tokens, grok-4 ranks 1920 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 16% of models in this category.

grok-4 is one of 351 OpenRouter chat models, one of only 6 chat models combining function calling, reasoning, web search. its 256K-token context window places it in the top 29% of chat models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs grok-4
anthropic.claude-sonnet-4-6AWS Bedrock$3.00$15.000%
global.anthropic.claude-sonnet-4-6AWS Bedrock$3.00$15.000%
us.anthropic.claude-sonnet-4-6AWS Bedrock$3.30$16.50+10%

Alternatives to grok-4

Similar chat models from other providers

AWS Bedrock
anthropic.claude-sonnet-4-6
$3.00/1M input
0% vs grok-4
AWS Bedrock
global.anthropic.claude-sonnet-4-6
$3.00/1M input
0% vs grok-4
AWS Bedrock
us.anthropic.claude-sonnet-4-6
$3.30/1M input
+10% vs grok-4
AWS Bedrock
eu.anthropic.claude-sonnet-4-6
$3.30/1M input
+10% vs grok-4
AWS Bedrock
au.anthropic.claude-sonnet-4-6
$3.30/1M input
+10% vs grok-4

Frequently Asked Questions

Is grok-4 cheaper than anthropic.claude-sonnet-4-6?

Yes. grok-4 costs $3.00 per 1M input tokens compared to anthropic.claude-sonnet-4-6's $3.00 per 1M input tokens, making it 0% more affordable. Both are chat models and share support for vision, function calling, reasoning, web search, prompt caching, structured output.

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

grok-4 input pricing is $3.00 per 1M tokens, which is 445% above the median of $0.55 for chat models. It ranks 1920 out of 2292 chat models by input cost, making it cheaper than 16% of models in this category. For output, it costs $15.00 per 1M tokens compared to the median of $1.50.

What makes grok-4 different from other OpenRouter models?

Among OpenRouter's 351 chat models, grok-4 ranks 303 by input cost. Its combination of function calling, reasoning, web search is shared by only 5 other chat models.

What are the best alternatives to grok-4?

The most comparable chat models to grok-4 are: anthropic.claude-sonnet-4-6 from AWS Bedrock ($3.00/1M input tokens); global.anthropic.claude-sonnet-4-6 from AWS Bedrock ($3.00/1M input tokens); us.anthropic.claude-sonnet-4-6 from AWS Bedrock ($3.30/1M input tokens); eu.anthropic.claude-sonnet-4-6 from AWS Bedrock ($3.30/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 grok-4's context window?

grok-4 supports up to 256,000 input tokens, placing it in the top 29% of chat models by context window size (rank 583 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 grok-4 costs?

grok-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 $3.00 and generating 1M output tokens costs $15.00.