APIMaster.ai

Cheap Grok API: Get Grok 4.5–4.7 for Up to 94% Less

Get Grok API from $0.1191 input / $0.3574 output per million tokens. Compare Grok 4.5–4.7 prices with xAI and OpenRouter, estimate costs and get an API key.

GrokGrok APIGrok 4.5Grok 4.6Grok 4.7cheap AI APIAPI pricingAPIMaster

Published

Quick Answer

Get Grok 4.5, Grok 4.6 or Grok 4.7 on APIMaster from $0.1191 input / $0.3574 output per 1 million tokens—about 94% below xAI's standard $2 / $6 rates. Open the live Grok model cards, compare the three versions, then register and create an API key.

Checked 2026-11-01. Prices below are USD per 1 million tokens, input / output, for ordinary short-context text use. The active-route counts and lowest quotes come from the live marketplace; the model card is authoritative when routes or prices change.

Model ID xAI standard price Current APIMaster price Active public routes Discount Model card
grok-4.5 $2 / $6 From $0.1191 / $0.3574; up to $1.1212 / $3.3636 10 Up to about 94% off Get Grok 4.5
grok-4.6 $2 / $6 From $0.1191 / $0.3574; up to $1.1212 / $3.3636 11 Up to about 94% off Get Grok 4.6
grok-4.7 $2 / $6 From $0.1191 / $0.3574; up to $1.1212 / $3.3636 10 Up to about 94% off Get Grok 4.7

The three versions share the same lowest public route in this snapshot, but they are different model IDs and have different route counts and behavior histories. “Up to 94% off” compares ordinary input and output rates with xAI's standard short-context price; it does not promise identical latency, quotas, cache pricing or feature support.

GPT Trial(GPT-6 Astra, GPT-6 Sol, GPT-5.6, GPT-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6.1-sol, gpt-6-astra, gpt-6-sol, and gpt-6-luna available)

Sign up and claim a $20 GPT trial

Claim now

Cheap Grok API pricing: compare the same model first

The lowest quote is useful only when it is attached to the model and route you actually use. Compare both input and output, confirm whether a route is public or client-specific, and send a small request before moving production traffic.

The following prices were checked on 2026-11-01. xAI and OpenRouter rows use their public standard global token rates. APIMaster's live card remains the source of truth for its routes.

Provider / mode Grok 4.7 input / output per 1M tokens What it means APIMaster saving vs this row
APIMaster From $0.1191 / $0.3574 Live public routes; inspect the selected route —
xAI standard API $2 / $6 Direct standard token pricing About 94.04% cheaper
OpenRouter standard Grok 4.7 $2 / $6 Standard global token rates in its public catalog About 94.04% cheaper

This is a token-price comparison, not a claim that every provider has the same queue, context policy, tools or service-level terms. It excludes cache reads, long-context surcharges, tools, taxes, payment fees, top-up bonuses and negotiated enterprise rates. OpenRouter's price can change independently; check its catalog if you are comparing a specific route.

How much does a Grok API task cost?

Here are three explicit token-budget calculations using the lowest APIMaster quote in the snapshot: $0.1191256 input / $0.3573768 output per 1M tokens. These are arithmetic examples, not measured benchmark tasks or a prediction of your prompt length.

Example budget Input / billed output tokens xAI standard APIMaster from
Short answer 1,000 / 500 $0.0050 $0.00030
One multi-step coding task 100,000 / 20,000 $0.32 $0.01906
1,000 coding tasks at that budget 100,000,000 / 20,000,000 $320 $19.06

At the last usage level, the arithmetic difference is about $300.94 before cache, tools, retries or other charges. An agent can resend conversation history and tool results on every call, so count every billable request rather than only the final visible answer.

cost = uncached_input_tokens / 1,000,000 * input_rate
     + billed_output_tokens / 1,000,000 * output_rate
     + cache_and_other_charges

At a prompt length of at least 200,000 tokens, xAI's long-context rate applies to all tokens in that request: $4 input / $12 output per 1M for these three models. Its short-context cached-input rate is $0.30 for Grok 4.5 and $0.50 for 4.6/4.7; the long-context cache rates are $0.60 and $1 respectively. The official US regional endpoint adds 10% to global token rates. These are distinct billing cases, so the headline discount does not apply to all of them.

Check the selected APIMaster route's cache and long-context conditions separately; do not assume it inherits xAI's cache rates. A short last message can still produce a large bill when the conversation history is long. Include billed reasoning output where applicable, even if it is not visible in the final reply.

What is the cheapest Grok model to choose?

If you need the same model as an existing Grok 4.5, 4.6 or 4.7 workflow, keep the model ID unchanged and compare routes for that exact ID. Switching versions is a quality and compatibility decision, not an extra discount on the original model.

  • Grok 4.5: a practical choice when your integration already targets grok-4.5 or you need to preserve an older prompt and output shape.
  • Grok 4.6: compare it when you want the current 4.6 behavior or compatibility with a client that names that model explicitly.
  • Grok 4.7: the current flagship in the published model set, aimed at long-running coding and knowledge-work tasks. Use the Grok 4.7 API guide for the capability and benchmark context.

There is no universal cheapest winner among these three versions: the lowest public route is currently the same, while quality, latency, context behavior and client support can differ. This table is not an inventory of every Grok tier; xAI also lists other model families. Run the same verified task on the candidate models and compare success, retries, latency, billed tokens and total cost.

How to get a discounted Grok API key

  1. Compare the live Grok cards. Select the exact model ID and check input/output pricing, route status and protocol support.
  2. Register with APIMaster. API wallet billing is separate from a Grok app or subscription plan.
  3. Create an API key. Keep it in an environment variable and out of source control.
  4. Send a representative small request. Verify the model ID, response, usage, latency and billed amount before increasing traffic.

APIMaster exposes an OpenAI-compatible endpoint. This Python example uses your own key and lets you switch among the three model IDs with one variable:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["APIMASTER_API_KEY"],
    base_url="https://apimaster.ai/v1",
)

model = "grok-4.7"  # or grok-4.5 / grok-4.6
response = client.chat.completions.create(
    model=model,
    messages=[
        {
            "role": "user",
            "content": "Review this plan, identify two risks, and suggest a concrete next step.",
        }
    ],
)

print(response.choices[0].message.content)
print(response.usage)

The example demonstrates the integration shape; it is not a claim that this task is a benchmark or that every route exposes identical optional features. Check the selected route before using streaming, tools, structured output or very long context.

Grok API versus a Grok app subscription

An API key gives you metered access for applications, scripts, coding clients and agents. A Grok app subscription is a separate product with its own interface, limits and feature terms. Buying an app plan does not automatically create an API balance, and an API balance does not include app-only features.

For a production integration, budget from actual token usage. For interactive use in the Grok app, compare the current subscription terms. Do not convert a subscription's message allowance into a fixed number of API calls: prompts, history, tools and output length make the costs different.

How to verify a low-cost Grok route

Price alone does not prove which upstream model answered a request. Before scaling up:

  1. Check the live card for the exact model ID, route status and protocol.
  2. Send a small task whose expected result you can inspect.
  3. Record the response model, usage, latency and final charge.
  4. For a migration, run the same task set on Grok 4.5, 4.6 and 4.7 and keep the acceptance criteria fixed.

APIMaster's AI API model tester and existing Grok 4.7 versus 4.8 analysis can help with route and model checks. Grok 4.8 has no verified public route in this price check; do not replace a callable model ID with an unverified suffix.

FAQ

What is the cheapest way to use Grok 4.7?

In the 2026-11-01 snapshot, the lowest active public APIMaster route was $0.1191256 input / $0.3573768 output per 1M tokens, about 94.04% below xAI's $2 / $6 standard rate. Check the live card before use because routes and prices can change.

Is Grok 4.5 cheaper than Grok 4.7?

Not in the lowest public route checked here: both started at the same $0.1191256 / $0.3573768 quote. Their official standard token prices were also both $2 / $6. Compare the model's behavior and the selected route rather than assuming the older version is cheaper.

Does the 94% discount apply to long context and cached tokens?

Not automatically. The headline compares ordinary short-context input and output with xAI's standard rates. Long-context, cache reads, tools and other billable items can have different rules. Use the selected route's current pricing details.

Can I use the same API key for Grok 4.5, 4.6 and 4.7?

Yes, the same APIMaster key can be used with the model IDs available to your account. Set the model field explicitly and test each version before changing production traffic.

Can I use Grok API for free?

The discounted routes in this article are paid API routes. Any trial has its own eligible models and limits; the GPT trial promotion on this page does not imply free Grok access. No verified public Grok 4.8 route was found in this check; see the Grok 4.8 release-date guide for updates.

Does a cheap Grok API guarantee fewer refusals?

No. A lower token price does not establish different moderation behavior or guaranteed acceptance. Text, image and video products can have separate rules; evaluate your legitimate workload on the exact model and route you plan to use.

Sources and update date

Checked 2026-11-01: xAI pricing, OpenRouter's public catalog, Grok 4.7 provider endpoints, and APIMaster's live marketplace data. APIMaster prices are a snapshot; the model cards are authoritative at request time.

Start using Grok at a lower API cost

Compare the current Grok 4.5, Grok 4.6 and Grok 4.7 cards, then register, create an API key, and call the selected model through https://apimaster.ai/v1. Start with a small verified task and scale only after the route, quality and total bill match your needs.