LiteLLMModels

Grok 4.5 API Pricing

As of October 10, 2026, Grok 4.5 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens on xAI, with cache reads at $0.30 per 1M tokens. It has a 500,000-token context window and returns up to 500,000 tokens per response.

By xAIModel ID xai/grok-4.5Prices updated Checked
Input
$2.00 / 1M tokens
Output
$6.00 / 1M tokens
Cache read
$0.30 / 1M tokens
Context window
500,000 tokens
Max output
500,000 tokens
Providers
2
Added to LiteLLM
July 9, 2026

Grok 4.5 pricing by provider

3 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readContext
xAIxai/grok-4.5$2.00$6.00$0.30500K
xAIlatest aliasxai/grok-4.5-latest$2.00$6.00$0.30500K
Perplexityperplexity/xai/grok-4.5$2.00$6.00$0.30–

Other Grok 4.5 prices on xAI

Input above 200K tokens$4.00 per 1M tokens
Output above 200K tokens$12.00 per 1M tokens
Cache read above 200K tokens$0.60 per 1M tokens

What Grok 4.5 costs in practice

1,000 requests with 2,000 input and 500 output tokens each

xAI$7.00
Perplexity$7.00

100 long-document requests with 100,000 input and 2,000 output tokens each

xAI$21.20
Perplexity$21.20

Grok 4.5 features

Use Grok 4.5 with LiteLLM

Call Grok 4.5 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="xai/grok-4.5",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: grok-4.5
    litellm_params:
      model: xai/grok-4.5
      api_key: os.environ/XAI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "grok-4.5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Grok 4.5 FAQ

How much does Grok 4.5 cost?

Grok 4.5 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens on xAI, with cache reads at $0.30 per 1M tokens. Above 200K input tokens, input costs $4.00 and output costs $12.00 per 1M tokens.

What is the context window of Grok 4.5?

Grok 4.5 has a 500,000-token context window and returns up to 500,000 tokens per response.

Which providers offer Grok 4.5?

Grok 4.5 is available from 2 providers through LiteLLM: xAI and Perplexity.

How do I call Grok 4.5 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="xai/grok-4.5", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Grok 4.5 support?

Grok 4.5 supports function calling, structured output, image input, reasoning, prompt caching and web search.

When did LiteLLM add Grok 4.5?

Grok 4.5 was added to LiteLLM's model price file on July 9, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: xAI, Perplexity.

Provider pages: xAI, Perplexity.