New model option · 2026

Grok 4.5 for Coding Agents
One more strong option via QCode

xAI's flagship, released 2026-07-08: Opus-class positioning at a lower price. Where it fits in coding workflows and how to run it alongside the Claude and GPT families. Live availability: see /models.

#API access #Quota hedge #Multi-model

Positioning for coding work

xAI positions Grok 4.5 as an Opus-class coding model trained alongside Cursor data, aimed at coding, agents and knowledge work. For agentic coding it is a strong complement rather than a universal replacement: teams often route planning or review to one family and execution to another.

How it sits vs other flagships

Vs Claude Opus-class

xAI's launch benchmarks show Grok 4.5 ahead of Claude Opus 4.8 on several key suites at a lower price; Claude keeps a strong reputation for careful long-horizon edits and safety behavior. Vendor benchmarks are a starting point — test on your own task mix.

Vs GPT-5.6 tiers

GPT tiers (Sol/Terra/Luna) have explicit cache pricing and proven Codex integration. Grok offers alternative when you want stylistic variety or during other providers' reset windows.

Good fit scenarios

Exploratory refactors, cross-language ports, and tasks that benefit from a fresh 'outside' perspective. Pair with a self-managed endpoint for private context.

Using Grok via QCode

QCode surfaces current Grok model ids on the /models page. Send the model name the same way you select gpt-5.6-terra or claude-sonnet-5. One key, one quota, live usage in dashboard.

# example with one QCode key # model id may be grok-4-5 or similar per /models export QCODE_API_KEY=cr_... # use in Codex / Claude Code or direct OpenAI-compatible calls

Quota and reset hedging

When Claude weekly caps or Codex rolling windows tighten, routing part of your traffic to Grok 4.5 keeps velocity without draining the same pool. A self-hosted local endpoint can absorb privacy-sensitive baseline work.

What we know (as of 2026-07-17)

Official pricing is $2 per million input tokens and $6 per million output; xAI claims roughly 2x token efficiency versus comparable models. Available in Grok Build and in Cursor on all plans; not yet available in the EU. For details xAI has not fully published (exact parameter count and infrastructure), treat community numbers as unconfirmed.

Grok 4.5 API FAQ

Is Grok 4.5 already the best for coding?

No single model leads everywhere. Grok 4.5 is Opus-class positioning at a lower price point — a valuable addition to the rotation, especially when you want stylistic diversity or quota headroom.

How do I pick the model id?

Check QCode /models for the current list. The id is passed exactly as shown; no extra config beyond your normal client setup.

Can I stay compliant while using it?

Yes — route through official API paths. Follow each vendor's terms including regional policy. A relay forwards; it does not change your obligations.

Does it remove the need for a local open-source setup?

No. A self-built Grok Build shell with a local model gives data sovereignty and offline capability; hosted Grok 4.5 gives frontier performance. They solve different problems and are commonly used together.

QCode access for Grok family

One key reaches multiple frontier models. Route to Grok when available or during other providers resets.

Add Grok to your model mix

One QCode key reaches Claude, GPT and Grok families. Switch per task.

QCode access for Grok family

One key reaches multiple frontier models. Route to Grok when available or during other providers resets.