Grok 4.5 API pricing
Previous-generation xAI model with a 500K context window for coding and agentic tasks.
How much does Grok 4.5 API cost?
Grok 4.5 costs $2.00 per 1 million input tokens and $6.00 per 1 million output tokens through TokenGate.
| Condition | Input tokens / 1M | Cached input / 1M | Output tokens / 1M |
|---|---|---|---|
| Short context | $2.00 | $0.30 | $6.00 |
| Long context (≥ 200K) | $4.00 | $0.60 | $12.00 |
- Requests with 200K context or more use higher long-context pricing.
Estimate Grok 4.5 API cost
Estimated TokenGate cost, denominated in USDT.
Use Grok 4.5 with the OpenAI SDK
curl https://api.tokengate.com/v1/chat/completions \
-H "Authorization: Bearer $TOKENGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.5","messages":[{"role":"user","content":"Hello"}]}'Change the model identifier to use another supported model through the same TokenGate integration.
Model specifications
- Provider
- xAI
- API model identifier
- grok-4.5
- Generation
- 4.5
- Provider lifecycle
- Active
- Context window
- 500K
- Input modalities
- Text, Image
- Output modalities
- Text
- Capabilities
- Function calling, Structured outputs, Vision, Tool use
Best for
- Coding
- Agents
- Knowledge work
Access Grok 4.5 through TokenGate
Use supported models through a single TokenGate integration.
- · One API integration
- · OpenAI-compatible interface
- · Payment in USDT
Frequently asked questions
Related models
Grok 4.6
xAI's current flagship model for coding, agentic tasks, tool use and general knowledge work.
- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Context
- 500K
- Generation
- 4.6
Function calling · Structured outputs · Vision
Grok 4.6 API pricingClaude Opus 4.8
Previous-generation Opus model for advanced coding, agents and professional knowledge work.
- Input / 1M
- $5.00
- Output / 1M
- $25.00
- Context
- —
- Generation
- 4.8
Streaming · Function calling · Vision
Claude Opus 4.8 API pricingClaude Sonnet 4.6
Previous-generation Sonnet model with strong coding, agent planning, computer-use and long-context capabilities.
- Input / 1M
- $3.00
- Output / 1M
- $15.00
- Context
- 1M
- Generation
- 4.6
Streaming · Function calling · Vision
Claude Sonnet 4.6 API pricingTokenGate
