# xAI: Grok 4.7

Grok 4.7 is xAI's model for coding and knowledge work, built on a new base larger than Grok 4.6's. Trained on long, hard tasks with more self-checking, it reads text and images and offers low to xhigh effort.

- **Model id:** `opencheap/grok-4.7`
- **Price per 1M tokens:** $1.26 input / $5.03 output
- **Cached input:** $0.31 per 1M tokens
- **Context:** 500K tokens, 450K max output

## Providers

9 providers. Prices are per 1M tokens. As of 2026-12-04 11:56 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| kie.ai · quantization unknown | $0.80 | $0.80* | $2.40 | 2.47 s | 163 tok/s | 61.5 % (success rate) | — | — |
| Qubax · quantization unknown | $1.26 | $0.31 | $5.03 | 1.62 s | 45 tok/s | 100 % (success rate) | 500K | 250K |
| Surplus · quantization unknown | $1.88 | $0.47 | $5.64 | 1.37 s | 207 tok/s | 100 % (success rate) | 500K | 250K |
| AiHubMix · quantization unknown | $2.00 | $0.50 | $6.00 | 3.26 s | — | 100 % (success rate) | 500K | — |
| NanoGPT · quantization unknown | $2.00 | $0.50 | $6.00 | 3.01 s | 55 tok/s | 100 % (success rate) | 500K | — |
| Sandbase · quantization unknown | $2.00 | $0.50 | $6.00 | 7.71 s | 52 tok/s | 100 % (success rate) | — | — |
| Amazon Bedrock · quantization unknown | $2.10 | $0.53 | $6.30 | 1.23 s | 130 tok/s | 98 % | 500K | 450K |
| xAI · Route 1 | $2.10 | $0.53 | $6.30 | 1.41 s | 81 tok/s | 99.7 % | 500K | 450K |
| xAI · Route 2 | $2.10 | $0.53 | $6.30 | 1.50 s | 91 tok/s | 99.7 % | 500K | 450K |
| xAI · Route 3 | $4.20 | $1.05 | $12.60 | — | — | 100 % | 500K | 450K |
| xAI · Route 4 | $4.20 | $1.05 | $12.60 | 1.47 s | 73 tok/s | 100 % | 500K | 450K |

\* No cache discount from this provider: cached tokens cost the input price.

1 more provider through partner hosts · from $2.09 in · $6.28 out

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **kie.ai:** `temperature`, `top_p`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **Qubax:** `temperature`, `logit_bias`, `presence_penalty`, `response_format`, `structured_outputs`, `tools`, `tool_choice` (stop not confirmed)
- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `response_format`, `structured_outputs`, `tools`, `tool_choice` (stop not confirmed)
- **AiHubMix:** `top_p`, `logit_bias`, `presence_penalty`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice` (temperature, stop not confirmed)
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Sandbase:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `response_format`, `structured_outputs`, `tools`, `tool_choice` (stop not confirmed)
- **Amazon Bedrock:** `temperature`, `top_p`, `top_k`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **xAI · Route 1:** `temperature`, `top_p`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **xAI · Route 2:** `temperature`, `top_p`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **xAI · Route 3:** `temperature`, `top_p`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **xAI · Route 4:** `temperature`, `top_p`, `seed`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/grok-4.7#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/grok-4.7`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/grok-4.7", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/grok-4.7",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/grok-4.7",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Grok 4.7

Grok 4.7 costs from $1.26 per 1M input tokens and $5.03 per 1M output tokens on OpenCheap, with cached input at $0.31 per 1M tokens. Its list price is $2.00 per 1M input tokens and $6.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 18 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $17.60. Prices as of 2026-12-04 11:48 UTC.

9 providers serve Grok 4.7 on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 500K tokens (500,000), room for roughly 380,000 words of English in one request.

Grok 4.7 is one of [40 xAI models](https://opencheap.si/models/lab/xai) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Grok 4.7 API cost per 1M tokens?

Grok 4.7 costs from $1.26 per 1M input tokens and $5.03 per 1M output tokens on OpenCheap, with cached input at $0.31 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one Grok 4.7 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $17.60. Every answer reports its own cost in usage.cost.

### Is Grok 4.7 cheaper on OpenCheap than its list price?

Its list price is $2.00 per 1M input tokens and $6.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 18 % less here.

### Which providers serve Grok 4.7?

9 providers serve Grok 4.7 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Grok 4.7?

Its context window is 500K tokens (500,000), room for roughly 380,000 words of English in one request.

### How do I call the Grok 4.7 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/grok-4.7. One OpenCheap key works for every model; the rest of your code stays the same.

## More from xAI

- [Grok 2 Vision 1212](https://opencheap.si/models/grok-2-vision-1212) (`grok-2-vision-1212`): $1.80 / $9.00 per 1M
- [grok-3](https://opencheap.si/models/grok-3) (`grok-3`): $3.15 / $15.74 per 1M · 131K context
- [grok-3-beta](https://opencheap.si/models/grok-3-beta) (`grok-3-beta`): $3.16 / $15.79 per 1M · 131K context
- [grok-3-fast-beta](https://opencheap.si/models/grok-3-fast-beta) (`grok-3-fast-beta`): $5.24 / $26.21 per 1M · 131K context
- [grok-3-fast-latest](https://opencheap.si/models/grok-3-fast-latest) (`grok-3-fast-latest`): $5.24 / $26.21 per 1M · 131K context
- [grok-3-latest](https://opencheap.si/models/grok-3-latest) (`grok-3-latest`): $3.15 / $15.75 per 1M · 131K context
- [grok-3-mini-fast-beta](https://opencheap.si/models/grok-3-mini-fast-beta) (`grok-3-mini-fast-beta`): $0.63 / $4.20 per 1M · 131K context
- [grok-3-mini-fast-latest](https://opencheap.si/models/grok-3-mini-fast-latest) (`grok-3-mini-fast-latest`): $0.63 / $4.19 per 1M · 131K context

[All 40 xAI models](https://opencheap.si/models/lab/xai)

## Similar models

- [Claude Sonnet 5](https://opencheap.si/models/claude-sonnet-5): Anthropic · 1M context · $1.10 / $5.50 per 1M · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-claude-sonnet-5)
- [GPT 5.2](https://opencheap.si/models/gpt-5.2): OpenAI · 400K context · $0.70 / $5.60 per 1M · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-gpt-5.2)
- [GPT 6 Astra](https://opencheap.si/models/gpt-6-astra): OpenAI · 1M context · $1.00 / $5.00 per 1M · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-gpt-6-astra)
- [Qwen3.8 Max](https://opencheap.si/models/qwen3.8-max): Qwen · 1M context · $1.80 / $5.41 per 1M · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-qwen3.8-max)
- [Qwen3.7 Max](https://opencheap.si/models/qwen3.7-max): Qwen · 1M context · $1.48 / $4.42 per 1M, 10 % cheaper · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-qwen3.7-max)
- [Fugu Max](https://opencheap.si/models/fugu-max): Sakana AI · 1M context · $1.88 / $5.64 per 1M · [Compare with Grok 4.7](https://opencheap.si/compare/grok-4.7-vs-fugu-max)

### Comparisons

- [Grok 4.7 vs Kimi K3](https://opencheap.si/compare/grok-4.7-vs-kimi-k3)
- [Grok 4.7 vs GPT 5.5](https://opencheap.si/compare/grok-4.7-vs-gpt-5.5)

[Compare Grok 4.7 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/grok-4.7 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
