---
title: "Grok 4.5 API Pricing & Context | Inference.net"
description: "Run Grok 4.5 by xAI on Inference.net: $2.00/1M input, $6.00/1M output, 500K context. OpenAI-compatible API quickstart."
url: "https://inference.net/models/grok-4-5/"
---

# Grok 4.5

Run Grok 4.5 by xAI on Inference.net through a serverless, OpenAI-compatible API at $2.00 per 1M input tokens and $6.00 per 1M output tokens. Built on a Proprietary architecture with a 500K-token context window with reasoning, vision, and tool calling support, it streams low-latency responses with Zero Data Retention enabled by default.

xAI Reasoning Model Proprietary 500K context

[Get started](https://inference.net/register/) [Documentation](https://inference.net/docs/api/quickstart/)`grok-4.5`

MODEL API PRICING

PER 1M TOKENS

Input

$2.00

Cache read

$0.30

Output

$6.00

[See all pricing](https://inference.net/subscription/)

MODEL SPEC

Developed by

xAI

Model family

Grok 4.5

Size

Not disclosed

Architecture

Proprietary

Context window

500K tokens

Max output

500K tokens

License

Commercial / Provider

Overview

Grok 4.5 is a reasoning model from xAI built on a Proprietary architecture, available through the Inference.net serverless API. Use the same OpenAI-compatible request shape across the catalog and switch models by changing a single identifier.

The API supports streaming responses and project-scoped credentials. Usage, token volume, and spend appear in the dashboard automatically, so the model can move from evaluation to production without a second integration path.

QUICKSTART [Get API key](https://inference.net/dashboard/api-keys/)

```typescript
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.inference.net/v1',
  apiKey: process.env.INFERENCE_API_KEY,
})

const completion = await client.chat.completions.create({
  model: 'grok-4.5',
  messages: [{ role: 'user', content: 'Hello' }],
})
```

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inference.net/v1",
    api_key=os.environ["INFERENCE_API_KEY"],
)

completion = client.chat.completions.create(
    model="grok-4.5",
    messages=[{"role": "user", "content": "Hello"}],
)
```

```curl
curl https://api.inference.net/v1/chat/completions \
  -H "Authorization: Bearer $INFERENCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.5",
    "messages": [
      { "role": "user", "content": "Hello" }
    ]
  }'
```

## PRICING & TOKEN RATES

USD per 1M tokens

| Token type | Rate (per 1M) | Details |
| --- | --- | --- |
| Input | $2.00 | Standard prompt tokens |
| Cache read | $0.30 | 85% savings vs. standard input |
| Output | $6.00 | Generated completion tokens |
| Reasoning | $6.00 | Reasoning / thinking output tokens |
| Long-context input | $4.00 | Prompts over 200K input tokens |
| Long-context cache read | $0.60 | Cached reads over 200K input tokens |
| Long-context output | $12.00 | Completions over 200K input tokens |

## SPECIFICATIONS & CAPABILITIES

grok-4.5

| Specification | Value |
| --- | --- |
| Maker | xAI |
| Architecture | Proprietary |
| Parameters | Not disclosed |
| Quantization | Native / Unspecified |
| Context window | 500K tokens (500,000) |
| Max output | 500K tokens (500,000) |
| Input modalities | Text, Image |
| Output modalities | Text |
| Tool calling | Supported |
| Structured outputs | Supported |
| JSON object mode | Supported |
| Logprobs | Not specified |
| Reasoning efforts | Supported (low, medium, high) |
| Supported wire endpoints | `/v1/chat/completions``/v1/responses``/v1/messages` |
| Data residency | Global (`api.inference.net`) |
| License | Commercial / Provider |
| Artificial Analysis Intelligence Index | [54 (captured Jul 31, 2026)](https://artificialanalysis.ai/models/grok-4-5) |
| Release date | Jul 08, 2026 |

PROMPT CACHING

1. Keep the prompt prefix stable and byte-identical across calls.
2. Pass a stable x-grok-conv-id request header to maintain routing stickiness.
3. Check usage.prompt_tokens_details.cached_tokens in the response to confirm cache reads.

```
# Stable across calls in the same conversation
x-grok-conv-id: my-stable-session
```

Estimate monthly savings for your prefix length and hit rate in the [Prompt Cache Savings Calculator](https://inference.net/tools/prompt-cache-calculator/).

AGENT INTEGRATIONS [View all](https://inference.net/docs/integrations/overview/)

[### Claude Code Native Anthropic /v1/messages. Six model slots for every Claude Code workload. `fast claude on`](https://inference.net/docs/integrations/claude-code/) [### Codex OpenAI-compatible Responses API with a reversible Codex configuration. `fast codex on`](https://inference.net/docs/integrations/codex/) [### Grok Chat completions with a catalog-backed section for each supported alias. `fast grok on`](https://inference.net/docs/integrations/grok/) [### OpenCode Chat completions with Inference.net models registered as an OpenCode provider. `fast opencode on`](https://inference.net/docs/integrations/opencode/) [### Pi Chat completions with model and provider settings written for Pi Agent. `fast pi on`](https://inference.net/docs/integrations/pi/) [### Hermes Hermes provider configuration is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/hermes/) [### OpenClaw OpenClaw provider routing is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/openclaw/) [### Fx Fx gateway configuration is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/fx/) [### Cursor Cursor base URL routing is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/cursor/)

FAQ

## Frequently asked questions about Grok 4.5

### How much does Grok 4.5 cost on Inference.net, and is prompt caching supported?

On Inference.net, Grok 4.5 is priced at $2.00 per 1M input tokens and $6.00 per 1M output tokens. Cached input reads are $0.30 per 1M tokens (85% less than standard input). Prompts exceeding 200K input tokens use the long-context tier at $4.00/1M input and $12.00/1M output. Prompt caching is supported by passing a stable x-grok-conv-id request header across turns in the same conversation.

### What are the context window and max output token limits for Grok 4.5?

Grok 4.5 supports a 500K tokens (500,000) input context window and up to 500K tokens (500,000) output tokens per request. It accepts text and image input and produces text output.

### What capabilities and API endpoints does Grok 4.5 support?

Grok 4.5 supports tool calling, structured outputs (JSON Schema), JSON object mode, configurable reasoning (low, medium, high effort levels), and image vision inputs. It is callable over /v1/chat/completions, /v1/responses, and /v1/messages on Inference.net.

### Does Inference.net offer Zero Data Retention and US data residency for Grok 4.5?

Yes. Zero Data Retention (ZDR) is enabled by default for new accounts on Inference.net, so prompts and outputs sent to Grok 4.5 are not retained after processing. Inference.net is SOC 2 Type 2 compliant; see our [ZDR policy](https://inference.net/zero-data-retention/) for full details. Requests are served via the global api.inference.net endpoint.

### Can I call Grok 4.5 with the standard OpenAI SDK?

Yes. Point the official OpenAI TypeScript or Python SDK (or any OpenAI-compatible coding agent) to https://api.inference.net/v1 with your Inference.net API key and set model to "grok-4.5".

Related models

[See all models](https://inference.net/models/)

[**Grok 4.6**xAI 500K context Vision Tools Reasoning In **$2.00** Out **$6.00**](https://inference.net/models/grok-4-6/) [**GPT-6 Sol**OpenAI 922K context Vision Tools Reasoning In **$2.00** Out **$10.00**](https://inference.net/models/gpt-6-sol/) [**GPT-6.1 Sol**OpenAI 1M context Vision Tools Reasoning In **$2.00** Out **$10.00**](https://inference.net/models/gpt-6-1-sol/) [**Kimi K3.1 Pro**Moonshot AI 1M context Vision Tools Reasoning In **$1.80** Out **$9.00**](https://inference.net/models/kimi-k3-1-pro/)

Ready when you are

## Start building with Grok 4.5 today

Serverless, OpenAI-compatible, and billed per token. No commitments.

[Get started](https://inference.net/register/) [Read the docs](https://inference.net/docs/api/quickstart/)
