Skip to content
Dashboard

Grok 4.5

Grok 4.5 is a xAI reasoning model built for coding, agentic tasks, and knowledge work, accepting text and image input with selectable low, medium, and high reasoning levels. Your use is subject to xAI's Terms & Privacy Policies.

ReasoningTool UseImplicit CachingFile InputVision (Image)Web Search
import { streamText } from 'ai'
const result = streamText({
model: 'xai/grok-4.5',
prompt: 'Why is the sky blue?'
})
Read docs

About Grok 4.5

Grok 4.5 was released July 8, 2026 as xAI's reasoning model for coding, agentic tasks, and knowledge work. Grok 4.5 accepts text and image input, returns text, and works within a context window of 500K tokens. xAI lists a knowledge cutoff of February 1, 2026.

Reasoning depth is a per-request setting. Grok 4.5 supports low, medium, and high levels and defaults to high. Use low for latency-sensitive agent steps and simple tool calls, medium for data analysis and long-context reasoning, and high for competition-level math, multi-step logic, and hard engineering problems. Reasoning can't be switched off.

Tool support covers function calling, structured outputs, web search, X search, and code execution, so an agent can look something up or run code before it answers. Long agent loops also benefit from context compaction, which trims earlier turns so a session keeps running past the raw window.

You can integrate Grok 4.5 through AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. Routing rules move traffic from another Grok model to Grok 4.5 without changing application code. Try Grok 4.5 in the AI Gateway playground at https://ai-sdk.dev/playground/xai:grok-4.5.