ProprietaryxAImidtextvision
Grok 2
xAI's first widely-available model, free on X for Premium subscribers and competitive with the GPT-4 mid-tier of its era.
Updated
Quick facts
- Released
- Aug 2024
- Context
- 128K tokens
- Output / 1M
- Pricing not published
- License
- Proprietary
About Grok 2
Grok 2 brought xAI's chatbot to general availability on the X platform and via API. Most use cases have moved on to Grok 3 / 4, but it remains a reasonable default for Premium subscribers using xAI on X.
Benchmarks
Published scores from xAI's model card or independent leaderboards. We do not publish numbers we cannot source, see methodology.
HumanEval
,
Python coding pass@1
MMLU
,
Broad academic knowledge
GPQA
,
Graduate-level reasoning
SWE-bench
,
Real software-engineering tasks
Benchmark scores not yet available. We only publish numbers we can source from official model cards or independent leaderboards, see methodology.
Capabilities
Strengths
- Free on X Premium
- Real-time data
Tracked weaknesses
- Older generation
- Quality below current frontier
Pricing
Per-million-token rates as published by xAI.
Per-token pricing not yet published for Grok 2. Check the official provider site for current tiers.
Call Grok 2 from your code
Drop-in snippet for the xAI SDK. Set your API key in the environment and run.
typescript
import OpenAI from "openai";
const client = new OpenAI({
// Use OPENAI_API_KEY for OpenAI, or your provider's key + baseURL.
apiKey: process.env.OPENAI_API_KEY,
});
const completion = await client.chat.completions.create({
model: "grok-2",
messages: [
{ role: "user", content: "What's the time complexity of quicksort?" },
],
});
console.log(completion.choices[0].message.content);Compare Grok 2 with…
Frequently asked
How much does Grok 2 cost?
xAI has not published per-token API pricing for Grok 2 at the time of writing. Check the official site for current pricing tiers, or compare against alternative models on LLMDex.What is Grok 2's context window?
Grok 2 supports a context window of 128K tokens.Is Grok 2 open source?
No. Grok 2 is a closed-weight model, you can use it via xAI's API but the model weights are not publicly downloadable.When was Grok 2 released?
Grok 2 was released on Aug 13, 2024 by xAI.
Friday digest
Intelligence, distilled weekly.
One short email every Friday, new model launches, leaderboard moves, and pricing drops. Curated by hand. Free, no spam.