# Grok 4.5

Grok 4.5 costs $2 per 1M input tokens and $6 per 1M output tokens on LLM API, with a 500K-token context window.

Model ID: `grok-4.5` · xAI · Text generation · Released July 8, 2026
Updated: 2026-10-13
Canonical: https://llmapi.ai/models/x-ai-grok-4-5/

- Input: $2 per 1M tokens
- Output: $6 per 1M tokens
- Cache read: $0.3 per 1M tokens
- Context: 500K tokens
- Max output: 500K tokens

## Pricing

Served by xAI, the only provider.

| Price | Amount | Per |
| --- | --- | --- |
| Input | $2 | per 1M tokens |
| Output | $6 | per 1M tokens |
| Cache read | $0.3 | per 1M tokens |
| Web search | $0.005 | per search |

**Volume pricing.** At higher monthly volume, Grok 4.5 may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Features

- Tools: Yes
- Parallel tool calls: No
- Image input: Yes
- Reasoning: Yes (Levels: low, medium, high · default medium)
- Prompt caching: Yes
- Structured outputs: Yes
- JSON mode: Yes
- Streaming: Yes
- Web search: No

## Call Grok 4.5

### Chat Completions (`POST /v1/chat/completions`)

Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

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

Docs: [Chat Completions docs](https://docs.llmapi.ai/api/v1/chat/completions)

## More from xAI

- [Grok 4.7](https://llmapi.ai/models/xai-grok-4-7/): $6 / $18 per 1M input / output
- [Grok 4.6](https://llmapi.ai/models/x-ai-grok-4-6/): $2 / $6 per 1M input / output
- [Grok 4.3](https://llmapi.ai/models/x-ai-grok-4-3/): $1.25 / $2.5 per 1M input / output

Prices synced 2026-11-09.

Next step: [Get API key](https://app.llmapi.ai/signup)
