GPT-Image 2.6 Flare & Sunburst are liveImages from $0.025 each

Grok 4.5 API

LLM

The Grok 4.5 API remains available with a 500K context window, vision, and structured tool use.

  • Input · USD / 1M tokens$3.2 USDOfficial price$4 USD
  • Output · USD / 1M tokens$9.6 USDOfficial price$12 USD
  • Savings20%
  • Context500K
  • ReleasedJul 8, 2026
  • View tool pricing and billing rules

What are we making today?

Bring an idea, a question, or a first draft.

Enter to send · Shift + Enter for a new line

01

What this model is for

The Grok 4.5 API remains available with a 500K context window, vision, and structured tool use.

Grok 4.5 is the oldest of the three Grok revisions that OmniaKey lists. The catalog gives it a 500K context window, image input and tool use, matching Grok 4.6 and Grok 4.7, and it is the one row of the three with a different cache-read price: cheaper than its two successors, while the input and output columns stay level with them.

That single difference sets the decision. A job that sends one long, unchanging block of text many times, such as a specification, a legal file or a fixed tool catalogue, is where an older but cheaper cache line can win. New agent work belongs on 4.7, a change-controlled rollback belongs on 4.6, and 4.5 earns its place as the cached-input option or as a frozen baseline that must not drift while you measure something else.

Use it for workflows pinned to the Grok 4.5 model ID or when comparing revision behavior before moving to 4.6.

Best-fit coding workloads

Repeated passes over one corpus

Ask twenty different questions about the same 80-page specification, keeping the document at the front of every request and the question at the end. The unchanged block is what the lower cache-read rate applies to, so hold the document text byte-stable between turns and confirm a hit from the returned usage fields.

A frozen evaluation baseline

Keep this revision fixed while you change prompts, tools or agent settings, so the thing you are measuring does not move underneath you. Record the returned id with each run, and revisit the baseline only when you deliberately replace it with a newer Grok revision.

Client configs already on this id

Existing codex, cursor, cline and aider profiles that were set up against grok-4.5 can stay on it while other work moves on. Test one reversible task first, since the same client may handle tool results differently once the id underneath it changes.

02

Hands-on notes

Checked on 2026-10-27 through the OmniaKey API with one standard coding prompt (median of 3 runs) and three capability probes.

Output tokens for our standard coding prompt, reasoning included
2,064
Cost of that output at current prices
$0.01981
JSON mode
Passed
Tool calling
Passed
Image input
Not listed

03

Technical specification

Catalog facts and integration details verified for this route.

Model ID
grok-4.5
Context
500K
Inputs and tools
Vision · Tool use
API endpoint
/v1/chat/completions
Cache hit / 1M
$0.48 USD
Coding clients
Codex · Cursor · Cline · Aider

Limits to plan around

  • The cache-read saving needs a genuinely repeated prefix. One edited line near the top of a prompt invalidates the match, and the request falls back to the ordinary input rate.
  • Neither a maximum output length nor an image budget appears in the catalog rows for this id, so both have to be found by sending a real request rather than read off the page.
  • Only input is discounted. Output tokens, including reasoning that the API reports as output, stay on their own rate and often dominate a long agent turn.
  • Matching catalog rows do not guarantee matching behaviour: an older revision can answer differently on tools, refusals or output shape, so keep one task from your own suite in the loop.

04

Compare nearby models

Compare workload fit and current listed token rates before choosing a route.

ModelBest forContextInputOutput
Grok 4.5This page
grok-4.5
Cached-input work: one long repeated block of text, questioned many times over.500K
$3.2 USD
Official price $4 USD
$9.6 USD
Official price $12 USD
Grok 4.6
grok-4.6
The rollback and pinned-version choice during a move to Grok 4.7, at the newer cache-read rate.500K
$3.2 USD
Official price $4 USD
$9.6 USD
Official price $12 USD
Grok 4.7
grok-4.7
New long-horizon agent work that wants xAI's latest revision and its reasoning settings.500K
$3.2 USD
Official price $4 USD
$9.6 USD
Official price $12 USD

05

SDK quickstarts

Use one base URL and model ID from cURL, Python, or TypeScript.

Streaming chat completion
curl https://api.omniakey.com/v1/chat/completions \
  -H "Authorization: Bearer $OMNIAKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.5",
    "messages": [
      {"role": "user", "content": "Review this pull request"}
    ],
    "stream": true
  }'

06

Estimate token cost

Enter expected input and output tokens to compare current listed rates.

OmniaKey estimate
$0.512
Official-rate estimate
$0.64
Estimated savings
$0.128

Estimate covers input and output tokens only. Cache usage, retries, tools, and client-side token accounting can change the final charge.

08

Sources and verification

Model facts and links were checked on 2026-10-27. Provider documentation remains the authority for upstream behavior.

Common errors

The errors OmniaKey users hit most often, from our production logs. Each message appears as the API returns it.

HTTP 403

Insufficient quota
Cause
Your OmniaKey balance has run out.
Fix
Top up your balance. The same API key works again right away.

HTTP 403

insufficient quota for pre-charge
Cause
Before a request runs, OmniaKey reserves its largest possible cost, which grows with the prompt and max_tokens. Your balance is below that amount.
Fix
Top up, or lower max_tokens.

HTTP 401

Invalid token
Cause
The request carries no API key, or a key that does not exist.
Fix
Copy the key from your dashboard again and check that your client sends it.

HTTP 503

No available channel for model <model> under group <group>
Cause
The model name does not match one OmniaKey serves, often because of a dot or a capital letter, such as claude-sonnet-5.5 for claude-sonnet-5-5. It also appears when every supplier of the model is unavailable.
Fix
Use the exact model ID, grok-4.5. If it already matches, retry later or switch models.

HTTP 524

524: A timeout occurred
Cause
No data came back for about 100 seconds, so Cloudflare closed the connection. Long answers without streaming run into this.
Fix
Set stream to true, so tokens arrive while the answer is written.

Frequently asked questions

How much does Grok 4.5 cost on OmniaKey?

OmniaKey charges $3.2 USD per 1M input tokens and $9.6 USD per 1M output tokens, in USD. Official prices are $4 USD and $12 USD; you save 20%.

What is the context window for Grok 4.5?

The listed context window is 500K. Actual usable limits can also depend on the client and upstream request format.

How do I call Grok 4.5 through OmniaKey?

Use POST /v1/chat/completions on https://api.omniakey.com/v1 and set the model field to grok-4.5. The catalog lists codex, cursor, cline and aider as clients for the id, all pointed at that base URL with an OmniaKey key. Keep the spelling exact, because a different case will not resolve to this model.

Why is Grok 4.5 cheaper for cached input?

The catalog prices its cache-read tokens below Grok 4.6 and Grok 4.7 while keeping input and output level, so a request whose prompt is mostly reported cache hits lands lower on this id. Nothing else in the listed rows differs, which makes repeated long prompts the one case where the older revision has an edge.

How much does Grok 4.5 cost to run?

Billing is per input and output token against your account balance, and cached input carries its own rate. The live figures are in the price table on the model page, and they can change, so read that table rather than an older note.

Does Grok 4.5 support images and tool use?

Yes. The catalog lists vision and tool use for the id, the same pair as Grok 4.6 and Grok 4.7. An image plus a tool loop is therefore possible on this revision, though the practical check is your own task: pass a screenshot and a tool call through the client you actually use before relying on it.

Should I upgrade from Grok 4.5 to Grok 4.7?

Upgrade when your tasks improve, not because a newer number exists. xAI reports gains for 4.7 over 4.6 in its launch comparison, and 4.5 does not appear in that table. Run the same prompt, tools and effort on both ids, then compare accepted results rather than the first paragraph of output.

Does Grok 4.5 offer a batch queue?

No. Batch is not listed for this id, so a large offline job pays the interactive token rates. If the work is repetitive, cut the prompt instead: deduplicate the shared text, drop expired tool output and send one document per request, then measure the reported token counts before and after.