# Grok 4.7 API pricing

XAI GROK / TEXT

> Grok 4.7 via one OpenAI-compatible key: $0.09 in / $0.26 out per 1M tokens. Model ID grok-4.7, base URL https://api.outrun.to/v1.

From $0.09 in / $0.26 out per 1M tokens

Grok 4.7 costs $0.09 per 1M input tokens and $0.26 per 1M output tokens (cached input $0.03). Other context tiers are listed in the price table. Call it with model ID `grok-4.7` at `https://api.outrun.to/v1` using one prepaid Outrun key. Prices as of October 30, 2026.

`grok-4.7`OpenAI compatibleVision

USD / 1M TOKENS

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

[Get a key ↗](https://outrun.to/overview)

up to 200k tokens

| Token type | List price | Outrun | Below list |
| --- | --- | --- | --- |
| Input | $2.00 | **$0.09** | 95% |
| Cached input |  | **$0.03** |  |
| Output | $6.00 | **$0.26** | 95% |

over 200k tokens

| Token type | Outrun |
| --- | --- |
| Input | **$0.17** |
| Cached input | **$0.05** |
| Output | **$0.51** |

Billed prices, rounded up to the cent. Prices as of October 30, 2026.

[xAI list price source ↗](https://docs.x.ai/developers/models)

Context window

500,000 tokens

Input

Text + images

## What is Grok 4.7?

Grok 4.7 is a text model in the Outrun catalog. Its developer describes it for coding, tool-based workflows and knowledge work. The standard rate is $0.09 in / $0.26 out per 1M tokens.

## What are the Grok 4.7 model details?

| Model detail | Value |
| --- | --- |
| Developer | xAI |
| Kind | Text |
| Developer context | 500,000 tokens |
| Developer input | Text, Images |
| Released | 2026-09-21 |

## How do I call Grok 4.7?

Use your Outrun key and the exact model ID. Requests use prepaid USD credit.

cURL

```
curl https://api.outrun.to/v1/chat/completions \
  -H "Authorization: Bearer $OUTRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ],
  "max_tokens": 8192
}'
```

Python · OpenAI SDK

```
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.outrun.to/v1",
    api_key=os.environ["OUTRUN_API_KEY"],
)
reply = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Hello!"}],
    max_tokens=8192,
)
print(reply.choices[0].message.content)
```

## Which tools work with Grok 4.7?

Any client that accepts an OpenAI-compatible base URL and a model ID can use `grok-4.7`. Setup guides: [Cline (OpenAI Compatible)](https://outrun.to/docs/setup/cline), [OpenCode](https://outrun.to/docs/setup/opencode), [SillyTavern](https://outrun.to/docs/setup/sillytavern), [LiteLLM](https://outrun.to/docs/setup/litellm).

Use these setup values for this model ID. Recommended output settings can be lower than the route maximum.

| Set this value | Value |
| --- | --- |
| API format | `OpenAI compatible` |
| Base URL | `https://api.outrun.to/v1` |
| Model ID | `grok-4.7` |
| Context window | `500,000` |
| Max output setting | `8,192` |
| Temperature | `1` |
| Streaming | `Yes` |
| Image support | `Yes` |
| R1 format | `No` |
| Include max tokens | `Yes` |
| Reasoning override | `No` |
| Prompt caching setting | `No` |

| Capability | Supported |
| --- | --- |
| Tool calling | Yes |
| Streaming | Yes |
| Reasoning | Yes |
| Structured output | Yes |
| Image input | Yes |
| Roo Code ready | Yes |

## How does Grok 4.7 compare on cost?

| Model | Input / output | 1,000 chat turns |
| --- | --- | --- |
| [Grok 4.7](https://outrun.to/model/grok-4.7) This model | $0.09 / $0.26 | $0.16 |

Assumes 1,000 input + 300 output tokens per turn, repeated 1,000 times, at standard-tier rates without caching. Input / output shown per 1M tokens, rounded up to the cent.

## Which similar models can I try?

[Anthropic Claude Claude Haiku 5.5 $0.09 in / $0.42 out View model ↗](https://outrun.to/model/claude-haiku-5-5)[MiniMax MiniMax M3.1 Flash $0.09 in / $0.36 out View model ↗](https://outrun.to/model/minimax-m3.1-flash)[Alibaba Qwen Qwen 3.8 Flash $0.10 in / $0.33 out View model ↗](https://outrun.to/model/qwen3.8-flash)

## Common questions about Grok 4.7

### How much does the Grok 4.7 API cost?

Grok 4.7 costs $0.09 per 1M input tokens and $0.26 per 1M output tokens (cached input $0.03). Other context tiers are listed in the price table. Prices as of October 30, 2026.

### What model ID and base URL do I use for Grok 4.7?

Use the model ID `grok-4.7` with the base URL `https://api.outrun.to/v1` and your Outrun API key.

### Does Grok 4.7 accept images?

Yes. Grok 4.7 accepts text and image input.

### Does Outrun store my prompts when I use Grok 4.7?

Outrun does not store your prompts, images or outputs unless you choose to save them.

## Where can I find more models?

[xAI Grok guide ↗](https://outrun.to/grok-api)[All model prices ↗](https://outrun.to/discounted-ai-api)[Model docs ↗](https://outrun.to/docs/models)[All model pages ↗](https://outrun.to/model/)

---
Source: https://outrun.to/model/grok-4.7
Outrun: https://outrun.to/ | API base: https://api.outrun.to/v1 | Prices (JSON): https://api.outrun.to/pricing | Docs: https://outrun.to/docs/
