← All models

grok-2

xai · chat model

grok-2 is listed here as a chat model from xai. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.

Input
$2.0000 / 1M tokens
Output
$10.0000 / 1M tokens
Cached input
N/A
Context
131.1K

Quick read

Best for

Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.

Things to verify

Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.

Pricing

Item Price
Input
$2.0000 / 1M tokens
Output
$10.0000 / 1M tokens
Embedding
$2.0000 / 1M tokens

Token limits

Context window
131.1K
Max input tokens
131.1K
Max output tokens
131.1K
Max tokens
131.1K

Capabilities

Capability Supported
Vision
Function calling
Parallel function calling
Tool choice
Prompt caching
Reasoning
Response schema
System messages
Audio input
Audio output
Web search
PDF input
Video input

Benchmarks

Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer

Benchmark Score Metric Scope Checked Source
GPQA 56.0% accuracy Base model: grok-2 (Grok-2) 2026-05-31 Link
MMLU 87.5% accuracy Base model: grok-2 (Grok-2) 2026-05-31 Link
MMLU-Pro 75.5% accuracy Base model: grok-2 (Grok-2) 2026-05-31 Link
MATH 76.1% accuracy Base model: grok-2 (Grok-2) 2026-05-31 Link
HumanEval 88.4% pass@1 Base model: grok-2 (Grok-2) 2026-05-31 Link
MMMU 66.1% accuracy Base model: grok-2 (Grok-2) 2026-05-31 Link

Sources

Source links
Pricing data LiteLLM model cost map
Synced at 2026-05-28

Docs

Official docs

Similar models

This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.

Comparing from
Model Cost Input shape Features Context Why it is close
grok-2
xai
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Current model
Reference row

Overall blends cost, modality overlap, capabilities, and context.

Model Cost Input shape Features Context Why it is close
grok-2-1212
xai
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 100%
grok-2-latest
xai
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 100%
grok-3
azure_ai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Text covered
Overall 93%
grok-3
azure_ai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Text covered
Overall 93%
grok-4
azure_ai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Text covered
Overall 87%
grok-3
xai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 87%
grok-3-beta
xai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 87%
grok-3-latest
xai
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 87%
grok-3-fast-beta
xai
In $5.0000 / 1M tokens
Out $25.0000 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Same provider
Overall 82%
grok-2
vercel_ai_gateway
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text
Output: text
Function callingTool choice
4.0K
Text covered
Overall 77%
grok-3-mini
azure_ai
In $0.2500 / 1M tokens
Out $1.2700 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Text covered
Overall 76%
grok-3-mini
azure_ai
In $0.2500 / 1M tokens
Out $1.2700 / 1M tokens
text
Output: text
Function callingTool choiceWeb search
131.1K
Text covered
Overall 76%
grok-2-vision
xai
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text image
Output: text
Function callingTool choiceWeb search
32.8K
Same provider
Overall 71%
grok-2-vision-1212
xai
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text image
Output: text
Function callingTool choiceWeb search
32.8K
Same provider
Overall 71%
grok-2-vision
vercel_ai_gateway
In $2.0000 / 1M tokens
Out $10.0000 / 1M tokens
text image
Output: text
Function callingTool choice
32.8K
Text covered
Overall 64%