# Grok 4 Fast API Pricing

As of October 10, 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.

- Page: https://models.litellm.ai/models/grok-4-fast
- Lab: xAI
- LiteLLM model name: `oci/xai.grok-4-fast`
- Context window: 131,072 tokens
- Max output: 131,072 tokens
- Added to LiteLLM: September 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Oracle Cloud (OCI) | `oci/xai.grok-4-fast` | $5.00 | $25.00 | – | – | – | 128K |

## Cost examples

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

## Features

Supported: Function calling.
Not supported: Structured output.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="oci/xai.grok-4-fast",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
