HunterAlphaHub
OpenRouter model reference Facts from the public catalogue, dated and labelled
Jev Laya Verified
2026-10-10

Model · SpaceXAI

Grok 4.7

Grok 4.7 is served by SpaceXAI through OpenRouter. It provides 500K tokens of context and supports text, vision, files inputs.

Snapshot 2026-10-10 x-ai/grok-4.7
Context window
500K tokens
Input / 1M tokens
$2.00
Output / 1M tokens
$6.00

Key facts

Provider SpaceXAI
OpenRouter ID x-ai/grok-4.7
Modalities Text, Vision, Files
Best for Coding, Agents
Source openrouter.ai/api/v1/models Verified 2026-10-10 Drift-checked daily 06:00 CST

Best-fit workloads

Best for coding

Good code quality, debugging and technical explanation.

Best for agents

Tool use, structured output and multi-step reasoning.

Cost estimates

These examples use the 2026-10-10 input and output prices. Cache discounts, provider surcharges and tool fees are excluded.

Workload Input Output Estimated cost
Quick test 20,000 5,000 $0.070
Product chat month 500,000 125,000 $1.75
Document batch 5,000,000 1,000,000 $16.00

Strengths

  • ✓ $2 / $6 per million, undercutting the Claude and OpenAI rows at the same input price
  • ✓ A 450K output ceiling — the largest output allowance in this hub outside the DeepSeek Flash row
  • ✓ The current Grok flagship, positioned for long-running engineering work and self-verification

Limitations

  • ! Text output only
  • ! 500K context is half of what the 1M-token rows offer
  • ! The catalogue carries a cheaper sibling with a larger window: Grok 4.20 lists 2M context at $1.25 / $2.50, so "newest" and "best value" are not the same row here

OpenRouter API quickstart

Run these examples from your server or edge function. Keep the OpenRouter API key private and do not expose it in browser code.

cURL

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.7",
    "messages": [{ "role": "user", "content": "Summarize this document in five bullet points." }],
    "max_tokens": 500
  }'

JavaScript / TypeScript

const response = await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROUTER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "x-ai/grok-4.7",
    messages: [{ role: "user", content: "Summarize this document in five bullet points." }],
    max_tokens: 500,
  }),
});

const data = await response.json();
console.log(data.choices[0].message.content);

How to evaluate Grok 4.7

  1. Run five real tasks from your product, not generic demo prompts.
  2. Record token usage, latency and output quality.
  3. Estimate cost using your real input/output mix.
  4. Compare it against one model with a similar price and one stronger model.

Compare models View on OpenRouter ↗

Grok 4.7 FAQ

What is Grok 4.7?

Grok 4.7 is a SpaceXAI model available through OpenRouter. It supports text, vision, files inputs and is suited for coding, agents workloads.

How much does Grok 4.7 cost on OpenRouter?

The 2026-10-10 snapshot lists $2.00 per 1M input tokens and $6.00 per 1M output tokens. Verify current pricing on OpenRouter before production.

How large is Grok 4.7's context window?

Grok 4.7 offers 500K tokens of context in the current snapshot. Provider-specific limits and surcharges may apply.

Head-to-head comparisons

Grok 4.7 vs Claude Opus 5.5

The interesting number is not the price, it is the two ceilings: 450K output at $6 per million is a shape of capability that Opus at $20 does not sell. If your work is long-running engineering loops where the model must produce and check a lot of text, Grok's economics are different in kind; if the job is a large codebase in one window, Opus buys the window.

Pricing and context data are based on a 2026-10-10 snapshot. Provider limits can change; always verify on OpenRouter before production.

Send us a link

A project built with Jev, a post, a video, a correction, a tip. We open the link, check it says what you said it says, and write the entry ourselves.

Required a link, and an email to reply to. Optional everything else.

Add context — all optional

One or two sentences about what it does, in your words. We write the entry ourselves.

Cost, latency, a benchmark — anything you measured. We attribute these to you.

We store what you type and email it to ourselves. No IP address, no user agent, no referrer — the same rule as the mailing list.

What happens to what you send →