Grok 4.7
Grok logo

Grok 4.7

grok-4.7llms.txt
Grok
New
Grok 4.7 is xAI’s flagship model for coding, agentic tasks, and professional knowledge work. Compared with Grok 4.6, it uses a larger base model and longer reinforcement-learning training, improving long-horizon task execution, self-verification, context management, and document and presentation creation.

Pricing

TierPricingCache Read
Input<=200K
$2.2$6.6
$0.55/M tokens
200K<Input
$4.4$13.2
$1.1/M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Context length

  • 500K tokens

Providers

Grok grok-4.7
Pricing$2.2$6.6
Cache Read$0.55/M tokens
Pricing$4.4$13.2
Cache Read$1.1/M tokens
Context500K
Max output0
Latency1.4S
Throughput15.1TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
100.00% uptime today

Performance for grok-4.7

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="grok-4.7",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

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

Frequently asked questions

What is Grok 4.7?

Grok 4.7 is xAI’s flagship model for coding, agentic tasks, and professional knowledge work. Compared with Grok 4.6, it uses a larger base model and longer reinforcement-learning training, improving long-horizon task execution, self-verification, context management, and document and presentation creation.