Home / Model Explorer / Grok 4.5
Grok 4.5 API
xAI Previous-Generation Flagship · 1M Context
Overview
About this model
xAI Previous-generation flagship reasoning model: strong deep thinking and multi-step reasoning, native tool calling, and 1M long context. Note: when the context exceeds 200k tokens, the entire request (input, output, and cache) is billed at double the rate.
Capabilities
Capability matrix
Pricing and groups
Routes and pricing
Support grok4.6 (context >200k generates long-context double billing, please control the context reasonably)
Input
$0.32 / 1M
Output
$0.96 / 1M
Cache read
$0.048 / 1M
Cache write
—
Prices in USD per 1M tokens. Rates follow provider adjustments; live prices in Model Explorer as the reference.
Snapshot: 2026-10-07 23:09. Availability reflects active probes over the past 24 hours; performance reflects actual calls.
API
Integration example
All models share one OpenAI-compatible endpoint. To switch models, change the model field. One key accesses every model.
# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.yomiapi.com/v1",
api_key="sk-your-yomi-key",
)
resp = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)curl https://api.yomiapi.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-yomi-key" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"messages": [{"role": "user", "content": "Hello"}]
}'Connect to Grok 4.5 now
Receive credits on registration, access every model with one key, and connect through low-latency global nodes.
Get a free API key
Yomi API