2026年07月14日

Grok Pricing (2026): API Costs, Plans, CLI & Grok Code Fast

Grok pricing in 2026: SuperGrok and SuperGrok Heavy plans, Grok API token rates (grok-4.5, grok-code-fast / grok-build), Grok CLI install, and how to get an API key.

As of July 2026, Grok pricing splits two ways: consumer SuperGrok ($30/mo) and SuperGrok Heavy ($300/mo, sometimes promo-discounted) for chat limits and multi-agent, plus API pay-per-token (e.g. grok-4.5 at $2 / $6 per million input/output tokens; coding SKU grok-build-0.1 / alias Grok Code Fast at $1 / $2). Free Grok on web/apps exists with lower caps. Confirm live numbers on x.ai, grok.com, and docs.x.ai/developers/models.

Grok pricing at a glance

Path Typical price (USD) What you get Best for
Free (Grok app / web) $0 Chat, search, Imagine with rate limits Trying Grok day-to-day
SuperGrok ~$30 / month Higher limits, priority access, multi-agent-style workflows Heavy personal use, coding in the product UI
SuperGrok Heavy ~$300 / month (list; community reports of time-limited discounts) Highest consumer headroom; sustained multi-agent / long coding sessions Full-time agent days on the product surface
API (console.x.ai) Per million tokens Models like grok-4.5, grok-4.3, grok-build-0.1 (Code Fast aliases) Apps, agents, automation, CI

Subscription prices as of July 2026 — confirm the current figure at grok.com before subscribing. List prices move and often show up in product checkout before a permanent marketing page. Community discussion in July 2026 still treats ~$30 SuperGrok and ~$300 Heavy as the familiar consumer ladder (with occasional Heavy promos called out as temporary).

API rates from docs.x.ai model listings, checked July 2026.

Grok API pricing

All figures are USD per 1M tokens unless noted. Cached-input discounts exist on some models.

Flagship chat / coding: grok-4.5

Per 1M tokens
Input $2.00
Cached input $0.50 (per model card when published)
Output $6.00
Context 500k

This is the default “use Grok for serious coding” API ID after the July 8, 2026 Grok 4.5 launch. Community benchmarks consistently show Code Fast costing a fraction of full Grok 4.5 for coding sessions. Treat community cost threads as directional, not a guarantee for your repo.

Other chat-family rates (docs table)

Model Context Input / 1M Output / 1M
grok-4.3 1M $1.25 $2.50
grok-4.20-0309-reasoning 1M $1.25 $2.50
grok-4.20-0309-non-reasoning 1M $1.25 $2.50
grok-4.20-multi-agent-0309 1M $1.25 $2.50
grok-4.5 500k $2.00 $6.00

Code API: Grok Code Fast / grok-build-0.1

Per 1M tokens
Input $1.00
Cached input $0.20
Output $2.00
Context 256k

API rates from docs.x.ai model listings, checked July 2026.

Model name in docs: grok-build-0.1. Aliases include grok-code-fast-1, grok-code-fast, and dated variants. This is the SKU people mean when they search grok code fast 1.

Media & voice (summary)

Imagine and Voice have separate meters (per image / per second / per minute) on docs.x.ai models and x.ai/api. They matter for product UIs more than terminal coding agents.

Is the Grok API free? No free unlimited API. You need a console.x.ai key and a funded account. Free Grok on the consumer apps is not the same as free API tokens.

Grok CLI and how to get an API key

Two different “CLI” ideas get mixed up:

  1. Grok Build — xAI’s terminal coding agent. Install:
curl -fsSL https://x.ai/cli/install.sh | bash

Access and free-promo windows change; early beta and higher limits often tied to SuperGrok / X Premium Plus. Check x.ai/cli.

  1. API clients — call https://api.x.ai/v1 with any OpenAI-compatible SDK after you have a key.

Get a Grok API key

  1. Open console.x.ai and sign in.
  2. Create or copy an API key.
  3. Export it (never commit it):
export XAI_API_KEY="xai-..."

Minimal curl (as of July 2026 docs style):

curl -s https://api.x.ai/v1/responses \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.5",
    "input": "Explain this function and fix the bug: function median(a){a.sort();return a[a.length/2]}"
  }'

OpenAI SDK users point baseURL at https://api.x.ai/v1 and pass the same key.

Grok Code Fast 1

Grok Code Fast 1 is the product-facing name for the fast coding model family whose canonical API id is grok-build-0.1, with aliases grok-code-fast-1 / grok-code-fast.

  • Job: agentic software engineering and workflow tasks at lower cost/latency than flagship grok-4.5
  • Price: $1 input / $2 output per million tokens (cached input $0.20)
  • Context: 256k
  • When to pick it: high-turn agent loops, bulk refactors, CI helpers where “good and cheap” beats “max reasoning every step”
  • When to pick grok-4.5: harder multi-file design, tool-heavy sessions, when you want the July 2026 flagship coding model

Community “is SuperGrok worth it?” threads usually debate chat product limits, not this API line item. For pure API spend, Code Fast is the dial that keeps agent farms from lighting money on fire.

Using Grok with your coding agent

If you already run local coding agents and want Grok in that loop, SeaWork now supports a Grok Build provider so you can start and monitor those sessions from phone or desktop while the process stays on your machine. Download at /download; for the remote-control story see Claude Code remote control.

FAQ

How much is Grok? Consumer SuperGrok is commonly ~$30/mo; SuperGrok Heavy is commonly ~$300/mo list (promos happen). API is separate: e.g. grok-4.5 $2 / $6 per MTok, Code Fast $1 / $2. As of July 2026 — verify at checkout and docs.x.ai.

Is Grok API free? No. Free Grok on web/apps has chat limits. API usage requires a console key and pay-as-you-go tokens.

What is Grok Code Fast? The fast coding model (grok-build-0.1, alias grok-code-fast-1): $1 / $2 per MTok, 256k context, aimed at agentic engineering cheaper than flagship grok-4.5.

Sources

As of July 2026: