Skip to main content

Grok 4.5 is xAI's coding model for agentic software and engineering work, behind an OpenAI-compatible chat call. It takes up to 500,000 tokens in, replies up to 450,000, and reasoning effort goes up to xhigh.

Input $2Output $6per 1 million tokensCached input $0.30Prompts of 200K tokens or moreInput $4Output $12

Workbench

Grok 4.5

What can Grok 4.5 help with?

Related models and next tasks

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

Build stable message flows for agentic software, engineering work, and repeated long-prompt loops

Grok 4.5 is the xAI model aimed at agentic software, engineering and workflow tasks. Context, reply ceiling and effort range match the frontier sibling; what differs is a lower rate on cached input, which is exactly where a loop that resends one long leading block spends its budget.

Open the chat playground
Build stable message flows for agentic software, engineering work, and repeated long-prompt loops
Model
Grok 4.5
Good for
agentic software, engineering work, and repeated long-prompt loops
Message shape
System rules → evidence and state → current task → output contract
Fact boundary
Capabilities, controls, and price come from the live schema

Integration principle

Validate with the smallest message set, then add necessary context. Separate facts, assumptions, and constraints, and design interruption, retry, settlement, and review paths.

Build repeatable workflows for agentic software, engineering work, and repeated long-prompt loops

Grok 4.5 is the xAI model aimed at agentic software, engineering and workflow tasks. Context, reply ceiling and effort range match the frontier sibling; what differs is a lower rate on cached input, which is exactly where a loop that resends one long leading block spends its budget.

  • Cached prefix

    The repetition is the point

    Hold the leading part of the request byte-stable across a loop so it can be reused. The usage object reports how many input tokens were cached — treat a hit as something to measure, not something to count on.

  • Same envelope

    500,000 in, 450,000 out

    Context window and single-reply ceiling match the frontier sibling, so a message layout that works there needs no reshaping here.

  • Effort range

    low to xhigh, high by default

    There is no off switch on this model. Reasoning tokens are counted as output, so the max_tokens ceiling has to rise together with the effort.

Where Grok 4.5 wins on task cost and interaction shape

Test one real task for quality, verifiability, latency, and sale-price fit instead of relying on a general leaderboard.

  1. Choose 4.5

    The same long brief runs many times a day

    Engineering agents, review bots and workflow steps that replay a fixed instruction set against changing inputs.

  2. Choose 4.6

    Every request is different

    When the leading block changes each time there is nothing to reuse, and the frontier sibling is the better trade.

  3. Choose 4.3

    Some steps need no deliberation at all

    Dispatch, tagging and extraction inside the same agent can move to the sibling that accepts a none effort level.

Turn Grok 4.5 into concrete work, not generic labels

Every scenario needs input boundaries, verification, and recovery; official capabilities, benchmarks, and tool support are never invented.

  • Fixed brief, changing repository

    Engineering agents

    Fixed brief, changing repository

    Keep conventions, review rules and the output contract in the stable block; send only the changed files in the turn itself.

  • Multi-step pipelines under one policy

    Workflows

    Multi-step pipelines under one policy

    Reuse the same policy prefix at every step and vary only the task line, so every step is held to the same standard.

  • Diffs measured against a written standard

    Code review

    Diffs measured against a written standard

    Supply the standard once, then send diffs against it; ask for findings, severity and the rule each finding cites.

  • Screenshots as input to a fixed check

    Vision in the loop

    Screenshots as input to a fixed check

    Image parts accept detail auto, low or high. There are no file or PDF parts on this route, so documents have to arrive as text or as images.

Organize context into an inspectable Grok 4.5 input

Objective, evidence, state, constraints, and output contract need distinct jobs so requests can be compressed, debugged, and reproduced.

  1. Stable prefix

    Write the leading block once, then stop editing it

    Every edit invalidates the prefix the loop was reusing. Version it on purpose instead of adjusting it run by run.

  2. Variable tail

    Put everything that changes at the end

    Task line, diff and current state come after the stable block, always in the same order.

  3. Tools

    Declare the tool surface explicitly

    Up to 128 function definitions with tool_choice. Keep names and schemas stable, because they sit inside the reusable prefix too.

  4. Measurement

    Read usage on every run

    Cached input tokens, output tokens and latency together tell you whether the loop still behaves the way it was designed.

Prove a repeatable Grok 4.5 case before product integration

Confirm live schema, quote, streaming, and error behavior before reusing the normalized request.

  1. 01 · Baseline

    Validate the smallest request in Playground

    Check message layers, output shape, streaming, and current controls.

  2. 02 · Boundaries

    Exercise failure, cancellation, and retry

    Verify timeouts, interrupted streams, oversized input, regeneration, and duplicate submission.

  3. 03 · Integrate

    Copy the normalized API request

    Use the public model id and messages contract; read model controls from the live schema.

  4. 04 · Operate

    Meter usage and keep evaluating

    Store state, final usage, failure reasons, and quality feedback; quote expensive calls first.

Bring Grok 4.5 into a clear API contract

Playground, API examples, request states, and usage records stay aligned from evaluation through production integration.

  • Unified contract

    One shape for messages, streams, and errors

    Keep request structure, state handling, and error recovery consistent when changing models.

  • Live schema

    Use the current endpoint controls

    Playground and API examples expose available fields, limits, and default behavior together.

  • Observable lifecycle

    Every request has a clear state

    Submission, streaming, failure, cancellation, and usage use inspectable public semantics.

  • Portable integration

    Reduce work when models evolve

    A clear contract keeps product code focused on inputs, results, and user experience.

Grok 4.5 API boundaries to confirm before integration