grok-2 by xai - AI Model Details, Pricing, and Performance Metrics

xai
grok-2
xai

grok-2

completions
byxai

Grok-2 is an advanced AI model developed by xAI, designed to provide highly accurate and helpful responses to a wide range of questions, often with a unique perspective on humanity.

Released
Aug 13, 2024
Knowledge
Feb 15, 2024
License
Proprietary
Context
131072
Input
$2 / 1M tokens
Output
$10 / 1M tokens
Cached
$0.5 / 1M tokens
Capabilities: tools
Accepts: text
Returns: text

Access grok-2 through LangDB AI Gateway

Recommended

Integrate with xai's grok-2 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Request Volume
Daily API requests
1
Performance (TPS)
Tokens per second
1069.55 tokens/s

Category Scores

Benchmark Tests

View Other Benchmarks
GPQA
56.0
STEM (Physics, Chemistry, Biology)
HumanEval
88.4
Programming
MMLU
87.5
General Knowledge
MMLU-Pro
75.5
General Knowledge
MMMU
66.1
General Knowledge

Code Examples

Integration samples and API usage