Try Bifrost Enterprise free for 14 days.
Explore now

grok-4 Cost Calculator - Replicate

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

grok-4 Cost Calculator

Mode: Chat

Cost Breakdown

Input Cost$0.007200
Output Cost$0.036000
Total Cost$0.043200

Pricing Details

Input: $0.00000720 per token
Output: $0.00003600 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

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

About grok-4

grok-4 is a powerful chat AI model offered by Replicate. This comprehensive guide provides detailed pricing information, technical specifications, and capabilities to help you understand the costs and features of using grok-4 in your applications.

Pricing Information

Input Cost$7.20 per 1M tokens
Output Cost$36.00 per 1M tokens

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

Model Capabilities

Function Calling - Execute custom functions and tools
System Messages - Configure model behavior
When should you use grok-4?

grok-4 is best suited for the following scenarios:

  • Agentic systems with function or tool calling
  • Workflow automation and API orchestration
When should you avoid grok-4?
  • High-volume text generation where output cost dominates
  • Streaming or verbose response workloads
  • Complex multi-step reasoning or planning tasks
  • Applications requiring image, audio, or multimodal inputs
  • Very large documents or long conversational histories
How does grok-4 compare to similar models?

This model sits in the middle of its category in terms of pricing and capabilities, making it a balanced option for general workloads.

Understanding grok-4 pricing
  • grok-4 is a general-purpose AI model provided by Replicate.
  • Input tokens are priced at $7.20 per 1M tokens.
  • Output tokens are priced at $36.00 per 1M tokens.
  • For this model, input tokens are less expensive than output tokens, so optimizing your prompts can help manage costs.
  • Supports function calling for executing custom functions and tools.
  • Replicate offers grok-4 for general-purpose AI workloads — general-purpose AI workloads.

How to Use This Calculator

Step 1: Enter the number of input tokens you expect to use. Input tokens include your prompt, system messages, and any context you provide to the model.

Step 2: Specify the number of output tokens you anticipate. Output tokens are the text generated by the model in response to your input.

Step 3: Review the cost breakdown to see the total estimated cost for your usage. The calculator automatically updates as you adjust the token counts.

grok-4 Cost Calculator - Replicate | Bifrost