Grok 4.7 API
Grok 4.7 (xAI, released 2026-09-21) is positioned for coding, Agent, and knowledge work. 500K token context, text + image input; reasoning has four tiers: low/medium/high/xhigh (default high). Larger base model + RL training on long-horizon tasks, with enhanced self-checking and long-context management.
At a glance
| Model ID | grok-4.7 |
|---|---|
| Provider | xAI |
| Capabilities | Chat · Vision · Reasoning · 500K |
| API formats | OpenAI-compatible (/v1/chat/completions) |
| Base URL | https://beeroute.ai/v1 |
| Input | $2 per 1M tokens |
| Output | $6 per 1M tokens |
| Cache read | $0.5 per 1M tokens |
| Long context | Prices above apply up to <200K context; longer prompts are billed at a higher tier |
Prices as of 2026-11-30. Live prices: model marketplace.
Benchmark scores
Epoch Capabilities Index (ECI) 156.4 (90% CI 154.5–158.4), overall rank ≈13 of 19.
- Coding: 60.7/100, rank 9
- Agents & work: 77.4/100, rank 9
- Math & science: 57.1/100, rank 16
- Reasoning: 62.1/100, rank 15
- Factual accuracy: 59.6/100, rank ≈8
| Benchmark | Score | Effort | |
|---|---|---|---|
| FrontierSWE | 0.30 | xhigh | Source |
| CursorBench | 0.49 | xhigh | Source |
| MirrorCode | 0.54 | xhigh | Source |
| FrontierCode | 0.48 | unknown | Source |
| WeirdML v3 | 0.08 | xhigh | Source |
| SciCode | 0.58 | high | Source |
| WebDev Arena | 1,638 | xhigh | Source |
| APEX-Agents | 0.70 | unknown | Source |
| GDP.pdf | 0.49 | xhigh | Source |
| Vending-Bench 2 | 10,537 | unknown | Source |
| GPQA Diamond | 0.93 | xhigh | Source |
| FrontierMath T1–3 | 0.53 | xhigh | Source |
| FrontierMath T4 | 0.17 | xhigh | Source |
| OTIS Mock AIME | 0.98 | xhigh | Source |
| CritPt | 0.18 | high | Source |
| ProofBench | 0.26 | unknown | Source |
| ARC-AGI-2 | 0.61 | xhigh | Source |
| Chess Puzzles | 0.41 | xhigh | Source |
| Mystery Game Puzzles | 0.29 | xhigh | Source |
| DTBench | 0.96 | xhigh | Source |
| LMCA | 49 | xhigh | Source |
| SimpleQA Verified | 0.56 | xhigh | Source |
Data: Epoch AI (CC BY 4.0), 2026-11-30. Methodology
Quick start
from openai import OpenAI
client = OpenAI(api_key="YOUR_BEEROUTE_KEY", base_url="https://beeroute.ai/v1")
resp = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)
FAQ
How do I call the Grok 4.7 API?
Create an API key on BeeRoute, set the base URL to https://beeroute.ai/v1 (OpenAI SDKs), and use the model ID grok-4.7.
How much does the Grok 4.7 API cost?
Pay as you go in USD: Input $2 per 1M tokens; Output $6 per 1M tokens; Cache read $0.5 per 1M tokens; Long context Prices above apply up to <200K context; longer prompts are billed at a higher tier. No subscription; credits never expire.
Do I need a separate xAI account?
No. One BeeRoute API key gives you Grok 4.7 plus 53 other models on a single bill.
Related models
Claude Opus 5.5
The first flagship of the Claude 5.5 series released by Anthropic on September 22, 2026, positioned to deliver frontier-level intelligence at a lower cost. It features a 1 million token context window and 128K maximum output, supports text, image, and PDF inputs, and offers five tiers of thinking intensity: low/medium/high/ultra-high/maximum. Priced at $4/$20 with cache reads at $0.20, it costs 40% less than Opus 5 on typical tasks while delivering 30%+ faster output. It topped the Artificial Analysis composite index with a score of 58 and achieved 66.4% on Terminal-Bench 4.0, but still slightly trails GPT-6 Astra in business process and scientific research agent tests.
Claude Sonnet 5.5
Claude Sonnet 5.5 is a mid-tier model released by Anthropic on 2026-09-28. Priced at $2/$10 per million tokens, unchanged from the previous generation; 1M context, 128K output. Output speed is 30% faster, with per-task costs reduced by up to 30%. Terminal-Bench 4.0 scores jumped from 10.3% to 70.6%, overtaking Opus 5.5, with a focus on coding and document-related everyday tasks.
Claude Fable 5.2
Released November 9, 2026, Claude Fable 5.2 is Anthropic's most capable model for demanding technical work. It offers a 1M-token context window and 128K max output, with clear gains over Fable 5.1 in coding, reasoning, and vision. Adaptive thinking is always on, with effort adjustable from low to max (default high). Pricing is $8 per million input tokens and $40 per million output tokens — 20% below Fable 5.1.
GPT-6.2 Sol
Released Nov 17, 2026, GPT-6.2 Sol is the efficient everyday model for coding and agentic work at scale, with reliable tool use. $2/$10 per million tokens, unchanged from the prior generation, at about one-fifth the cost of Astra.
GPT-6.2 Astra
Released Nov 17, 2026, GPT-6.2 Astra is OpenAI's flagship for the hardest projects: professional documents, slides, spreadsheets, code, computer use and science, with leading 3D and mechanical design. $8/$40 per million tokens, under a third of its predecessor's cost per task.
Gemini 4 Neon
Gemini 4 Neon, released November 18, 2026, is Google's middle-tier Gemini 4 model, succeeding Argon while balancing frontier reasoning with execution efficiency. Adapted from Carbon, it offers a 1M-token context window, four thinking levels and multimodal input, scoring 61 on the Artificial Analysis Intelligence Index — third overall. Pricing is $3 per million input tokens and $15 per million output tokens, roughly 30% cheaper per task than Carbon.