Pricing+7% bonus
Contact sales

xAI Grok on GPTProto

Grok API pricing: pay 10-30% below xAI list

Grok 4.7, 4.6, 4.5, 4.3 and 4.1 Fast on the endpoint your OpenAI SDK already points at. Same request shape, same key, billed per token with no subscription attached.

Get my API key

Registration required · Pay as you go · Top up from $10

xAI list, Grok 4.7

$2.00 / $6.00

Input and output per million tokens. Cached input reads bill at $0.50.

GPTProto multiplier

10-30% below

Applied per model on the same list price. Not a coupon you redeem later.

First top-up

$10 to $10.15

A 1.5% bonus lands as credit, so the same card buys slightly more tokens.

Grok API pricing at a glance: three lines on every bill

The headline rate covers one of three charges. Tool invocations and the long-context tier each add their own line, and both are easy to miss.

01 TOKENS

Input, output and cache reads

Every request bills input at the model's per-million rate and output at a higher one. Grok 4.7 charges $2.00 in and $6.00 out, with cached input at $0.50.

Unit: per 1M tokens

02 TOOL CALLS

Server-side tools, priced per call

Search, code execution and file handling run on xAI's side. Each invocation is metered separately from the tokens in the same request, so an agent loop pays twice.

Unit: per invocation

03 TIER

Long context and priority processing

Prompts past 200K tokens move to a higher rate card. Priority processing adds a premium on top of whatever tier the request already sits in.

Trigger: prompt length

A quote built on the token line alone will look 20% light once an agent workload runs for a week. Grok API pricing only makes sense when all three lines sit in the same spreadsheet, at the same daily volume.

Grok API pricing per million tokens, model by model

Published xAI list rates for the current text models, before any platform discount. Cached input reads bill below the fresh input rate.

Model Input / 1M Output / 1M What the rate buys
grok-4.7 $2.00 $6.00 Flagship reasoning and coding, 500K window, $0.50 cached input
grok-4.6 $2.00 $6.00 Holds 4.7's rates, same 200K tier break, one generation back
grok-4.5 $2.00 $6.00 500K context at the same headline rate, useful as a fallback
grok-4.3 $1.25 $2.50 Cheapest general text model in the catalog, half the output rate
grok-4.1 Fast $0.20 - 2M context for high-volume classification and extraction
grok-code-fast-1 $0.20 - 256K context tuned for coding agents and edit loops

Grok 3 has left the endpoint and last listed at $3.00 in and $15.00 out. A dash means the source we compared did not publish an output rate, so we do not guess at one. The platform discount is subtracted from these same published numbers, never from a rounded-up figure.

Server-side tool calls are a second line item

xAI publishes tool rates in a table separate from text tokens. A tool call is metered per invocation, whether or not the model then writes a long answer.

Billed with the token line

  • Input tokens, including the system prompt and every prior turn you resend
  • Output tokens, including reasoning the model emits before its answer
  • Cached input reads, charged at $0.50 per million on Grok 4.7
  • Reasoning tokens, which bill as output even when the interface never shows them

Billed on its own line

  • Server-side tool invocations, counted per call rather than per request
  • File and collection storage, priced apart from the tokens in the file
  • Priority processing, a premium applied on top of the current tier
  • Image and video generation calls, priced per output rather than per text token

If a reply fires three tool calls, the bill carries three tool line items plus the tokens for the whole exchange. Cap calls per turn at one until your own logs say a second call earns its price.

Above 200K prompt tokens the rate doubles

Grok 4.7 and 4.6 bill $2.00 and $6.00 up to 200K prompt tokens, then $4.00 and $12.00 for a longer request carrying the same task.

UNDER 200K OVER 200K $2.00 in / $6.00 out $4.00 in / $12.00 out 0 200K

The window itself is 500K tokens, so the tier break sits well inside the limit. Two identical questions can differ 2x in price because one caller pasted a 260K log, which is the most common grok api pricing surprise we see.

What 1,000 replies a day costs on Grok 4.7

A 2,000-token prompt and a 500-token answer cost $0.0070 at list. That is $7.00 a day, or $210 across a 30-day month, before tools.

Workload xAI list 10% below 30% below
One reply (2K in / 500 out) $0.0070 $0.0063 $0.0049
1,000 replies per day $7.00 $6.30 $4.90
30 days, same volume $210 $189 $147

The two right columns are the band GPTProto bills against the same model: 10% to 30% under list, decided per model rather than per invoice. That band is where grok api pricing lands in practice, and your own traffic mix settles somewhere inside it.

Grok API pricing vs a SuperGrok subscription

A subscription buys a seat with fixed limits. The API buys tokens with no seat and no ceiling. Pick the ledger that matches who consumes it.

Question Consumer subscription API key
Who it fits One person working in a chat window An app, agent or script calling on behalf of many users
What you pay for A flat monthly fee, whatever you use Tokens and tool calls, only when they are consumed
Heavy day Hits a usage ceiling, then waits Keeps billing at the same per-token rate
Quiet month Same fee as a busy one Close to zero if nothing runs
What it cannot do Embed in a product or script Give a human a chat seat

Most teams end up paying both: a seat for the person, a key for the product. The mistake is sizing the product budget off a seat's flat fee, because only the API ledger moves when traffic doubles.

Cheapest Grok model that still does the job

Routing by task is the largest lever on a Grok bill. The gap between grok-4.7 and grok-4.1 Fast is ten times on input tokens.

Task Model to call Why it wins
Tagging, extraction, short classification grok-4.1 Fast $0.20 per million input and a 2M window, so long batches never tier up
Code edits inside an agent loop grok-code-fast-1 Same $0.20 input rate with a 256K window sized for repo context
Support replies with long history grok-4.3 $1.25 in and $2.50 out, roughly 60% of 4.7's cost on a short call
Bulk summarisation of long transcripts grok-4.3 Half of 4.7's output rate, and the model where a 200K ceiling bites first
Multi-step reasoning and hard agents grok-4.7 Where a cheaper model's retries cost more than the rate it saved

Test the switch on a fixed eval set before you route production traffic. A model that fails 5% more often can erase the 10x it looked like it offered, and Grok API pricing math only holds while the pass rate holds.

Why Grok bills surprise teams in month two

Three patterns show up in almost every Grok bill that outgrows its forecast. None of them is a price change.

The agent retries a tool four times before it answers

A search that returns nothing gets called again, then again, and each attempt is a separate invocation. The token line barely moves while the tool line triples, and nobody notices until the invoice.

A 240K contract crosses the 200K line on every call

The document is attached once and resent on all eleven follow-up questions. Every one of them bills at $4.00 and $12.00 instead of $2.00 and $6.00, for the same answer quality.

Half the prompt is history the model already read

A chat feature resends the full transcript each turn. Without cache reads at $0.50 per million, the same paragraphs get charged as fresh input a dozen times a session.

None of these need a code rewrite. Each needs one number on a dashboard: calls per turn, prompt tokens per request, cache hit share.

How to cut grok api pricing in 3 steps

The order matters: route first, then trim context, then cache. Done the other way round, you optimise a model you should not have been calling.

  1. Send each task to the cheapest model that passes

    Run your eval set against grok-4.1 Fast and grok-4.3 before defaulting everything to 4.7. You leave with a routing table that names a model per task, and a measured pass rate for each.

  2. Keep prompts under the 200K tier break

    Trim retrieved chunks, summarise older turns, and cap what a single request may carry. You leave with a request size that stays on the $2.00 rate instead of jumping to $4.00.

  3. Move repeated context into cached reads

    Put the stable system prompt and reference docs first and reuse them across calls. Cached input bills at $0.50 per million on Grok 4.7, a quarter of the fresh rate.

One more pass is worth it: cap tool calls per turn. It is the only lever that touches the second line item instead of the first, and the only one that moves grok api pricing without touching answer quality.

One key, 200+ models, one invoice

GPTProto carries Grok beside the Claude and OpenAI families, so changing a route is a model string, not a new contract and a new SDK.

COMPATIBLE

Same endpoint, same key

Point the OpenAI SDK at one base URL and swap the model name. Grok, Claude and OpenAI models answer through the same request shape and the same credential, so a fallback costs one line of config.

No second SDK

CATALOG

200+ models on one balance

One top-up covers every model on the key, text and image alike. You stop forecasting four vendors separately and reconciling four invoices at month end, and one balance shows which model actually ate the budget.

One ledger

OPERATIONS

Failover without a second integration

Grok sits next to the other families under one key, so a model that stops answering is a routing change rather than an outage. High uptime and auto-failover keep the call served, with no second contract to negotiate.

Same credential

Registration is required before the first call: create an account, top up, then copy the key into the client you already have.

Simple pricing — pay per call, no subscription

Top up once, then spend the balance against any model on the key. There is no monthly plan and no seat count to size before you start.

Starter

$10

1.5% bonus · $10.15 credited

The test-drive tier. Enough to run the eval set in the step above and price one real workload before you commit a budget.

$10.15 usable credit

Standard

$20

2.5% bonus · $20.50 credited

The tier most teams sit on while a feature is in production. Same per-token rates as the other tiers, a larger bonus on the same card, and no change to how grok api pricing is metered.

$20.50 usable credit

Volume

$500

10% bonus · $550 credited

For a workload already running daily. The bonus is the largest of the three, and it stacks on top of the model discount rather than replacing it.

$550 usable credit

The bonus is credit, not a coupon: it spends against Grok, Claude and OpenAI models at the same per-token rates. No subscription is created by a top-up.

What early teams say after switching

Three early users, quoted without composite scores or logo walls. Names are shortened at their request; the workloads are described as they run.

"We were calling xAI directly and keeping a second SDK just for Grok. Moving the triage worker onto the same key as our Claude calls cut the integration to a model string, and the monthly line for the same reply volume came down. We stopped guessing which vendor was cheaper and started reading one number."

Priya N.Backend lead · 4 months on GPTProto · previously a direct xAI key

"Our agent was firing search on every turn out of habit. We capped it at two calls per turn and moved the summariser to grok-4.3. The tool line stopped growing faster than the token line, which was the whole problem. Two weeks of logs were enough to see it."

Marcus D.Founder, two-person startup · 6 months · previously per-vendor billing

"Contract review with 300K-token files used to double our rate on every follow-up question. We now trim to the relevant clauses before the call, and the same review stays on the cheaper tier without losing an answer we cared about. Trimming took a week to get right."

Elena R.Legal ops engineer · 3 months · previously a self-hosted gateway

Frequently Asked Questions

The five questions that come up before a first top-up, answered in the order billing actually hits.

How much does the Grok API cost per million tokens?

Grok 4.7 lists at $2.00 per million input tokens and $6.00 per million output tokens, with cached input at $0.50. Grok 4.3 is the cheaper general model at $1.25 and $2.50, and grok-4.1 Fast starts at $0.20 input.

Is grok api pricing cheaper on GPTProto than on xAI?

Yes. GPTProto bills every model at 10-30% below the official list price, and the exact figure is set per model rather than per invoice. The discount applies to the same token rates xAI publishes, not to a repackaged credit system.

Do I need a subscription to use the Grok API?

No. Access is pay as you go, billed per token and per tool call, with no monthly plan attached. A Flex subscription exists for the Claude and OpenAI families only, and you do not need it to call Grok.

What happens above 200K prompt tokens?

The request moves to a higher tier: Grok 4.7 bills $4.00 input and $12.00 output per million instead of $2.00 and $6.00. The context window itself is 500K, so trimming a prompt to stay under 200K is the cheapest fix available.

Do I need to register before I can call a model?

Yes, an account is required. You register, top up from $10, and copy the key into the OpenAI-compatible client you already use. The first top-up credits a 1.5% bonus, so $10 arrives as $10.15 of usable balance.

Pay 10-30% less for the same Grok tokens

Grok 4.7, 4.6, 4.5, 4.3 and 4.1 Fast on the endpoint your SDK already calls. Register, top up from $10, and the first request is a model string away.

Get my API key

Registration required · No subscription · Top up from $10