---
last_updated: 2026-11-21
source_url: https://opper.ai/xai/grok-4-7
title: "Grok 4.7 by xAI"
description: "Grok 4.7, xAI's frontier model for coding, agentic tasks, and professional knowledge work, with a 500K-token context, image input, and adjustable reasoning effort."
---

# Grok 4.7

By [xAI](https://opper.ai/xai).

Released 21 Sep 2026, 3 days after [Grok STT](https://opper.ai/xai/stt) · [Announcement](https://x.ai/news/grok-4-7) · [All xAI releases](https://opper.ai/model-releases/xai)

Grok 4.7 is xAI's flagship model for coding and knowledge work, released on September 21, 2026. It uses a new, larger base model than Grok 4.6 and a longer reinforcement learning run on a harder task mix weighted toward problems that take many hours to complete. xAI says the result works longer on difficult tasks, checks its own work more carefully, and manages long context better.

The model takes text and image input, returns text, and has a 500K-token context window with no separate text output limit. Reasoning effort can be set to low, medium, high (default), or xhigh. On xAI's numbers it scores 46.3% on CursorBench 4.0 (GPT-5.6 Sol: 41.7%), 71.0% on DeepSWE v1.1 (Fable 5.1: 70.0%), 64.0% on the electrical-engineering benchmark EEBench, and 19.6% on Harvey's legal agent benchmark, while trailing GPT-6 Astra on HealthBench Professional (56.7% vs 62.1%).

It fits long-horizon coding agents, engineering and legal analysis, and other professional tasks where the model needs to plan, verify, and keep working across a large context.

## Available routes

Grok 4.7 runs on 6 different routes through the Opper gateway. Prices are per 1M tokens. Some routes also sell priority processing: the same model at another price, picked per request with service_tier. [How service tiers work](https://docs.opper.ai/build/gateway/service-tiers). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=grok-4.7.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [AWS Bedrock](https://opper.ai/provider/aws-bedrock) | `aws/grok-4.7` | Multi-region | Yes | No | $2.00 | $6.00 | $0.50 |
| [Azure](https://opper.ai/provider/azure) | `azure:global/grok-4.7` | Multi-region | Abuse monitoring | No | $2.00 | $6.00 | $0.50 |
| [xAI](https://opper.ai/provider/xai) | `xai-zdr/grok-4.7` | Multi-region | Yes | No | $2.00 | $6.00 | $0.50 |
| [xAI](https://opper.ai/provider/xai), Priority | `xai-zdr:priority/grok-4.7` | Multi-region | Yes | No | $4.00 | $12.00 | $1.00 |
| [xAI](https://opper.ai/provider/xai) | `xai-zdr:us/grok-4.7` | US (United States) | Yes | No | $2.20 | $6.60 | $0.55 |
| [xAI](https://opper.ai/provider/xai) | `xai/grok-4.7` | Multi-region | Abuse monitoring | No | $2.00 | $6.00 | $0.50 |
| [xAI](https://opper.ai/provider/xai), Priority | `xai:priority/grok-4.7` | Multi-region | Abuse monitoring | No | $4.00 | $12.00 | $1.00 |
| [xAI](https://opper.ai/provider/xai) | `xai:us/grok-4.7` | US (United States) | Abuse monitoring | No | $2.20 | $6.60 | $0.55 |

## Key info

- Model id: `grok-4.7` (routes across Azure, xAI)
- Input: Text, Image
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 500K
- Max output: n/a
- Input price: $2.00 per 1M tokens ($0.50 cache read)
- Output price: $6.00 per 1M tokens
- Released: 21 Sep 2026
- US residency available on xAI
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

Each route hosting Grok 4.7 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### AWS Bedrock — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: Always on, keeps nothing
- Caching: Content cached for replay
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-30.

### Azure — Multi-region

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, flagged content held.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, holds flagged content, a person can view samples
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### xAI — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, keeps nothing
- Caching: Content cached for replay
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-15.

### xAI — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, keeps nothing
- Caching: Content cached for replay
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-15.

### xAI — Multi-region

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 30 days for abuse monitoring only, and are not used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, 30-day window.
- Training: No training on customer data.
- Logging: Abuse monitoring (30-day retention)
- Abuse monitoring: On by default, keeps nothing
- Caching: Content cached for replay
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-15.

### xAI — United States

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 30 days for abuse monitoring only, and are not used for training. No training on customer data. US; SCCs.

- Zero data retention: With abuse monitoring, 30-day window.
- Training: No training on customer data.
- Logging: Abuse monitoring (30-day retention)
- Abuse monitoring: On by default, keeps nothing
- Caching: Content cached for replay
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-15.

## Best for

Where Grok 4.7 ranks among the models on Opper with a score for each use case (0 to 100).

- [Finance](https://opper.ai/models?use=finance): 51.7, #15 of 53 (Finance and accounting)
- [Legal](https://opper.ai/models?use=legal): 47.2, #16 of 53 (Legal tasks and reasoning)
- [Healthcare](https://opper.ai/models?use=healthcare): 46.6, #16 of 50 (Healthcare and medical)
- [Coding](https://opper.ai/models?use=coding): 27.5, #24 of 52 (FrontierCode 2.0 and Terminal-Bench 4.0)
- [Agents](https://opper.ai/models?use=agents): 45.7, #29 of 93 (Terminal-Bench 4.0 and AutomationBench)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/grok-4-7)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #23 of 520 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Strong
- Output speed: 65 tok/s
- Intelligence Index: 35.5

### Coding

- FrontierCode 2.0: 29%
- Terminal-Bench 4.0: 26%
- SciCode: 58%

### Agentic & knowledge work

- AutomationBench: 66%
- GDPval: 61%
- GDP.pdf: 23%
- Briefcase (Elo): 1634

### Science & reasoning

- Terminal-Bench Science: 11%
- CritPt (hard): 44%
- HLE Diamond: 24%
- Humanity's Last Exam: 43%
- Long-context reasoning: 80%

### Knowledge

- Omniscience: 31.2
- MMMU-Pro: 78%

### By domain

- Finance & accounting: 51.7
- Legal: 47.2
- Healthcare & medical: 46.6
- Engineering: 41.8
- Economics: 45.7
- Strategy & operations: 54.8

## Get started

Call Grok 4.7 through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

Grok 4.7 is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call Grok 4.7
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "grok-4.7",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "grok-4.7",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "grok-4.7",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use Grok 4.7 in your apps

Pick your tool to see how to run it on Grok 4.7 through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/grok-4-7)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/grok-4-7)
- [Codex](https://opper.ai/apps/codex/grok-4-7)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/grok-4-7)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/grok-4-7)
- [Aider](https://opper.ai/apps/aider/grok-4-7)
- [Goose](https://opper.ai/apps/goose/grok-4-7)
- [Droid](https://opper.ai/apps/droid/grok-4-7)
- [OpenCode](https://opper.ai/apps/opencode/grok-4-7)
- [Pi](https://opper.ai/apps/pi/grok-4-7)
- [OpenClaw](https://opper.ai/apps/openclaw/grok-4-7)
- [Hermes](https://opper.ai/apps/hermes/grok-4-7)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/grok-4-7)
- [OmniRoute](https://opper.ai/apps/omniroute/grok-4-7)
- [Cursor](https://opper.ai/apps/cursor/grok-4-7)
- [Cline](https://opper.ai/apps/cline/grok-4-7)
- [Continue](https://opper.ai/apps/continue/grok-4-7)
- [Kilo Code](https://opper.ai/apps/kilo-code/grok-4-7)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/grok-4-7)
- [Zed](https://opper.ai/apps/zed/grok-4-7)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/grok-4-7)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/grok-4-7)
- [n8n](https://opper.ai/apps/n8n/grok-4-7)
- [LibreChat](https://opper.ai/apps/librechat/grok-4-7)
- [Open WebUI](https://opper.ai/apps/open-webui/grok-4-7)
- [See all apps](https://opper.ai/apps)

## Other models from xAI

- [Grok 4.6](https://opper.ai/xai/grok-4-6)
- [Grok 4.5](https://opper.ai/xai/grok-4-5)
- [Grok 4.3](https://opper.ai/xai/grok-4-3)
- [Grok 4.20 Non-Reasoning](https://opper.ai/xai/grok-4-20-0309-non-reasoning)
- [Grok 4.20 Non-Reasoning](https://opper.ai/xai/grok-4-20-non-reasoning)
- [Grok Voice](https://opper.ai/xai/grok-voice-latest)
