SpaceXAI: Grok 4.7
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...
Anyone in the Project can @-mention SpaceXAI: Grok 4.7 with the team's shared context - pooled credits, one chat, one memory.
Starter is free forever - 1 Project, 100 credits/month, 1 MCP. No card.
Verdict
Best for
- Long-document analysis under budget
- Multi-file reasoning across codebases
- Cost-sensitive vision tasks
- Exploratory research with large corpora
- Teams comfortable testing newer models
Strengths
The 500K context window puts Grok 4.7 in the same league as Claude 3.5 Sonnet and Gemini 1.5 Pro for handling entire codebases or lengthy PDFs in a single pass. Pricing undercuts many competitors at the input tier, and multimodal support covers text, images, and file uploads. For workflows that bottleneck on context length — legal document review, academic literature synthesis, or full-repo code analysis — this model removes the need to chunk or summarize upfront.
Trade-offs
No public benchmarks means you're flying blind on reasoning quality, instruction-following accuracy, and how it stacks up against Claude Sonnet 4.5 or GPT-4o on standard evals. Output pricing at $6/Mtok is higher than some peers, so verbose responses or multi-turn conversations can add up. Early-stage models from newer labs sometimes lag on nuanced tasks like creative writing or complex multi-step reasoning until the training corpus and RLHF cycles mature. Test thoroughly before committing production workloads.
Specifications
- Provider
- x-ai
- Category
- llm
- Context length
- 500,000 tokens
- Max output
- 450,000 tokens
- Modalities
- text, image, file
- License
- proprietary
- Released
- 2026-09-21
Pricing
- Input
- $2.00/Mtok
- Output
- $6.00/Mtok
- Model ID
x-ai/grok-4.7
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
5 seats · 80 msgs/day
Switchy meters this against your org's shared credit pool - one plan, one balance for everyone.
Providers
| Provider | Context | Input | Output | P50 latency | Throughput | 30d uptime |
|---|---|---|---|---|---|---|
| x-ai | 500k | $2.00/Mtok | $6.00/Mtok | — | — | — |
Performance
Benchmarks
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
Starter prompts
Summarize Legal Contracts
Review the attached contracts and produce a structured summary: parties, key obligations, termination clauses, and any unusual terms. Highlight conflicts or ambiguities between documents.
Analyze Full Codebase
You have access to the complete codebase. Identify circular dependencies, unused imports, and functions that could be consolidated. Rank findings by impact on maintainability.
Compare Research Papers
I've uploaded five papers on the same topic. Compare their methodologies, results, and conclusions. Where do they agree? Where do findings conflict? Suggest gaps for future research.
Extract Data from Screenshots
Extract all line items, totals, and vendor details from these invoice screenshots. Return results as a JSON array with fields: vendor, date, amount, line_items.
Draft Multi-Section Reports
Using the uploaded research files, write a 10-section report on market trends. Each section should cite specific data points and maintain consistent terminology throughout.
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
Review this Python function for potential race conditions. It's part of a multi-threaded cache system that's occasionally returning stale data under load.
The function shows a classic check-then-act race condition in the cache lookup. Between checking if the key exists and reading its value, another thread could invalidate that entry. You need atomic operations here — either wrap the entire read path in a lock, or switch to a thread-safe data structure like `threading.RLock()` with proper context management. The 500ms TTL check is also vulnerable: two threads could simultaneously decide to refresh, causing duplicate API calls. Consider using a refresh lock per key, or move to a library like `cachetools` with built-in thread safety.
This example highlights Grok's ability to identify concurrency issues in real-world code patterns. The 500K token context window means you can paste entire modules for review. However, without published benchmarks, it's unclear how Grok's code analysis compares to models with verified HumanEval or MBPP scores.
Analyze this quarterly sales dataset (CSV attached, 47K rows) and explain why our conversion rate dropped 18% in March despite traffic increasing. Focus on segment-level patterns.
March's conversion drop concentrates in the 'Returning Visitor' segment, which saw a 31% decline while new visitors actually converted 4% better. Cross-referencing with your product changelog: you deployed a new checkout flow on March 3rd that removed the guest-checkout option. Returning users expect frictionless re-purchase; forcing account login broke that expectation. The traffic increase came from a paid campaign targeting cold audiences, explaining why new-visitor conversion held steady. Recommendation: restore guest checkout with optional account creation post-purchase.
Demonstrates Grok's multimodal file analysis and ability to correlate data patterns with external context. The 500K token window handles large datasets inline. The $6/Mtok output pricing becomes significant for long analytical reports — a 2K token analysis of this 47K row file costs roughly $0.012 in output alone.
I'm writing a technical blog post about WebAssembly's memory model. Explain linear memory, the heap, and the stack in a way that's accurate but accessible to senior web developers who've never touched WASM.
Think of WebAssembly's linear memory as a giant `ArrayBuffer` that your WASM module owns exclusively — it's just a flat byte array, no JavaScript objects allowed. The 'heap' and 'stack' aren't separate memory regions like in native code; they're conventions your WASM compiler imposes *within* that linear memory. The stack typically grows downward from a high address, tracking function calls and local variables. The heap grows upward from address zero, managed by your module's allocator (often a compiled version of malloc). When JavaScript passes data in, you're copying bytes into this linear memory at specific offsets. The key insight: WASM's memory is sandboxed and deterministic — no garbage collector, no hidden allocations, just explicit byte manipulation.
Shows Grok's ability to translate low-level technical concepts into analogies that match the reader's existing mental models (ArrayBuffer for web developers). The explanation balances precision with accessibility. Without benchmark data on instruction-following or technical writing tasks, it's difficult to assess consistency across similar explanatory prompts.
Use-case deep-dives
When Grok 4.7's 500k context window handles entire deal rooms
A 4-person legal ops team at a Series B startup needs to compare redlines across 12 vendor contracts, each 40-80 pages, without losing thread between documents. Grok 4.7's 500k token context window fits the entire deal room in a single prompt—no chunking, no retrieval lag, no context-loss between files. At $2/Mtok input, loading 400k tokens costs $0.80 per analysis run; the team runs 15 comparisons per week at $12 total. The trade-off: output at $6/Mtok means verbose summaries get expensive fast, so you'll want to prompt for structured tables or bullet lists under 5k tokens. If your contracts average under 100 pages combined, Claude 3.5 Sonnet's 200k window costs less. Above that threshold, Grok 4.7 is the only model that keeps the full context loaded without engineering workarounds.
Why Grok 4.7 handles cross-functional reporting without retrieval
A 9-person executive team at a growth-stage SaaS company compiles board decks from 30+ sources: Notion docs, Sheets exports, Slack threads, customer call transcripts. The CFO needs a single AI pass to pull KPIs, risks, and narrative themes without building a RAG pipeline. Grok 4.7's 500k context window ingests the full quarter's artifacts—roughly 350k tokens—in one shot, then generates the 15-slide narrative at $6/Mtok output (about $9 per deck if the summary runs 1.5k tokens). No benchmark data exists yet, so you're betting on x.ai's training without third-party validation. The boundary: if you're generating decks weekly instead of quarterly, the $6 output rate adds up; switch to a cheaper model with retrieval. For infrequent, high-stakes synthesis where context integrity matters more than cost, Grok 4.7 is the call.
When Grok 4.7's image+text modality routes visual bug reports
A 12-person support team at a mobile app company receives 200 tickets daily, 40% with screenshots showing UI bugs, error states, or localization issues in 8 languages. Grok 4.7's combined image and text input lets the model read the screenshot, parse the user's description, and route to the right engineering pod without a human first-pass. At $2/Mtok input, processing 200 tickets with 1k tokens each costs $0.40/day; output tagging at $6/Mtok adds another $0.60 if each ticket generates 500 tokens of routing metadata. Total: $1/day or $20/month. The risk: no public benchmarks mean you can't validate accuracy against GPT-4V or Claude 3.5 Sonnet before committing. If your ticket volume is under 50/day, the savings don't justify the uncertainty. Above 100/day, Grok 4.7's multimodal context window is worth a two-week pilot.
Frequently asked
Is Grok 4.7 good for general reasoning and coding tasks?
Grok 4.7 handles general reasoning and coding competently, though without public benchmarks it's hard to position against GPT-4o or Claude 3.5 Sonnet. The 500k context window is useful for large codebases. If you need proven performance on specific tasks, wait for benchmark data or test it yourself before committing to production workloads.
Is Grok 4.7 cheaper than GPT-4o or Claude Sonnet?
At $2 input / $6 output per Mtok, Grok 4.7 sits between GPT-4o Mini ($0.15/$0.60) and GPT-4o ($2.50/$10.00). It's pricier than Claude 3.5 Sonnet ($3 input / $15 output) on input but cheaper on output. For output-heavy tasks like content generation, Grok 4.7 offers better economics than most frontier models.
Can Grok 4.7 handle 500k tokens in practice?
The 500k context window is real, but expect performance degradation past 300-350k tokens — this is common across all long-context models. For retrieval or summarisation over massive documents, it works. For reasoning across the full window, test your specific use case. Latency and cost scale linearly with input size.
How does Grok 4.7 compare to previous Grok versions?
Without version history or benchmarks, we can't quantify the improvement over earlier Grok releases. The 4.7 designation suggests incremental refinement rather than a ground-up rebuild. If you're already using Grok, test 4.7 on your workloads. If you're new, compare it directly against Claude or GPT-4o before switching.
Should I use Grok 4.7 for customer-facing chatbots?
Only if you've tested latency and quality on your specific prompts. The lack of public benchmarks means you're flying blind on accuracy, safety, and refusal rates compared to GPT-4o or Claude. The pricing is competitive for moderate output volumes, but validate response quality and speed before exposing it to end users.
Compare with
More language models
- SpaceXAI: Grok Build 0.1x-ai
- StepFun: Step 3.5 Flashstepfun
- StepFun: Step 3.7 Flashstepfun
- StepFun: Step 5 Previewstepfun
- Tencent: Hunyuan A13B Instructtencent
- Tencent: Hy3tencent
- Tencent: Hy3 previewtencent
- Tencent: Hy4 previewtencent
- Tencent: Hy-MT2-1.8Btencent
- Tencent: Hy-MT2-30B-A3Btencent
- Tencent: Hy-MT2-7Btencent
- TheDrummer: Cydonia 24B V4.1thedrummer