LLMx-ai

SpaceXAI: Grok 4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

Anyone in the Project can @-mention SpaceXAI: Grok 4.20 with the team's shared context - pooled credits, one chat, one memory.

All models

Starter is free forever - 1 Project, 100 credits/month, 1 MCP. No card.

Verdict

Grok 4.20 offers an exceptionally large 2M token context window at competitive pricing, making it a strong choice for processing entire codebases, long documents, or multi-file analysis in a single pass. The lack of public benchmarks means you're trading proven performance data for early access to xAI's latest architecture. Reach for this when context length is your primary constraint and you're comfortable evaluating quality through your own testing.

Best for

  • Processing entire codebases in one context
  • Multi-document analysis without chunking
  • Long-form content generation with extensive reference material
  • Cost-sensitive tasks requiring massive context
  • Vision tasks combined with lengthy text

Strengths

The 2M token context window is among the largest available, enabling workflows that would require complex RAG pipelines or chunking strategies with other models. At $1.25/$2.50 per Mtok, it undercuts competitors like Claude 3.5 Sonnet ($3/$15) and GPT-4o ($2.50/$10) while offering comparable or larger context. Multi-modal support across text, image, and file inputs provides flexibility for mixed-media analysis tasks.

Trade-offs

Without public benchmark scores on MMLU, HumanEval, or reasoning tasks, you lack the usual performance anchors for comparing this model to Claude, GPT-4o, or Gemini. Early xAI models showed strength in conversational tasks but lagged on structured reasoning and code generation. The proprietary license limits deployment flexibility compared to open-weight alternatives. You'll need to run your own evals to confirm it meets quality bars for your specific use cases.

Specifications

Provider
x-ai
Category
llm
Context length
2,000,000 tokens
Max output
1,800,000 tokens
Modalities
text, image, file
License
proprietary
Released
2026-03-31

Pricing

Input
$1.25/Mtok
Output
$2.50/Mtok
Model ID
x-ai/grok-4.20

Per-token prices show what the model costs upstream. On Switchy your team draws from one shared org credit pool - one plan, one balance for everyone.

Team cost calculator

Estimated monthly spend
$28.60
17.6M tokens / month
5 seats · 80 msgs/day

Switchy meters this against your org's shared credit pool - one plan, one balance for everyone.

Providers

ProviderContextInputOutputP50 latencyThroughput30d uptime
x-ai2000k$1.25/Mtok$2.50/Mtok———

Performance

Performance snapshots are collected daily. Check back after the next ingestion run.

Benchmarks

Public benchmark scores are not available yet for this model. Check back after the next ingestion run.

Works well with

Top MCPs

Compatibility data comes from first-party telemetry; once we have enough co-usage signal, top MCPs for this model will appear here.

How Switchy teams use it

Not enough Projects have used this model yet to share anonymised team stats. We wait for at least 50 distinct Projects per week before publishing any aggregate.

Starter prompts

Analyze Full Codebase

I'm attaching our complete application codebase as files. Analyze the overall architecture, identify tight coupling between modules, and suggest three specific refactoring opportunities that would improve maintainability. Focus on patterns you see repeated across multiple files.

Multi-Document Synthesis

I'm providing five research papers on transformer architecture optimizations. Create a synthesis document that identifies common themes, contradictory findings, and gaps in the current research. Cite specific papers when referencing claims.

Long-Form Content Draft

Using the attached product specifications, API documentation, and user research notes, draft a 3000-word technical guide for developers integrating our platform. Maintain consistent terminology and ensure all code examples align with the latest API version.

Screenshot to Implementation

I'm attaching screenshots of our desired dashboard UI. Generate React component code with Tailwind CSS that matches this design. Include responsive breakpoints and accessibility attributes. Explain any design decisions where the screenshot is ambiguous.

Contract Analysis

Analyze this 200-page commercial agreement. Extract all payment terms, termination clauses, liability caps, and renewal conditions into a structured summary. Flag any unusual or potentially problematic provisions that deviate from standard SaaS contract terms.

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

Review this Python function for potential race conditions. We're seeing intermittent failures in production under high load, but unit tests pass consistently.

Output

The function modifies a shared cache dictionary without locking. Under concurrent access, two threads could simultaneously check `if key not in cache`, both see it's missing, and both write — creating duplicate work and potentially corrupted state if the value computation isn't idempotent. The `cache[key] = expensive_compute()` line is the critical section. Wrap it in a threading.Lock or switch to a thread-safe structure like `functools.lru_cache` if the function signature allows. The unit tests pass because they're single-threaded — you'd need to spawn concurrent requests to surface this.

Notes

This example highlights Grok's ability to connect symptoms (intermittent production failures, passing tests) to root causes in concurrent code. The 2M token context window means you could paste entire codebases for this kind of analysis, though response quality at that scale depends on how well the model maintains focus across such long inputs.

Prompt

Explain how transformers use attention mechanisms to a product manager who understands APIs but not ML architecture. Keep it under 100 words.

Output

Attention lets the model decide which parts of the input matter most for each output token. Think of it like a search query: when generating the next word, the model 'queries' all previous words and assigns each a relevance score. High-scoring words influence the output more. This happens in parallel across the entire sequence, which is why transformers are fast to train. The 'self' in self-attention means the model is querying its own input, learning patterns like 'pronouns usually refer to the nearest noun' without explicit programming.

Notes

Demonstrates Grok's ability to compress technical concepts for non-specialist audiences while staying accurate. The model adapts tone and analogy choice to the stated audience. At $2.50/Mtok output, this kind of explanation task is cost-effective, though you'd want to verify technical accuracy on domain-specific simplifications.

Prompt

I have a 50-page contract PDF and a 30-page compliance checklist. Flag any clauses in the contract that conflict with checklist requirements, then draft amendment language for the top 3 issues.

Output

After reviewing both documents: **Conflict 1** — Contract §4.2 allows 90-day data retention; checklist mandates 30-day maximum (GDPR basis). **Amendment:** Replace '90 days' with '30 days' and add 'unless explicit user consent obtained per Art. 7 GDPR.' **Conflict 2** — §8.1 permits unilateral fee changes with 15-day notice; checklist requires 60 days for B2B contracts. **Amendment:** Change notice period to '60 days' and add materiality threshold: 'changes exceeding 10% require consent to continue service.' **Conflict 3** — §12.4 designates Delaware courts; checklist requires EU data subject access to local jurisdiction. **Amendment:** Add carve-out: 'For data protection disputes involving EU residents, parties consent to jurisdiction in the data subject's member state.' Remaining 4 minor conflicts involve defined terms alignment — low priority.

Notes

Showcases the 2M token context window's practical value: ingesting two long documents simultaneously and performing cross-referencing work that would take a human hours. The model structures findings clearly and prioritizes by severity. Trade-off: at this input scale (likely 80k+ tokens), you're paying $1.25/Mtok, so a single query costs ~$0.10 in input alone — economical for high-value contract work, but you'd want to batch similar tasks.

Use-case deep-dives

Quarterly board report synthesis

Why extreme context beats RAG for one-shot executive summaries

A 5-person finance team compiles quarterly board decks by synthesizing 90 days of Slack threads, meeting notes, and metric dashboards into a 10-page narrative. Grok 4.20's 2M token window holds roughly 600K words—enough to ingest the full quarter's unstructured data in one prompt without chunking or vector search. At $1.25/Mtok input, loading 1.5M tokens costs $1.88; generating a 15K-token summary at $2.50/Mtok output adds $0.04. Total per-quarter cost: under $2. The alternative—building a RAG pipeline with embeddings and retrieval—costs 40+ engineering hours upfront and introduces relevance drift. The threshold: if you run this synthesis more than once per week, the per-run cost stays negligible but you'll want faster inference (Grok's speed isn't benchmarked). For quarterly or monthly cadences where context completeness matters more than latency, this model eliminates the RAG tax entirely.

Frequently asked

Is Grok 4.20 good for long document analysis?

Yes. The 2M token context window handles entire codebases, legal contracts, or research paper collections in a single prompt. That's roughly 1.5 million words—enough for 15 novels or a year of Slack history. You won't hit truncation limits on typical business documents.

Is Grok 4.20 cheaper than GPT-4o or Claude Sonnet?

No. At $1.25 input / $2.50 output per Mtok, Grok costs roughly 2-3x more than GPT-4o ($2.50 / $10 per Mtok) and Claude Sonnet 3.5 ($3 / $15 per Mtok) for equivalent workloads. The price premium buys you the massive context window and multimodal support, not raw performance per dollar.

Can Grok 4.20 process images and PDFs directly?

Yes. It accepts text, images, and file uploads natively. You can drop in screenshots, diagrams, or scanned documents without preprocessing. Useful for invoice extraction, chart analysis, or debugging UI mockups—though we lack public benchmarks showing how its vision accuracy compares to GPT-4V or Claude 3.5.

How does Grok 4.20 compare to Grok 3?

We don't have public benchmarks for either version, so performance differences are unverified. The 4.20 release maintains the 2M context window and multimodal support. Without MMLU, HumanEval, or GPQA scores, you're relying on anecdotal reports rather than measurable improvements over Grok 3.

Should I use Grok 4.20 for real-time chat applications?

Probably not as your first choice. The high output pricing ($2.50/Mtok) makes conversational use expensive at scale. If you need the 2M context for session history or multimodal inputs, it works—but for standard chat, GPT-4o or Claude Sonnet deliver similar quality at half the cost with faster response times.

Compare with

More language models

See all language models →

Data last verified 14 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.