# xAI: grok-4:fast

Grok 4 is xAI's reasoning model, trained with reinforcement learning to call tools such as a code interpreter and web and X search. It suits hard research questions and real-time lookups, and a heavier parallel-compute variant, Grok 4 Heavy, is also offered.

- **Model id:** `opencheap/grok-4:fast`
- **Price per 1M tokens:** $0.21 input / $0.52 output
- **Cached input:** $0.052 per 1M tokens
- **Context:** 2M tokens

## Providers

1 provider. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Context |
| --- | --- | --- | --- | --- |
| Unnamed provider · quantization unknown · Snapshot not stated | $0.21 | $0.052 | $0.52 | 2M |

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)

## 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:fast#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/grok-4:fast`; 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:fast", "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:fast",
    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:fast",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About grok-4:fast

grok-4:fast costs from $0.21 per 1M input tokens and $0.52 per 1M output tokens on OpenCheap, with cached input at $0.052 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0026, and 1,000 such requests about $2.62. Prices as of 2026-12-04 12:01 UTC.

One provider serves grok-4:fast on OpenCheap today. 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 2M tokens (2,000,000), room for roughly 1,500,000 words of English in one request.

grok-4:fast 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:fast API cost per 1M tokens?

grok-4:fast costs from $0.21 per 1M input tokens and $0.52 per 1M output tokens on OpenCheap, with cached input at $0.052 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one grok-4:fast request cost?

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

### Which providers serve grok-4:fast?

One provider serves grok-4:fast on OpenCheap today. 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:fast?

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

### How do I call the grok-4:fast API?

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

## More from xAI

- [Grok 4](https://opencheap.si/models/grok-4) (`grok-4`): $3.15 / $15.76 per 1M · 256K context
- [Grok 4.7](https://opencheap.si/models/grok-4.7) (`grok-4.7`): $1.26 / $5.03 per 1M · 500K context
- [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

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

## Similar models

- [GLM 5.2](https://opencheap.si/models/glm-5.2): Zhipu · 1M context · $0.32 / $0.32 per 1M, 29 % cheaper · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-glm-5.2)
- [DeepSeek V4 Pro](https://opencheap.si/models/deepseek-v4-pro): DeepSeek · 1M context · $0.40 / $0.79 per 1M · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-deepseek-v4-pro)
- [Kimi K3.1 Pro](https://opencheap.si/models/kimi-k3.1-pro): Moonshot · 1M context · $0.21 / $1.07 per 1M · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-kimi-k3.1-pro)
- [GLM 5.1](https://opencheap.si/models/glm-5.1): Zhipu · 204K context · $0.14 / $0.45 per 1M, 15 % cheaper · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-glm-5.1)
- [GPT 6 Luna Pro](https://opencheap.si/models/gpt-6-luna-pro): OpenAI · 1M context · $0.094 / $0.47 per 1M, 16 % cheaper · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-gpt-6-luna-pro)
- [Kolibri 1](https://opencheap.si/models/kolibri-1): Aleph Alpha · 1M context · $0.14 / $0.54 per 1M · [Compare with grok-4:fast](https://opencheap.si/compare/grok-4%3Afast-vs-kolibri-1)

[Compare grok-4:fast with any model](https://opencheap.si/compare)

---

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