← All models
Grok 4.7
x-ai/grok-4.7
xAI's flagship for coding, agentic tool calling and knowledge work, with configurable reasoning effort.
Context
500K
Input
$2/M
Output
$6/M
Released
—
Prompts of 200K tokens or more: $4 in / $12 out.
Price source: docs.x.ai · list price checked Oct 2026
textimagexAI
Use this model
from openai import OpenAI
client = OpenAI(base_url="https://magicai.lol/v1", api_key="<MAGICAI_API_KEY>")
resp = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Performance
Latency (TTFT)
— (collecting)
Throughput
— (collecting)
Uptime
— (collecting)
Live performance stats appear once the model has traffic on MagicAI. Prices shown are catalog list prices and may differ from final gateway pricing.