Published: · Updated:
Exact ID: grok-4.7. Check access for your key using GET /v1/models; a published model does not guarantee access for every account.
Prices and billing units
| API429: published rates | Manufacturer: base Standard |
|---|---|
$0.1500 / 1,000,000 cached input tokens · Context up to 199,999 tokens inclusive $0.3000 / 1,000,000 cached input tokens · Context over 199,999 tokens $0.6000 / 1,000,000 input tokens · Context up to 199,999 tokens inclusive $1.2000 / 1,000,000 input tokens · Context over 199,999 tokens $1.8000 / 1,000,000 output tokens · Context up to 199,999 tokens inclusive $3.6000 / 1,000,000 output tokens · Context over 199,999 tokens | $2 / $6 per 1M ordinary input / output tokens Global Standard; input <200,000 tokens Manufacturer sourceChecked: Oct 24, 2026. Cache, tools and special modes are excluded from this rate pair. |
API429 catalog generated . This dates the catalog data, not the model’s addition.
Workload budget: input and output
Ordinary input and output are counted, excluding cache, tools, fees and repeated calls. This estimates spending; it does not validate whether a request is accepted. RUB results use only your entered rate; they are neither a bank quote nor a top-up amount.
Specifications and compatibility boundaries
The manufacturer specifies a shared context window of 500,000 tokens; no separate numeric text output limit is stated for its own API (specification: xAI, checked Oct 24, 2026). These are not verified effective API429 limits: the current public catalog does not publish them. Confirm the required volume and mode before migrating your workload.
API429 capabilities published for this exact ID: chat function_calling multimodal_input reasoning structured_output vision . A missing property does not mean a prohibition, but it does not establish support. Check input format, tools, JSON/schema, reasoning and streaming separately for the selected method.
Analyzing document changes: organize the input
To evaluate Grok 4.7, prepare a task involving relationships between distant parts of a document, such as comparing two versions of a technical specification. Define outcome criteria first: which obligations changed, where a conflict appeared and which conclusions require confirmation. Label the revisions explicitly and ask for references to section names. Manually check several significant conclusions against the source afterward. A large manufacturer context window allows consideration of long input but does not itself guarantee accurate references or complete analysis. If the document has appendices, check separately that they were included in the transmitted text and that part order was preserved.
What xAI released on September 21, 2026
The manufacturer lists the exact API ID grok-4.7, text and image input, text output, reasoning, function calls and structured results. Its public API release date is September 21, 2026. For a new evaluation, retain Grok 4.6 as a previous-generation control and compare identical tasks, rather than inferring quality from version numbers. In the current sources examined as of the review date, no announced Grok 4.7 retirement date was found. This is not a promise of indefinite availability. The guide’s Fast variant is available in Cursor and Grok Build; its terms cannot automatically apply to the ordinary public grok-4.7 API.
500K context and no separate text output cap
xAI documentation specifies a context window of 500,000 tokens and describes the separate text output limit as “No text output limit”. This wording does not set a numerical ceiling or mean unlimited responses through API429. Do not put an arbitrary large number into a library configuration. The public API429 client contract does not establish effective context and output limits for this ID. Before a long task, clarify the accepted volume, bound the expected result and begin with a short access check. Also account for growing history: every time appendices are included again in messages, they remain part of the new input.
The 200,000 threshold changes the whole request price
xAI’s official Global Standard rate switches at input of at least 200,000 tokens. Higher rates apply to all input and output tokens in the request, rather than only the excess. Two similarly sized documents on opposite sides of the boundary can therefore have noticeably different budgets. The public API429 catalog also separates conditions up to and including 199,999 and from 200,000. Use the selected service’s current published rates and conditions; do not derive API429 prices from manufacturer prices. The ordinary input and output calculator excludes paid server tools, cache and xAI regional surcharges. Numerical comparisons are tied to source review and apply only during the stated period.
History, cache and tools when migrating an application
The native xAI guide recommends a stable prompt_cache_key for Responses or x-grok-conv-id for Chat Completions to improve cache-hit reliability. For native Responses, it also requires encrypted reasoning items to be preserved unchanged between turns. These rules describe the manufacturer’s direct interface. The public API429 catalog lists reasoning, function_calling, structured_output, multimodal_input and vision for grok-4.7, but this does not establish support for every special xAI header, tool or cache control. Start with ordinary messages. For every additional feature, check client documentation and validate the result; a successful HTTP response alone does not confirm that every supplied parameter was applied.
Images and verifiable results instead of assumptions
Evaluate image input on specific working material, such as a labeled diagram requiring a list of contradictions with a text description. Ask the model to distinguish read labels from assumptions and identify illegible passages. Image input support does not make Grok 4.7 an image generator. For a structured response, define a schema, check field types and handle failed validation. Record full input, expected format, usage and response rejection reasons during evaluation. This helps assess suitability for your process without claims of superiority based on someone else’s incomparable test.
Three alternatives and selection criteria
Grok 4.6 is useful as a previous-generation control: preserve identical documents and compare omissions, format and retries. Include Claude Sonnet 5.5 when evaluating editorial work and code analysis against a precise requirements list. Test Gemini 4 Argon on the same mixed image and text input. All three exact IDs were published in the open API429 catalog on the review date; access under your key requires a separate check. These are evaluation candidates rather than a quality ranking or promise of interchangeable parameters. Compare Grok family prices in the existing Grok API cost guide, retaining each rate’s conditions.
Public model observations
There are no fresh observations with confirmed traffic for this model. This does not mean zero latency or prove an absence of errors.
Source: public 24-hour statistics. The mean is neither a median nor a response time guarantee; the error rate and observation window refer to the API429 service. Model quality is not measured here.
First request: curl, Python, JavaScript
Create a key, check your balance and set API429_API_KEY on the server. The generation example incurs a charge. It does not retry automatically; a timeout does not prove the operation was not charged. Inspect the content and actual usage after receiving a response. Python and JavaScript first check the available model list.
curl
Before generation, check the exact ID in the response from GET https://gateway.api429.com/v1/models using the same Bearer key.
curl --fail-with-body https://gateway.api429.com/v1/chat/completions \
-H "Authorization: Bearer $API429_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.7","messages":[{"role":"user","content":"Compare two revisions of a requirement. Before: “Retry the request on any error”. After: “Retry only temporary errors, with no more than three attempts”. Identify the behavior change, remaining ambiguities and three verifiable scenarios. Do not make requests."}],"max_tokens":512,"stream":false}'Python 3
import json
import os
import urllib.request
key = os.environ["API429_API_KEY"]
base = "https://gateway.api429.com/v1"
headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json"}
models_request = urllib.request.Request(base + "/models", headers=headers)
with urllib.request.urlopen(models_request, timeout=30) as response:
available = {item["id"] for item in json.load(response)["data"]}
model = "grok-4.7"
if model not in available:
raise ValueError("Model is unavailable to this key")
payload = json.loads("{\"model\":\"grok-4.7\",\"messages\":[{\"role\":\"user\",\"content\":\"Compare two revisions of a requirement. Before: “Retry the request on any error”. After: “Retry only temporary errors, with no more than three attempts”. Identify the behavior change, remaining ambiguities and three verifiable scenarios. Do not make requests.\"}],\"max_tokens\":512,\"stream\":false}")
request = urllib.request.Request(base + "/chat/completions",
data=json.dumps(payload).encode("utf-8"), headers=headers, method="POST")
with urllib.request.urlopen(request, timeout=60) as response:
result = json.load(response)
choice = result["choices"][0]
if choice.get("finish_reason") != "stop" or not choice.get("message", {}).get("content"):
raise ValueError("Incomplete or empty response")
print(choice["message"]["content"])
print(result.get("usage"))JavaScript: Node.js 18+
const key = process.env.API429_API_KEY;
if (!key) throw new Error("Set API429_API_KEY");
const base = "https://gateway.api429.com/v1";
const headers = { Authorization: "Bearer " + key, "Content-Type": "application/json" };
const model = "grok-4.7";
const available = await fetch(base + "/models", { headers, signal: AbortSignal.timeout(30000) });
if (!available.ok) throw new Error("Models HTTP " + available.status);
if (!(await available.json()).data.some(item => item.id === model)) throw new Error("Model unavailable to this key");
const response = await fetch(base + "/chat/completions", {
method: "POST", headers, signal: AbortSignal.timeout(60000),
body: JSON.stringify({"model":"grok-4.7","messages":[{"role":"user","content":"Compare two revisions of a requirement. Before: “Retry the request on any error”. After: “Retry only temporary errors, with no more than three attempts”. Identify the behavior change, remaining ambiguities and three verifiable scenarios. Do not make requests."}],"max_tokens":512,"stream":false})
});
if (!response.ok) throw new Error("Generation HTTP " + response.status);
const result = await response.json();
const choice = result.choices?.[0];
if (choice?.finish_reason !== "stop" || !choice?.message?.content) throw new Error("Incomplete or empty response");
console.log(choice.message.content);
console.log(result.usage);The examples use basic fields from the published API contract. They are checked offline; no successful paid execution or output accuracy is claimed.
n8n: minimal HTTP Request
- Create an HTTP Request with method POST and URL
https://gateway.api429.com/v1/chat/completions. - Store the Bearer key in credentials; add
Content-Type: application/json. Do not put the key in an exported workflow example. - Send the JSON from curl: the exact model
grok-4.7, messages, max_tokens and stream=false. - After the HTTP node, check
choices,finish_reasonand the response content before writing the result to your production system.
HTTP Request documentation. This recipe describes HTTP Request. Compatibility with specific Agent nodes, SDKs and other API methods needs separate verification.
Three models for your own comparison
These are options for a controlled comparison on the same task, rather than a quality ranking. Base rates apply to a short text request; see the catalog for full pricing.
| Model | API429: input / output per 1M tokens |
|---|---|
Deepseek V4 Prodeepseek-v4-pro | $0.396 / $1.188 |
Claude Sonnet 5.5claude-sonnet-5-5 | $0.6 / $3 |
Gemini 4 Argongemini-4-argon | $0.6 / $3 |
Version and release date
Manufacturer API release date, xAI: . Previous generation: Grok 4.6; this does not automatically replace the ID in your integration. The date of addition to API429 is unknown. Current availability is determined by the catalog and key permissions, rather than the manufacturer’s historical release date.
Frequently asked questions
Does Grok 4.7 have infinite output through API429?
No such promise is established. xAI’s wording does not set a separate text output cap, but it is not a numerical guarantee for the gateway. Clarify effective API429 limits for your required volume.
What happens to pricing at exactly 200,000 input tokens?
For xAI’s official Global Standard rate, long-context pricing already applies: higher rates cover the whole request. Public API429 conditions use the same boundary; select the appropriate rate row rather than charging a supplement only for the excess.
Can I immediately transfer all native xAI tools and cache settings?
The exact ID and public model capabilities do not establish full parameter equivalence. Verify each required mode against the API429 client contract; native xAI instructions do not replace that check.
How can I evaluate migration from Grok 4.6 without a general ranking?
Use a fixed document set, expected changes and identical response format. Compare errors, attempts and actual usage. Do not infer quality from context size or price per million tokens alone.
Sources and review
- docs.x.ai/developers/models/grok-4.7
- docs.x.ai/developers/grok-4-7
- docs.x.ai/developers/release-notes
- x.ai/news/grok-4-7
- docs.x.ai/developers/pricing
- gateway.api429.com/api/public/catalog
- gateway.api429.com/api/public/openapi.json
Editorial review: . Pricing and general calculator · Getting started · Compare the family: Grok