Models and current API429 rates
These are exact text model IDs for this family. The public catalog and GET /v1/models for your key answer different questions: a published entry does not prove account access. Preserve hyphens, dots and versions exactly.
| Model / exact ID | API429: USD and billing units |
|---|---|
Grok 4.7grok-4.7 | $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 |
Catalog data date: . Rates retain their catalog conditions; an absent row does not mean a free request.
Example budget for grok-4.7: 1,000 requests with 2,000 ordinary input and 500 output tokens each cost approximately $2.100000. This ordinary text token estimate excludes cache, tools, retries and additional fees. It is not a complete bill or evidence of accepted requests.
Family pricing and calculator · Full catalog
Separate verifiable text tasks from live search assumptions
Evaluate Grok with inputs you can verify directly, such as a short specification, a code change or a set of statements with known evidence. If your scenario depends on dated facts, include the reference date and the source text in the request. The Grok family name alone does not prove that a request through API429 runs live web search or reads social network posts. Check which conclusions follow from the supplied text and which assertions require external confirmation before your application accepts the answer.
Keep grok-4.7 text requests separate from Grok image models
The xAI family covers distinct tasks and request contracts. Selecting the text model grok-4.7 for POST /v1/chat/completions does not configure image generation, which uses separate catalog entries such as grok-imagine-image-pro and dedicated image methods. Likewise, manufacturer notes about reasoning, vision or structured outputs on native xAI endpoints do not guarantee that every optional parameter works identically in your client. Start with the documented ordinary text request and verify any additional capability individually against the API429 contract.
Validate a small request before expanding the workload
Start with an artificial example that contains no customer secrets. Store the API429 key on your server and keep it out of source control, browser bundles and shared logs. Check the exact identifier grok-4.7 in GET /v1/models with that same key before sending a paid request. A public catalog entry describes published inventory; it does not establish access for every account. Preserve punctuation and version numbers exactly, because a similar display name is not evidence that two identifiers are interchangeable.
Measure an accepted result on argument and code checks
Use a small evaluation set with explicit acceptance rules, such as separating supported facts from assumptions or identifying an edge case in a proposed patch. Inspect HTTP status, finish_reason, returned text and actual token usage rather than treating a 200 status as a complete business outcome. Include contradictory inputs and responses that stop early. Your application should set a bounded retry budget and route ambiguous outputs to manual review, because repeated attempts and long conversation history increase total consumption.
Check catalog conditions and dedicated pricing guides
The table uses fresh, unambiguous API429 public catalog rates when available, and hidden cells indicate unconfirmed rates rather than free usage. Because long conversation history can cross prompt_tokens thresholds in catalog rate cards, evaluate the full message array sent on each turn. Follow the Grok API pricing guide for text token comparisons and the Grok image pricing guide for image generation budgets. Never substitute native xAI quotations for your active API429 rate card.
Choose your next connection step
- Grok image pricing
Compare Grok image generation billing units and model options separately from the grok-4.7 text request covered on this page.
First text request: curl, Python, JavaScript
- Create a key in your API429 account and add balance by Russian bank card, a business invoice, USDT or TON. A $10 test balance is available for subscribing to the Telegram channel through the bonus bot.
- Use the same key to verify
grok-4.7inGET https://gateway.api429.com/v1/models. - Set
API429_API_KEYon the server and send a small paid request. The example does not retry automatically. - Inspect HTTP status,
finish_reason, text and actualusage. A timeout does not prove that the operation was unbilled.
The example uses only ordinary text Chat Completions with max_tokens=512. It does not verify native manufacturer methods, tools, reasoning, vision or manufacturer limits through API429. Python and JavaScript check key access before generation; check the model list separately for curl.
curl
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":"Explain the purpose of HTTP 429 in one sentence."}],"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\":\"Explain the purpose of HTTP 429 in one sentence.\"}],\"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":"Explain the purpose of HTTP 429 in one sentence."}],"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);These examples do not prove access for your key; verify the exact ID before a paid request. API contract · Configure your client · Questions and support
Payment and a $10 test
- Russian bank card. Top up your balance in the account.
- Invoice for companies. Bank transfer with closing documents.
- USDT and TON. Top up in crypto.
$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot
Frequently asked questions
Does grok-4.7 include live web search by default?
No. The model name does not prove live search or social feed access through API429. Pass the required reference facts in your prompt and check the documented contract for any search capability.
Can I generate images with grok-4.7 in Chat Completions?
No. Text chat and image generation use separate models and endpoints. Check the exact image model such as grok-imagine-image-pro and follow the dedicated Grok image pricing guide.
Does the public catalog prove access for my API429 key?
No. Always verify that grok-4.7 appears in GET /v1/models for your own API429 key before running a paid request or deploying a client configuration.
How should I budget for multi-turn Grok conversations?
Include the entire message history, output tokens and retries for accepted answers. Check the active API429 catalog card for prompt size conditions rather than relying on a single static rate.
Sources and editorial review
Manufacturer documentation describes its family and its own API rules. API429 IDs, rates and request contracts require separate catalog and documentation checks. The original source-review date below is retained; English publication does not renew the source review.
- API429 public catalog
- API429 public request contract
- xAI documentation: Grok 4.7 model
- xAI documentation: Grok 4.7 developer guide
- xAI documentation: API release notes
Source review: . To connect, create an API429 account and follow the quickstart instructions.