AI KNOWLEDGE DESK

Models · entities · concepts · comparisons · practical tools

GETLLMS.ORG

Grok 4.5

Grok 4.5 is xAI's coding and agent model for long-running software, tool-use, and knowledge-work tasks, available in Grok Build, Cursor, and the xAI API with the grok-4.5 model ID.

Platform: Replicate
Language ModelCoding AssistantAgent WorkflowsTool UsexAI
xAI API / Grok Build / Cursor
xAI API launch pricing: $2 per million input tokens and $6 per million output tokens
Commercial

🚀Function Overview

Grok 4.5 is a practical candidate for coding-agent and office-agent routing where teams want a current xAI model with published API pricing and Cursor availability.

Key Features

  • Official model ID shown as grok-4.5 in the xAI launch API example
  • Available in Grok Build, Cursor, and the xAI API console at launch
  • Positioned for coding, agentic tasks, data work, spreadsheets, documents, and slides
  • Cursor availability across desktop, web, iOS, CLI, and SDK surfaces
  • xAI API launch pricing of $2 per million input tokens and $6 per million output tokens
  • EU availability caveat at launch, with xAI saying EU access is expected later in July 2026

Use Cases

  • Coding-agent tasks in Cursor or Grok Build
  • Long-running software engineering and tool-use workflows
  • Cost-per-task comparisons against Claude, GPT, Composer, and GLM routes
  • Office-style agent work across spreadsheets, documents, and presentations
  • Provider-routing trials where current model ID, price, and availability must be explicit

⚙️Input Parameters

model

string

Use grok-4.5 when the xAI API account and region have access.

input

string

Prompt or task input sent through the xAI Responses API example or an equivalent supported client surface.

messages

array

Chat-style message array when using an OpenAI-compatible or provider-specific chat client surface.

tools

array

Optional tool definitions or harness tools where the active xAI, Cursor, or routing surface supports agentic tool use.

💡Usage Examples

Example 1

Input Parameters

{
  "model": "grok-4.5",
  "input": "Find and fix the bug, then explain it: function median(a){a.sort();return a[a.length/2]}"
}

Output Results

Grok 4.5 returns a code-oriented answer through the xAI API surface. Verify exact API response shape, region availability, and tool support from the current xAI docs before production routing.

Example 2

Input Parameters

{
  "model": "grok-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Compare whether this agent task should run in Grok 4.5, Composer, Claude Sonnet 5, or GPT-5.6 based on likely task cost and review burden."
    }
  ]
}

Output Results

Grok 4.5 is a current candidate for coding-agent routing, but the final decision should compare real traces, token use, task success, latency, and product-surface pricing.