# xAI: grok-3

grok-3 is xAI's reasoning model, trained with large-scale reinforcement learning to think for seconds to minutes before answering. It targets math, coding, world knowledge and instruction-following tasks.

- **Model id:** `opencheap/grok-3`
- **Price per 1M tokens:** $3.15 input / $15.74 output
- **Cached input:** $0.79 per 1M tokens
- **Context:** 131K tokens

## Providers

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

| Provider | Input price | Cache price | Output price | Context |
| --- | --- | --- | --- | --- |
| Unnamed provider · quantization unknown | $3.15 | $0.79 | $15.74 | 131K |

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

## API

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

## About grok-3

grok-3 costs from $3.15 per 1M input tokens and $15.74 per 1M output tokens on OpenCheap, with cached input at $0.79 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.047, and 1,000 such requests about $47.21. Prices as of 2026-12-04 12:01 UTC.

One provider serves grok-3 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 131K tokens (131,072), room for roughly 98,000 words of English in one request.

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

grok-3 costs from $3.15 per 1M input tokens and $15.74 per 1M output tokens on OpenCheap, with cached input at $0.79 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one grok-3 request cost?

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

### Which providers serve grok-3?

One provider serves grok-3 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-3?

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

### How do I call the grok-3 API?

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

## More from xAI

- [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-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 Opus 4.5](https://opencheap.si/models/claude-opus-4.5): Anthropic · 200K context · $2.45 / $12.25 per 1M, 22 % cheaper · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-claude-opus-4.5)
- [Sonar Pro](https://opencheap.si/models/sonar-pro): Perplexity · 200K context · $3.15 / $15.75 per 1M · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-sonar-pro)
- [GPT 5.5](https://opencheap.si/models/gpt-5.5): OpenAI · 1M context · $2.00 / $12.00 per 1M, 25 % cheaper · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-gpt-5.5)
- [claude-4-sonnet](https://opencheap.si/models/claude-4-sonnet): Anthropic · 200K context · $3.46 / $17.30 per 1M · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-claude-4-sonnet)
- [GPT Audio](https://opencheap.si/models/gpt-audio): OpenAI · 128K context · $2.63 / $10.50 per 1M, 32 % cheaper · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-gpt-audio)
- [Ousia 1](https://opencheap.si/models/ousia-1): Other labs · 128K context · $2.00 / $10.00 per 1M, 36 % cheaper · [Compare with grok-3](https://opencheap.si/compare/grok-3-vs-ousia-1)

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

---

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