Grok 4
xai/grok-4出品方: xAI · 系列: grok · 发布 2025-07-09 · 知识截止: 2025-07
Prices in USD per 1M tokens. Unknown means the provider does not publish per-token pricing.
能力清单
Model fit scores
0–100 · higher is betterThese scores reward declared capabilities, context size, price and provider availability — they are not benchmark results. Use them as a directional signal alongside your own evaluation.
Coding68
- Tool calling40/40
- Structured output0/20
- Reasoning10/10
- Context window (100K → 1M)8/20
- Provider availability10/10
Agents75
- Tool calling35/35
- Structured output0/25
- Reasoning15/15
- Output token limit15/15
- Provider availability10/10
JSON / structured output30
- Structured output / JSON mode0/50
- Tool calling20/20
- Temperature control10/10
- Price-friendly for high-volume0/20
Cost efficiency36
- Headline price (log-scaled)31/95
- Has prompt-cache pricing5/5
Long context60
- Context window (100K → 2M)50/90
- Has published price for full window10/10
Production-readiness96
- Number of independent providers40/40
- Has published per-token price20/20
- Context window ≥ 8K15/15
- No data inconsistencies across providers6/10
- Official model (not derivative)15/15
Cost Efficiency Index
Open full calculator →Estimated cost using the recommended provider's headline rate. Each scenario fixes average input/output tokens — the assumptions are shown in the third column.
| Scenario | Cost | Assumption |
|---|---|---|
RAG answer per 1,000 RAG answers | $22.50 $0.02 per request | 5K input tokens (query + 4 retrieved chunks of ~1K each) and a 500-token answer. Typical SaaS knowledge-base bot. |
Support ticket triage per 10,000 tickets | $45.00 < $0.01 per request | 1K input tokens (ticket body + system prompt) and a 100-token JSON classification reply. High-volume customer support. |
Data extraction per 1,000 documents | $13.50 $0.01 per request | 2K input tokens (a single document page) and a 500-token JSON extraction. ETL / invoice / form pipelines. |
Code review per 1,000 PRs | $39.00 $0.04 per request | 8K input tokens (diff + surrounding files) and a 1K-token review comment. PR-bot workloads. |
Agent step per 1,000 steps | $45.00 $0.04 per request | 12K input tokens (long-running tool history) and a 600-token tool-call decision. Cost per agent step. |
定价详情
推荐定价来自 xai · grok-4
在 12 家渠道可用
| 服务商 | 服务商模型 ID | 输入 / 1M | 输出 / 1M | 上下文 | 发布日期 |
|---|---|---|---|---|---|
| xAI xai | grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| Azure azure | grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| OpenRouter openrouter | x-ai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| Vercel AI Gateway vercel | xai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| ZenMux zenmux | x-ai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| Kilo Gateway kilo | x-ai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| Poe poe | xai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-10 |
| Helicone helicone | grok-4 | $3.00 | $15.00 | 256K | 2024-07-09 |
| Azure Cognitive Services azure-cognitive-services | grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| Requesty requesty | xai/grok-4 | $3.00 | $15.00 | 256K | 2025-09-09 |
| LLM Gateway llmgateway | grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
| FastRouter fastrouter | x-ai/grok-4 | $3.00 | $15.00 | 256K | 2025-07-09 |
各渠道数据存在不一致
- release_date varies (span 427d): 2024-07-09, 2025-07-09, 2025-07-10, 2025-09-09
- modalities varies across offerings
各服务商对此模型的报告值存在差异。上方「核心数据」使用代表性服务商的值;逐项请以下表为准。
Frequently asked questions
How much does Grok 4 cost?
Grok 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, sourced from xai. Cache reads, audio tokens and >200K-context tiers (where applicable) are listed in the Pricing detail block above.
What is the context window of Grok 4?
Grok 4 has a context window of 256K tokens, with a max output of 64K tokens per reply. This is the total combined size of prompt + completion.
Does Grok 4 support tool calling?
Yes. Grok 4 supports tool calling (function calling). This makes it suitable for production agent and automation workloads where the model has to invoke external functions reliably.
Does Grok 4 support structured output / JSON mode?
Support for structured output / JSON-schema-constrained decoding is not reported for Grok 4 in our data source. Verify with xAI's official documentation before relying on it in production.
Can Grok 4 accept image input?
No. Grok 4 only accepts text as input. If you need image input, see our /capabilities/vision list for current vision-capable models.
Is Grok 4 open-weight?
No. Grok 4 is a proprietary model — only xAI (and any approved hosting partners) can serve it. The pricing above reflects the cheapest API access.
What are the best alternatives to Grok 4?
If Grok 4 doesn't fit, consider Grok Code Fast 1, Grok 4.1 Fast (Non-Reasoning), Grok 4 Fast (Non-Reasoning). Each one targets the same use case — see the Related links below for direct head-to-head pages.
Where does this data come from?
All numbers come from the public models.dev API and are normalised into a single canonical model record. We re-pull daily and write any changes (price, context, capability) to the /changelog page.
Explore more
Direct comparisons
- Grok 4 vs GPT-5flagship
More xAI models
- Grok Code Fast 1$0.20 in / $1.50 out
- Grok 4.1 Fast (Non-Reasoning)$0.20 in / $0.50 out
- Grok 4 Fast (Non-Reasoning)$0.20 in / $0.50 out
- Grok 4.1 Fast (Reasoning)$0.18 in / $0.45 out
- Grok 3$3.00 in / $15.00 out
Capability lists this model is in
最近更新:
Data is sourced from models.dev and normalized for comparison. Prices and capabilities may change. Always verify critical production decisions with the provider's official documentation.