xAI

Grok 4 Pricing & Token Costs (2025)

Per 1M tokens: input $3.00 · output $15.00$ · cached 0.750. Context window $256,000 tokens with source and verification details.

Launch calculator

TL;DR — Pricing Quick Summary

  • Input pricing: $3.00 per 1M tokens ($0.0030 per 1K)
  • Output pricing: $15.00 per 1M tokens ($0.0150 per 1K)
  • Prompt caching: $0.750 per 1M tokens — save 75% on repeated context
  • Context window: 256,000 tokens
  • Typical monthly cost: $60.00 for 10M input + 2M output tokens
  • Daily cost example: $0.9000 for 100K tokens (50K in, 50K out)

Key metrics

Context window
256,000 tokens
Input price
$3.00 / 1M tokens
Output price
$15.00 / 1M tokens
Cached input
$0.750 / 1M tokens
Live search
$25.00 / 1K sources
Trusted sources

Official link:https://docs.x.ai/docs/models

Last verified: 2025-09-22

Pricing notes
  • · Contexts above 128K tokens are billed with high-tier pricing; see official docs.
  • · Live search pricing is $0.025 per source (per 1K sources).

Multi-currency (per 1M tokens)

CurrencyInputCachedOutputLive search*
USD$3.00$0.75$15.00$25.00
CNY¥21.45¥5.36¥107.25¥178.75
EUR2,76 €0,69 €13,80 €23,00 €
JPY¥438¥110¥2,190¥3,650

* Live search cost uses sources / 1000 × price and currently applies to xAI Grok only.

Frequently Asked Questions

What is the cost per 1M tokens for xAI Grok 4?

xAI Grok 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, with cached input at $0.750 per 1M tokens.

How much does it cost per 1K tokens?

Per 1K tokens: $0.0030 for input and $0.0150 for output. This is useful for calculating costs for smaller workloads or individual API calls.

What is the estimated monthly cost for typical usage?

For a typical workload of 10M input + 2M output tokens per month, xAI Grok 4 would cost approximately $60.00. Daily usage of 100K tokens (50K in, 50K out) costs about $0.9000.

Does xAI Grok 4 offer a free tier?

Check xAI's official documentation for free tier availability. Some providers offer free credits for new users or limited free usage. Visit https://docs.x.ai/docs/models for current free tier details.

How does prompt caching work to reduce costs?

With prompt caching enabled, input pricing drops to $0.750 per 1M tokens for repeated context (a 75% discount), while output remains $15.00 per 1M tokens. Caching is ideal for repeated prompts or system messages.

What is the context window size for Grok 4?

Grok 4 supports a 256,000 token context window. This determines the maximum combined length of your input prompt and output response.

How frequently is this pricing information updated?

All prices reference official xAI documentation (https://docs.x.ai/docs/models), last verified on 2025-09-22. We update pricing as soon as providers announce changes.

How can I calculate exact costs for my use case?

Use our free token calculator to estimate costs based on your specific usage pattern. The calculator supports all major models and shows costs in multiple currencies. You can also compare costs across different models to find the most economical option.