All modelsxAI API documentation
Grok 4.5
grok-4.5PremiumText
Grok 4.5 is a text model by xAI. Context: 256,000 tokens. Accepts images.
VisionStreamingLong context
- Context window
- 256K
- Maximum output tokens
- 32,768
Pricing
per 1M tokens
- Input / 1M
- $0.28
- Output / 1M
- $0.86
- Cache read / 1M
- $0.04
- Cache write / 1M
- $0.28
Grok 4.5 API pricing and specs
Grok 4.5 is available through the Claudexia API in the Premium channel. Model ID: grok-4.5.
Price: $0.28 per 1M input tokens and $0.86 per 1M output tokens.
Context window: 256,000 tokens.
Capabilities listed in the catalog: vision, streaming.
How to connect Grok 4.5 via API
Replace sk_cdx_... with your key from the API Keys section. The key must belong to the Premium channel.
OpenAI SDK and compatible clients (Python), base URL with /v1
from openai import OpenAI
client = OpenAI(base_url="https://api.claudexia.tech/v1", api_key="sk_cdx_...")
response = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Grok 4.5 API questions
- How much does the Grok 4.5 API cost?
- $0.28 per 1M input tokens and $0.86 per 1M output tokens in the Premium channel.
- Which base URL do I use for Grok 4.5?
- OpenAI-compatible clients: https://api.claudexia.tech/v1. Model ID: grok-4.5.
- What is the Grok 4.5 context window?
- 256,000 tokens, according to the Claudexia catalog.