# Grok 3 Mini API Pricing

As of October 10, 2026, Grok 3 Mini costs $0.25 per 1M input tokens and $1.27 per 1M output tokens from Azure AI Foundry, 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-mini
- Lab: xAI
- LiteLLM model name: `azure_ai/grok-3-mini`
- Context window: 131,072 tokens
- Max output: 131,072 tokens
- Added to LiteLLM: June 2025
- Deprecation date: May 1, 2026
- 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 |
|---|---|---|---|---|---|---|---|
| Azure AI Foundry | `azure_ai/grok-3-mini` | $0.25 | $1.27 | – | – | – | – |
| Oracle Cloud (OCI) | `oci/xai.grok-3-mini` | $0.30 | $0.50 | – | – | – | 128K |
| Vercel AI Gateway | `vercel_ai_gateway/xai/grok-3-mini` | $0.30 | $0.50 | – | – | – | 128K |

## Cost examples

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

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

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

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

## Features

Supported: Function calling.

## Use it with LiteLLM

```python
from litellm import completion

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

## FAQ

### How much does Grok 3 Mini cost?

Grok 3 Mini costs $0.25 per 1M input tokens and $1.27 per 1M output tokens from Azure AI Foundry, the lowest of 3 providers.

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

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

### Which providers offer Grok 3 Mini?

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

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

Use the LiteLLM Python SDK with model="azure_ai/grok-3-mini", 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 Mini support?

Grok 3 Mini supports function calling.

### When did LiteLLM add Grok 3 Mini?

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

### Is Grok 3 Mini being deprecated?

Azure AI Foundry deprecated azure_ai/grok-3-mini on May 1, 2026.

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