Text generation / xAI
grok-4.5
Overview
Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
- Model type: Text generation
- Input: Text / Image
- Output: Text
- Endpoints: chat_completion
Tiered billing details
| Tier | Input | Output | Cache hit |
|---|---|---|---|
| Fallback tier | $0.0020/1K | $0.0060/1K | $0.0003/1K |
Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).
Code example
Call with grok-4.5 :
curl https://www.starunion.net/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"messages": [{ "role": "user", "content": "Hello" }]
}'