Grok 4
Grok logo

Grok 4

grok-4llms.txt
Grok
Grok, their latest and greatest flagship model, offers unparalleled performance in natural language, math, and reasoning – the perfect jack of all trades. The current pointing model version is grok-4-0709.

Pricing

  • Input Tokens: $3.300 /M tokens
  • Output Tokens: $16.500 /M tokens
  • Cache Read: $0.825 /M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tool calling
  • Structured outputs

Providers

Azure grok-4
Pricing$3.300$16.500
Cache$0.825
Context256K
Max output64K
Latency2.7S
Throughput54.5TPS
Uptime
0.00% uptime 3 days ago
0.00% uptime 2 days ago
0.00% uptime yesterday
Grok grok-4
Pricing$3.300$16.500
Cache$0.825
Context256K
Max output64K
Latency9.2S
Throughput34.0TPS
Uptime
0.00% uptime 3 days ago
0.00% uptime 2 days ago
0.00% uptime yesterday

Performance for grok-4

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",
    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?

Grok, their latest and greatest flagship model, offers unparalleled performance in natural language, math, and reasoning – the perfect jack of all trades. The current pointing model version is grok-4-0709.