xAI

Grok 4

256K ctxTextImage Tools Reasoning

Released Jul 9, 2025 · 137B tokens this week · 2 providers

Overview

xAI's flagship, built around long reasoning traces and live tool use. Competitive at the top of mathematics and science evaluations and comfortable with images. Its search integration makes it useful for questions about very recent events.

reasoningacademiaagents

Providers

Reference data — not yet measured from live traffic

PROVIDERMAX OUTOUTPUT /MQUANT
xAICheapest
256K64K$3.00$15.00187ms6699.70%Full
Azure AI Foundry
131K64K$3.36$16.801,080ms5899.60%Full

Latency p50 reflects a provider’s API endpoint responsiveness — the round-trip to its API, not per-token inference time. These figures, with throughput and uptime, are reference data until the gateway aggregates its own traffic.

Price comparison

Blended $ per 1M tokens

GPT-5.2$10.94
Grok 4$12.00

Blended rate per 1M tokens, weighted one part prompt to three parts completion — roughly the shape of a chat workload. Your mix will move the number.

Call it

OpenAI-compatible — swap the base URL and go

curl https://model.cards/api/v1/chat/completions \
  -H "Authorization: Bearer $MODELCARDS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4",
    "messages": [
      { "role": "user", "content": "Summarize the tradeoffs of speculative decoding." }
    ]
  }'