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

Grok 4.6 API

LLM

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

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.6 API remains available with a 500K context window, vision, and structured tool use.

Grok 4.6 is the previous revision of xAI's flagship line, kept on OmniaKey as a separate id from Grok 4.7. The catalog gives it the same 500K context window, the same vision and tool use, the same client list and the same input, output and cache-read rates as the newer model, and it no longer carries the new or featured marks that 4.7 does.

Because the window and the rates match, moving from 4.6 to 4.7 buys a different model behaviour rather than a different allowance, and that makes 4.6 the natural rollback target for a staged upgrade. Two cases keep it useful on its own: a workflow that is pinned to the exact id, and a cache-heavy loop where its cache-read rate still sits above Grok 4.5 while its input and output rates match both siblings.

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

Best-fit coding workloads

Pinned-id production agents

Run a coding agent on the exact grok-4.6 id when change control, not novelty, is the priority. Log the id the response returns next to your own version tag, so a later move to 4.7 has a clean before-and-after record to compare against.

Cache-prefix budgeting

Keep the system prompt, tool schemas and repository rules at the front of the request, then read the reported cache and prompt token fields after each run. A prefix that repeats every turn is the one line item worth measuring before you decide which Grok revision to run.

Revision A/B before upgrading

Freeze a repository revision, a prompt, a tool set and an effort level, then run both Grok generations on the same tasks. Score accepted results and repairs, not just final text, so a switch to 4.7 is backed by your own outcomes instead of someone else's table.

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,624
Cost of that output at current prices
$0.02519
JSON mode
Passed
Tool calling
Passed
Image input
Passed

03

Technical specification

Catalog facts and integration details verified for this route.

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

Limits to plan around

  • The 500K listing is prompt capacity, and the catalog lists no maximum output length for this id, so a long turn is bounded by what the reply returns rather than by a stated ceiling.
  • Batch is not offered for this id, so a nightly analysis job keeps paying the interactive token rates for the same input.
  • Its cache-read rate is higher than Grok 4.5's while input and output match, so a loop built on one long repeated prompt can cost more here than on the older id.
  • xAI's own launch comparison runs 4.6 at high effort and 4.7 at xhigh, so a vendor table is not an effort-matched result and should not be treated as one.

04

Compare nearby models

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

ModelBest forContextInputOutput
Grok 4.6This page
grok-4.6
The pinned 4.6 id for controlled deployments and rollback during a move to 4.7.500K
$3.2 USD
Official price $4 USD
$9.6 USD
Official price $12 USD
Grok 4.7
grok-4.7
The current xAI flagship and the id to evaluate first for new long agent work.500K
$3.2 USD
Official price $4 USD
$9.6 USD
Official price $12 USD
Grok 4.5
grok-4.5
A cache-heavy loop that rereads one long prompt; its cache-read rate is the lowest of the three.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.6",
    "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.

Frequently asked questions

How much does Grok 4.6 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.6?

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.6 through OmniaKey?

Post to https://api.omniakey.com/v1/chat/completions with grok-4.6 in the model field and your OmniaKey key as the bearer token. The catalog lists codex, cursor, cline and aider for this id, and each is configured with the same base URL and key. Copy the id exactly, because model ids are case-sensitive.

How is Grok 4.6 billed?

Charges are per input and output token against your account balance, with cached input billed at its own rate. The current figures are in the price table on the model page. Keeping the stable part of a repository prompt at the front is what makes a cache read likely, so read the reported cache fields after a run.

Does Grok 4.6 support images and tool calls?

Yes. The catalog lists vision and tool use for the id, and xAI's documentation names function calling, structured output, web search, X search and code execution. Images, tool results and long text can share one thread, which is what a repository-scale debugging session usually needs.

What separates Grok 4.5 and Grok 4.6?

The catalog shows the same 500K window, the same vision and tool support and the same input and output rates, and the only listed difference is the cache-read rate, which is lower on Grok 4.5. Behaviour between two revisions can still differ, so run your own tasks before assuming the cheaper cache line makes 4.5 the better pick.

Should I move a Grok 4.6 deployment to 4.7?

Treat it as an upgrade to test rather than one to assume. xAI reports gains in its launch comparison, and the window and listed rates are unchanged, but that table uses different effort settings for the two models. Pin the same effort, rerun a representative set and keep 4.6 as the rollback id until your own results are in.

Can I use Grok 4.6 for batch jobs?

No. Batch is not offered for this id, so scheduled analysis and nightly evaluation keep the standard token rates. If a job does not need an immediate answer, trim the prompt instead: removing stale tool output and duplicated files usually changes the bill more than a queue would.