# Grok 3 API Pricing

As of October 10, 2026, Grok 3 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens from Oracle Cloud (OCI), the lowest of 3 providers. It has a 131,072-token context window and returns up to 131,072 tokens per response.

- Page: https://models.litellm.ai/models/grok-3
- Lab: xAI
- LiteLLM model name: `oci/xai.grok-3`
- Context window: 131,072 tokens
- Max output: 131,072 tokens
- Added to LiteLLM: May 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-3` | $3.00 | $15.00 | – | – | – | 128K |
| Azure AI Foundry | `azure_ai/grok-3` | $3.00 | $15.00 | – | – | – | – |
| Vercel AI Gateway | `vercel_ai_gateway/xai/grok-3` | $3.00 | $15.00 | – | – | – | 128K |

## Cost examples

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

- Oracle Cloud (OCI): $13.50
- Azure AI Foundry: $13.50
- Vercel AI Gateway: $13.50

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

- Oracle Cloud (OCI): $33.00
- Azure AI Foundry: $33.00
- Vercel AI Gateway: $33.00

## Features

Supported: Function calling.
Not supported: Structured output.

## Use it with LiteLLM

```python
from litellm import completion

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

## FAQ

### How much does Grok 3 cost?

Grok 3 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens from Oracle Cloud (OCI), the lowest of 3 providers.

### What is the context window of Grok 3?

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

### Which providers offer Grok 3?

Grok 3 is available from 3 providers through LiteLLM: Oracle Cloud (OCI), Azure AI Foundry and Vercel AI Gateway.

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

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

Grok 3 supports function calling. It does not support structured output.

### When did LiteLLM add Grok 3?

Grok 3 was added to LiteLLM's model price file in May 2025.

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