LLM ReferenceLLM Reference

Grok-2

grok-2

Researched 29d ago

Last refreshed 2026-05-11. Next refresh: weekly.

CodingRAGLong contextClassificationJSON / Tool use

Grok-2 is worth evaluating for coding, rag, and long context when its provider route and context window match the workload.

Decision context: Coding task fit, 1 tracked provider route, and research from 2026-04-19.

Use it for

  • Teams evaluating coding, rag, and long context
  • Workloads that can use a 128K context window
  • Buyers comparing 1 tracked provider route

Do not use it for

  • Vision or document-understanding workloads

Cheapest output

$0.500

SiliconFlow per 1M tokens

Provider routes

1

Tracked API hosts

Quality / dollar

Grade B

Ranked by benchmark score divided by cheapest output price

Freshness

2026-04-19

Researched 29d ago

fresh

Top use-case fit

Coding

Q/$ B

1 relevant benchmark in the decision map.

RAG

Included by capability and metadata signals in the decision map.

Long context

Included by capability and metadata signals in the decision map.

Provider price ladder

ProviderInput / 1MOutput / 1MRoute
SiliconFlow$0.500$0.500
Serverless

Benchmark peer barsfor Coding

Migration checks

No linked migration route is available for this model yet.

About

Enhanced contextual memory with limited image input; political filter added.

Grok-2 has a 128K-token context window.

Grok-2 input tokens at $0.5/1M, output at $0.5/1M.

Capabilities

ReasoningStructured Outputs

Benchmark Scores(3)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionSource
HumanEval88.4pass@1Open LLM Leaderboard, xAI official
Massive Multitask Language Understanding87.55-shotOpen LLM Leaderboard, xAI official
Chatbot Arena1255.0https://lmarena.ai

Rankings

Specifications

FamilyGrok 2
Released2024-08-01
Context128K
ArchitectureDecoder Only
Specializationgeneral
Trainingfinetuned

Created by

Ethical AI for universal truth-seeking

San Francisco, California, United States
Founded 2023
Website

Providers(1)