# Grok 4.5 — Use via Hanzo AI API

> Grok 4.5 is a model from SpaceXAI with frontier performance on coding, know... Call via Hanzo's OpenAI-compatible API. Context: 500K.

Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.

[Get API key](https://platform.hanzo.ai/api-keys)[Try in Chat](https://hanzo.ai/chat)

Context Window

**500K**

In

**—**per million tokens

Out

**—**per million tokens

xAI

Model ID`x-ai/grok-4.5`

### Specifications

Context Window

500K

Modalities

text

Price

—

Model ID

x-ai/grok-4.5

## Quick start

x-ai/grok-4.5

—

TypeScript

```
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'x-ai/grok-4.5',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
```

[Get an API key →](https://platform.hanzo.ai/api-keys)

## More from xAI

[View all xAI models →](https://hanzo.ai/models/x-ai)

- [Grok 4.20 x-ai/grok-4.20Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...2M$1.39 → $2.78](https://hanzo.ai/models/x-ai/grok-4.20)
- [Grok 4.20 Multi-Agent x-ai/grok-4.20-multi-agentGrok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows. Multiple agents operate in parallel to conduct deep research, coordinate tool use, and synthesize information...2M](https://hanzo.ai/models/x-ai/grok-4.20-multi-agent)
- [Grok 4.3 x-ai/grok-4.3Grok 4.3 is a reasoning model from SpaceXAI. It accepts text and image inputs with text output, and is suited for agentic workflows, instruction-following tasks, and applications requiring high factual...1M](https://hanzo.ai/models/x-ai/grok-4.3)
- [Grok 4.6 x-ai/grok-4.6Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by \[Grok 4.7\](/x-ai/grok-4.7).500K](https://hanzo.ai/models/x-ai/grok-4.6)
- [Grok 4.7 x-ai/grok-4.7Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...500K](https://hanzo.ai/models/x-ai/grok-4.7)
- [Grok Latest ~x-ai/grok-latestThis model always redirects to the latest Grok model from xAI.500K](https://hanzo.ai/models/x-ai/grok-latest)

- [**Grok 4.3 (batch) (opens in a new tab)**x-ai/grok-4.3:batch1MGrok 4.3 is a reasoning model from SpaceXAI. It accepts text and image inputs with text output, and is suited for agentic workflows, instruction-following tasks, and applications requiring high factual...](https://hanzo.app/models/x-ai/grok-4.3:batch)
- [**Grok 4.6 (batch) (opens in a new tab)**x-ai/grok-4.6:batch500KGrok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by \[Grok 4.7\](/x-ai/grok-4.7).](https://hanzo.app/models/x-ai/grok-4.6:batch)

## Use Grok 4.5 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get an API key](https://platform.hanzo.ai/api-keys)[Browse All Models](https://hanzo.ai/models)
