---
title: Grok 4.7 | Runware Docs
url: https://runware.ai/docs/models/xai-grok-4-7
description: Frontier reasoning model for coding, agentic tasks, and knowledge work
---
# Grok 4.7

![Grok 4.7](https://assets.runware.ai/covers/xai-grok-4-7.jpg)

Grok 4.7 is xAI's frontier model for coding, agentic tasks, and knowledge work, built to work longer on difficult tasks and check its own work more carefully. It reads text and images, calls tools, and offers reasoning effort from low to xhigh, with a 500,000-token context window and no fixed output limit. It suits software engineering, multi-step agents, and document-heavy analysis.

- **Status**: compatible-only
- **ID**: `xai-grok-4-7`
- **Context window**: 500K context
- **Creator**: xAI
- **Release Date**: September 21, 2026
- **Capabilities**: Text to Text, Image to Text, Checkpoint

**Grok 4.7** is served through Runware's **compatible endpoints**, which take another provider's request format. Point the SDK you already use at Runware by changing the base URL and the API key, and set `model` to `xai:grok@4.7`.

Requests and responses keep the provider's format, so **its reference documents every parameter**.

| Endpoint | Format |
| --- | --- |
| `/v1/chat/completions` | [OpenAI Chat Completions](https://runware.ai/docs/tools/compatible-apis#openai-chat-completions) |

### [Chat Completions](https://runware.ai/docs/models/xai-grok-4-7#chat-completions)

**cURL**:

```bash
curl -X POST https://api.runware.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai:grok@4.7",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
```

**Python**:

```python
from openai import OpenAI

client = OpenAI(
    api_key="your_runware_api_key",
    base_url="https://api.runware.ai/v1",
)

response = client.chat.completions.create(
    model="xai:grok@4.7",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)

print(response.choices[0].message.content)
```

**TypeScript**:

```typescript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'your_runware_api_key',
  baseURL: 'https://api.runware.ai/v1',
});

const response = await client.chat.completions.create({
  model: 'xai:grok@4.7',
  messages: [{ role: 'user', content: 'What is the capital of France?' }],
});

console.log(response.choices[0].message.content);
```

[Compatible APIs](https://runware.ai/docs/tools/compatible-apis#openai-chat-completions) covers streaming, tool calling and how the endpoint differs from OpenAI, and the [OpenAI API reference](https://platform.openai.com/docs/api-reference/chat/create) lists every parameter.

## Cost and speed

**Rates** (per 1M tokens)

*< 200K context*

- Input: `$2.00`
- Output: `$6.00`
- Cached input: `$0.50`

*≥ 200K context*

- Input: `$4.00`
- Output: `$12.00`
- Cached input: `$1.00`

billed per token, so a request costs what the model produced · [How pricing works](https://runware.ai/docs/models-api/pricing)