Grok 4.5
x-ai/grok-4.5Grok 4.5 is an xAI reasoning model for coding, agentic tasks and knowledge work, released on the xAI API in July 2026 and trained alongside Cursor. xAI emphasizes token-efficient reasoning on real engineering tasks, fast serving, and office work such as building Excel models, PowerPoint diagrams and Word documents. It accepts text and image input with configurable reasoning effort; Grok 4.6 and Grok 4.7 later succeeded it as xAI's flagship.
- Input price
- $1.50
$2.00USD / 1M tokens - Output price
- $4.50
$6.00USD / 1M tokens - Cache read
- $0.22
$0.30USD / 1M tokens - Context window
- 500K
- Max output
- 450K
Specifications
- Input
- Text, image
- Output
- Text
Try the model
Playground
Write a prompt to try this model. Usage is billed at the prices shown.
Try a prompt
Add an image (optional)
Your response will appear here
Choose an example or write a prompt, then click Run.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "x-ai/grok-4.5",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}
SANDBASE_JSON
)
printf '%s\n' "$result"Questions
FAQ
How do I call xAI Grok 4.5 through SandBase?
Create a SandBase API key, then send requests with the model ID "x-ai/grok-4.5" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.
How much does xAI Grok 4.5 cost?
$1.50 per 1M input tokens and $4.50 per 1M output tokens with the current 25% discount (list price $2 / $6), billed per request from your SandBase balance.
What is the context window of xAI Grok 4.5?
500K tokens of context, with up to 450K output tokens per response.
Which features does xAI Grok 4.5 support?
xAI Grok 4.5 supports vision (image input), reasoning, function calling, structured output. See Specifications above for the full list.
Do I need a separate xAI account?
No. One SandBase API key and balance gives you access to xAI Grok 4.5 and the other models in the catalog; you do not need to sign up with xAI separately.
