LiteLLMLiteLLM/ MODELS

Grok 4 Fast API Pricing

By xAI · 1 provideroci/xai.grok-4-fastCompare
Input / output
$5.00 / $25.00 per 1M tokens
Context
128K tokens
Max output
128K tokens

As of November 24, 2026, Grok 4 Fast costs $5.00 per 1M input tokens and $25.00 per 1M output tokens on Oracle Cloud (OCI). It has a 131,072-token context window and returns up to 131,072 tokens per response.

Prices updated Checked

Grok 4 Fast pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Grok 4 Fast prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputContext
Oracle Cloud (OCI)oci/xai.grok-4-fast$5.00$25.00128K

What Grok 4 Fast costs in practice

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

Oracle Cloud (OCI)$22.50

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

Oracle Cloud (OCI)$55.00

Grok 4 Fast cost calculator

At Oracle Cloud (OCI)'s price ($5.00 input, $25.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $175 a day, about $5,250 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0175
Per day
$175
Per month (30 days)
$5,250

Grok 4 Fast features

Input: text. Output: text.

Use Grok 4 Fast with LiteLLM

Call Grok 4 Fast 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="oci/xai.grok-4-fast",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: grok-4-fast
    litellm_params:
      model: oci/xai.grok-4-fast
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "grok-4-fast",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Grok 4 Fast FAQ

How much does Grok 4 Fast cost?

Grok 4 Fast costs $5.00 per 1M input tokens and $25.00 per 1M output tokens on Oracle Cloud (OCI).

What is the context window of Grok 4 Fast?

Grok 4 Fast has a 131,072-token context window and returns up to 131,072 tokens per response.

Which providers offer Grok 4 Fast?

Grok 4 Fast is available from Oracle Cloud (OCI) through LiteLLM, using the model name oci/xai.grok-4-fast.

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

Use the LiteLLM Python SDK with model="oci/xai.grok-4-fast", 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 Fast support?

Grok 4 Fast supports function calling. It does not support structured output.

When did LiteLLM add Grok 4 Fast?

Grok 4 Fast was added to LiteLLM's model price file in September 2025.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Oracle Cloud (OCI).

Provider pages: Oracle Cloud (OCI).