grok-4.5· Released Jul 8, 2026
x-ai/grok-4.5
Grok 4.5 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.
Input
From$1.65/M
Output
From$4.95/M
Context
Up to 500K
Max output
—
Modalities
TextImageFileTextInput and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.
Upstreams & pricing
| Upstream | Context | Max output | Input $/1M | Output $/1M | Cached input $/1M |
|---|---|---|---|---|---|
Zenlayer AI Gateway-openai_compat (Global)From price | 500K | — | $1.65 | $4.95 | $0.4125 |
Routed in real time — you pay the listed price of whichever upstream serves your call.
How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
-H "Authorization: Bearer $TX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.5",
"messages": [
{"role": "user", "content": "Say hello in five words."}
]
}'