Grok 4.5 API

Grok 4.5: xAI model for coding, agents and documents

x-ai/grok-4.5
xAIConversation

About this model

Grok 4.5 is xAI’s July 2026 release, described in its release notes as a model for coding, agentic work and knowledge tasks. Reasoning effort can be set to low, medium or high (high is the default), according to xAI.

In this catalog it supports image input, PDF input and tool calling, which makes it a good fit for assistants that read attached documents and call functions. It is older than Grok 4.6 and 4.7; choose it when you want that generation’s behavior, and the newer ones for the latest improvements.

Limits: the context window here is 256,000 tokens; output is text.

Use cases

  • Coding and agentic workflows
  • Questions over PDF files and images
  • Tool-calling assistants

Input and output

Input
Text, images, PDF
Output
Text, tool calls
Developer
xAI
Type
Conversation
Context
256,000 tokens
Capabilities
Image input

Grok 4.5 request example

Use https://gatelum.com/v1 as the base URL and pass x-ai/grok-4.5 in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/chat/completions' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "x-ai/grok-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude Code and Anthropic-protocol clients

For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=x-ai/grok-4.5
claude

Where to use Grok 4.5

Guides with step-by-step instructions for the tools that support this model: