Calculate the cost of using grok-2 from xAI for your AI applications
Pricing data last updated:
Mode: Chat
Max: 131,072 tokens
Max: 131,072 tokens
Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.
grok-2 is a chat model from xAI, one of 41 chat models they offer. It is priced at $2.00 per 1M input tokens and $10.00 per 1M output tokens, ranking 2135 out of 2661 chat models by cost and cheaper than 19% of models in this category. grok-2 supports function calling, web search — one of only 10 chat models with this combination. It accepts up to 131K input tokens.
Note: Use the interactive calculator above to estimate costs for your specific usage patterns.
Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 131,072 input tokens. The maximum output length is 131,072 tokens.
At $2.00 per 1M input tokens and $10.00 per 1M output tokens, grok-2 ranks 2135 out of 2661 chat models by input cost. It is more expensive compared to the median of $0.50 for chat models, and is cheaper than 19% of models in this category.
grok-2 is one of 41 xAI chat models, one of only 10 chat models combining function calling, web search.
| Model | Provider | Input / 1M tokens | Output / 1M tokens | vs grok-2 |
|---|---|---|---|---|
| gpt-5.6-terra | Azure | $2.50 | $15.00 | +25% |
| claude-sonnet-5 | Anthropic | $2.00 | $10.00 | 0% |
| gemini-3-pro-preview | Vertex AI | $2.00 | $12.00 | 0% |
Similar chat models from other providers
Yes. grok-2 costs $2.00 per 1M input tokens compared to gpt-5.6-terra's $2.50 per 1M input tokens, making it 25% more affordable. Both are chat models and share support for vision, function calling, reasoning, web search, prompt caching, structured output.
grok-2 input pricing is $2.00 per 1M tokens, which is 300% above the median of $0.50 for chat models. It ranks 2135 out of 2661 chat models by input cost, making it cheaper than 19% of models in this category. For output, it costs $10.00 per 1M tokens compared to the median of $1.44.
Among xAI's 41 chat models, grok-2 ranks 23 by input cost. Its combination of function calling, web search is shared by only 9 other chat models.
The most comparable chat models to grok-2 are: gpt-5.6-terra from Azure ($2.50/1M input tokens); claude-sonnet-5 from Anthropic ($2.00/1M input tokens); gemini-3-pro-preview from Vertex AI ($2.00/1M input tokens); gemini-3.1-pro-preview from Vertex AI ($2.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.
grok-2 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 $2.00 and generating 1M output tokens costs $10.00.