# xAI: grok-4.5

- Model ID: `grok-4.5`
- Provider: xAI
- Web version: https://www.moleapi.com/en/models/xai/grok-4.5
- Content status: verified

## Model introduction

Grok 4.5 is xAI's flagship model for code and general tasks, with agentic tool calling and configurable reasoning.

## Model capabilities

- OpenAI compatible
- Responses API
- Anthropic compatible
- Gemini compatible
- Prompt cache
- Reasoning

### Verified specifications

- Official positioning: Flagship model for code and general tasks
- Context window: 500,000 tokens
- Verified capabilities: Agentic tool calling; configurable reasoning

### Independent capability evaluation

- Reasoning, high effort
- Intelligence: 54 (#9/186)
- Output speed: 69.2 tok/s (#87/186)
- Time to first token: 10.71s
- Source: https://artificialanalysis.ai/models/grok-4-5/

A strong composite result with middle-range speed and latency for coding and general tasks with tunable reasoning.

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $2 / 1M tokens
- Output: $6 / 1M tokens
- Cache read: $0.5 / 1M tokens

### Discount (discount, x0.8)

- Input: $1.6 / 1M tokens
- Output: $4.8 / 1M tokens
- Cache read: $0.4 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.6 / 1M tokens
- Output: $1.8 / 1M tokens
- Cache read: $0.15 / 1M tokens

### Temporary (availability may vary) (temp, x0.1)

- Input: $0.2 / 1M tokens
- Output: $0.6 / 1M tokens
- Cache read: $0.05 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| openai-response | POST | /v1/responses |
| openai-response-compact | POST | /v1/responses/compact |
| anthropic | POST | /v1/messages |
| gemini | POST | /v1beta/models/{model}:generateContent |
| openai-alpha-search | POST | /v1/alpha/search |

- Live pricing source: https://home.moleapi.com/api/pricing

## About grok-4.5

## Grok 4.5 model guide

Grok 4.5 is xAI’s frontier model for coding, agentic tasks, and knowledge work, with training data spanning science, engineering, and mathematics. It supports text and image inputs, reasoning, function calling, and structured outputs. [1] [9]

## Positioning and core capabilities

Grok 4.5 is positioned for agentic software development, engineering, scientific, mathematical, and workflow-oriented tasks. [1] [9] Its configurable reasoning effort supports low, medium, and high settings, with high set as the default. [9]

The model supports function calling alongside web search, X search, and code-execution tools in xAI’s documented API environment. [9] Structured-output modes include JSON Schema, JSON object, and text responses. [7]

## Capabilities and specs

Grok 4.5 combines long-context text processing with image input and tool-oriented output capabilities. [1] Its knowledge cutoff is February 1, 2026. [9]

| Specification | Details |
| --- | --- |
| Input modalities | Text and image [1] |
| Output modality | Text [1] |
| Context window | 500,000 tokens [1] |
| Reasoning | Configurable low, medium, or high effort [9] |
| Tool integration | Function calling, web search, X search, and code execution [9] |
| Structured output | JSON Schema, JSON object, and text modes [7] |

For supported JSON Schema features, xAI documents schema-conformant structured responses and tool-call arguments. [7]

## Use cases

Grok 4.5 is designed for coding and agentic development workflows that combine reasoning with function calls and external tools. [1] [9] Its science, engineering, and mathematics positioning also suits technical analysis and knowledge-work tasks that benefit from long-context document handling or image input. [1] [9]

Structured outputs support applications that require machine-readable responses for extraction, classification, workflow routing, and tool invocation. [7]

## Material limitations

Grok 4.5 has a 500,000-token context window, which defines the maximum documented context capacity for an individual request. [1] Its knowledge cutoff is February 1, 2026. [9]

Structured-output guarantees apply to supported JSON Schema features; unsupported or over-limit schema constraints are handled on a best-effort basis. [7]

## Sources

The following xAI documentation supports the model positioning, specifications, and capability details in this guide.

- [1] [xAI Grok 4.5 model documentation](https://docs.x.ai/developers/models/grok-4.5)
- [7] [Structured Outputs | SpaceXAI Docs](https://docs.x.ai/developers/model-capabilities/text/structured-outputs)
- [9] [Grok 4.5 - xAI Docs - SpaceXAI](https://docs.x.ai/developers/grok-4-5)


## Code examples

### cURL

```bash
curl https://api.moleapi.com/v1/responses \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.5","input":"Explain this problem step by step."}'
```

### Python

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.moleapi.com/v1", api_key="YOUR_MOLEAPI_API_KEY")
response = client.responses.create(model="grok-4.5", input="Explain this problem step by step.")
print(response.output_text)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.moleapi.com/v1", apiKey: process.env.MOLEAPI_API_KEY });
const response = await client.responses.create({ model: "grok-4.5", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## More related models

- [grok-4.6](https://www.moleapi.com/en/models/xai/grok-4.6) — xAI
- [grok-composer-2.5-fast](https://www.moleapi.com/en/models/xai/grok-composer-2.5-fast) — xAI
- [grok-4.5-latest](https://www.moleapi.com/en/models/xai/grok-4.5-latest) — xAI

## Frequently asked questions

### How is grok-4.5 priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access grok-4.5?

The catalog currently lists openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search.

### How do I switch an existing project to grok-4.5?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the grok-4.5 details come from?

Capabilities and limitations are checked against xAI and the other cited pages; pricing and protocols come from the MoleAPI console.
