SpaceXAI: Grok 4.7: AI model
Grok 4.7 is the flagship Grok model for coding, agents and knowledge work from SpaceXAI with a 500K-token context window. Reachable from inside Iran through Hormouz.
- Context window:
- 500,000 tokens
- Input:
- $2/1M tokens
- Output:
- $6/1M tokens
- Type:
- text, image
- Vision
- Tools
- Streaming
- Long context
Thinking levels: Always thinks · xhigh · high · medium · low
Grok 4.7 succeeds Grok 4.6 as the main Grok model. It was trained with a longer reinforcement-learning run focused on problems that take hours to finish, which shows in long software tasks, checking its own work and handling long context. It also drafts documents and presentations better than before, and a new safeguard stack resists jailbreaks while refusing fewer legitimate security and biology requests.
It accepts text, image and file (PDF) input and returns text, and supports tool calling, structured JSON output and streaming. It always reasons before answering, and you choose how hard it thinks with the reasoning effort setting. Grok 4.7 is commonly used for long software engineering tasks, coding agents, document and presentation drafting, and research over long context. Hormouz serves it behind an OpenAI-compatible API: point your base URL at Hormouz, drop in a Hormouz key, and existing OpenAI SDK code runs without changes.
Pricing is usage-based: $2 per million input tokens and $6 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | xAI |
|---|---|
| Type | Text, Image |
| Context window | 500,000 tokens |
| Pricing | $2.00/M in · $6.00/M out |
| API | Chat Completions |
| Capabilities | Streaming · Vision · Tools |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Design Arena
How Design Arena works ↗Metrics sourced from Design Arena
Code example
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="x-ai/grok-4.7",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "x-ai/grok-4.7",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the SpaceXAI: Grok 4.7 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches SpaceXAI: Grok 4.7 and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Grok 4.7 cost?
- Pricing is usage-based: $2 per million input tokens and $6 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use.
- How do I access Grok 4.7 from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
- Is Grok 4.7 compatible with OpenAI code?
- Yes. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
- What context window and capabilities does Grok 4.7 have?
- It has a 500K-token context window, accepts text, image and file (PDF) input, and supports tool calling, structured JSON output and streaming. It always reasons before answering, and you choose how hard it thinks with the reasoning effort setting.
- What is Grok 4.7 good for?
- Typical uses are long software engineering tasks, coding agents, document and presentation drafting, and research over long context.
Updated 2026-10-13