Grok 4.5 pricing
| Model / exact API ID | Variant | Input | Cached input | Output | Context | Availability |
|---|---|---|---|---|---|---|
Grok 4.5grok-4.5 | standard | $0.071749 | $0.01076235 | $0.215247 | Not published | preview |
Prices are USD per million tokens. Cached input uses the cache-read rate when a cache hit is reported.
Compare variants
| Model / exact API ID | Variant | Input | Cached input | Output | Context | Availability |
|---|---|---|---|---|---|---|
Grok 4.5grok-4.5 | standard | $0.071749 | $0.01076235 | $0.215247 | Not published | preview |
API compatibility and context
- Exact model ID
grok-4.5- Variant
- standard
- Supported API
- OpenAI-compatible Chat Completions
- Availability
- preview
- Context window
- Not published
- Maximum input
- Not published
- Maximum output
- Not published
Use Grok 4.5 through the API
Create a RouterHub account, add prepaid credits and create an API key. Set ROUTERHUB_API_KEY locally, then send a first request with the exact model ID below.
cURL
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
-H "Authorization: Bearer $ROUTERHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.5","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'Python
Install openai with pip. The examples request 256 output tokens and disable automatic retries. Check Usage after completion or a timeout before resending a paid request.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ROUTERHUB_API_KEY"],
base_url="https://routerhub.si/v1",
timeout=600.0,
max_retries=0,
)
response = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
max_tokens=256,
)
print(response.choices[0].message.content)Grok 4.5 FAQ
What is Grok 4.5?
Grok 4.5 is a xAI language model served through RouterHub using the OpenAI-compatible Chat Completions API.
How much does Grok 4.5 cost?
RouterHub charges $0.071749 input / $0.01076235 cached / $0.215247 output per million tokens. Usage is billed against your prepaid balance.
What is the Grok 4.5 context window?
Context window: Not published. Maximum input: Not published. Maximum output: Not published.
Which API does Grok 4.5 support?
Use OpenAI-compatible Chat Completions with the exact model ID grok-4.5 and your RouterHub API key.
Which variants can I compare with Grok 4.5?
Compare Grok 4.5 with the models in the RouterHub directory using token prices, API support and context window.