Input Price
$3
per 1M tokens
Output Price
$15
per 1M tokens
Context Window
256K
tokens (131.072K max output)
Specifications
Release Date2025-07-09
Category🧠 Reasoning
Context Window256,000 tokens
Max Output131,072 tokens
Capabilities
textvisionreasoningcode
Related Use Cases
🤖
AI Agent / Agentic Workflows
Calculate the cost of running AI agents that use tools, make decisions, and complete multi-step tasks.
~10,000 in · ~3,000 out
💬
AI Chatbot
Calculate the API cost of running a customer support or conversational AI chatbot.
~2,000 in · ~500 out
📄
Document Summarizer
Calculate how much it costs to summarize documents, reports, and articles with AI.
~8,000 in · ~1,000 out
💻
AI Code Assistant
Calculate the cost of building an AI-powered coding assistant or copilot.
~4,000 in · ~2,000 out
✍️
Content Generation
Calculate the cost of generating blog posts, marketing copy, and articles with AI.
~1,500 in · ~3,000 out
🖼️
Image Analysis
Calculate the cost of analyzing images with AI vision models.
~6,000 in · ~500 out
Monthly Cost Estimates
| Usage Level | Daily Tokens | Daily | Monthly | Yearly |
|---|---|---|---|---|
| Light~50 requests/day | 100K in / 20K out | $0.60 | $18.00 | $219 |
| Medium~200 requests/day | 500K in / 100K out | $3.00 | $90.00 | $1095 |
| Heavy~1K requests/day | 2,000K in / 500K out | $13.50 | $405.00 | $4928 |
| Enterprise~5K requests/day | 10,000K in / 2,000K out | $60.00 | $1800.00 | $21900 |
Cost Calculator
Alternatives to Grok 4
💰 Cheaper Options
Frequently Asked Questions
How much does Grok 4 API cost per million tokens?▼
Grok 4 costs $3 per million input tokens and $15 per million output tokens as of 2026. These are the standard API rates from xAI.
What is the Grok 4 context window?▼
Grok 4 supports a 256K context window (256,000 tokens), which means you can process up to 256K tokens in a single API call.
How much does Grok 4 cost per month?▼
At medium usage (~200 requests/day with 500K input and 100K output tokens/day), Grok 4 costs approximately $90.00/month. Light usage runs about $18.00/month, and heavy usage (~1K requests/day) around $405.00/month.
Is there a cheaper alternative to Grok 4?▼
Yes — GPT-5.4 by OpenAI is a cheaper option at $2.5/M input tokens vs $3/M for Grok 4. Other budget alternatives include models in the efficient tier.
Is Grok 4 good for ai agent / agentic workflows?▼
Grok 4 is a reasoning model with support for text, vision, reasoning. For ai agent / agentic workflows, it offers 256K context and costs $3/M input tokens — a mid-range option for this use case.
Grok 4 Comparisons
Ready to use Grok 4?
Get started with xAI's API — free tier available for most models.