Skip to content
xAICurrent

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.

TokenGate API pricing
ConditionInput tokens / 1MCached input / 1MOutput 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 monthly cost (USDT)$50.00USDT

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

TokenGate