# GPT-4.1 API Pricing

As of October 10, 2026, GPT-4.1 costs $2.00 per 1M input tokens and $8.00 per 1M output tokens on OpenAI, with cache reads at $0.50 per 1M tokens. It has a 1,047,576-token context window and returns up to 32,768 tokens per response.

- Page: https://models.litellm.ai/models/gpt-4.1
- Lab: OpenAI
- LiteLLM model name: `gpt-4.1`
- Context window: 1,047,576 tokens
- Max output: 32,768 tokens
- Added to LiteLLM: April 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 |
|---|---|---|---|---|---|---|---|
| OpenAI | `gpt-4.1` | $2.00 | $8.00 | $0.50 | – | – | 1M |
| OpenAI (snapshot 2025-04-14) | `gpt-4.1-2025-04-14` | $2.00 | $8.00 | $0.50 | – | – | 1M |
| OpenAI (fine-tuned, snapshot 2025-04-14) | `ft:gpt-4.1-2025-04-14` | $3.00 | $12.00 | $0.75 | – | – | 1M |
| Azure OpenAI | `azure/gpt-4.1` | $2.00 | $8.00 | $0.50 | – | – | 1M |
| Azure OpenAI (snapshot 2025-04-14) | `azure/gpt-4.1-2025-04-14` | $2.00 | $8.00 | $0.50 | – | – | 1M |
| GitHub Copilot | `github_copilot/gpt-4.1` | – | – | – | – | – | 128K |
| GitHub Copilot (snapshot 2025-04-14) | `github_copilot/gpt-4.1-2025-04-14` | – | – | – | – | – | 128K |
| Replicate | `replicate/openai/gpt-4.1` | $2.00 | $8.00 | – | – | – | – |
| Snowflake Cortex | `snowflake/openai-gpt-4.1` | $2.00 | $8.00 | $0.50 | – | – | 300K |
| Vercel AI Gateway | `vercel_ai_gateway/openai/gpt-4.1` | $2.00 | $8.00 | $0.50 | – | – | 1M |
| Azure OpenAI (eu) | `azure/eu/gpt-4.1` | $2.20 | $8.80 | $0.55 | – | – | – |
| Azure OpenAI (us) | `azure/us/gpt-4.1` | $2.20 | $8.80 | $0.55 | – | – | – |
| Azure OpenAI (us, snapshot 2025-04-14) | `azure/us/gpt-4.1-2025-04-14` | $2.20 | $8.80 | $0.55 | – | – | 1M |

## Cost examples

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

- OpenAI: $8.00
- Azure OpenAI: $8.00
- Replicate: $8.00
- Snowflake Cortex: $8.00
- OpenAI batch: $4.00

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

- OpenAI: $21.60
- Azure OpenAI: $21.60
- Replicate: $21.60
- Snowflake Cortex: $21.60

## Features

Supported: Function calling, Parallel tool calls, Structured output, Image input, PDF input, Prompt caching, Web search.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="gpt-4.1",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does GPT-4.1 cost?

GPT-4.1 costs $2.00 per 1M input tokens and $8.00 per 1M output tokens on OpenAI, with cache reads at $0.50 per 1M tokens. Batch requests cost $1.00 per 1M input tokens and $4.00 per 1M output tokens.

### What is the context window of GPT-4.1?

GPT-4.1 has a 1,047,576-token context window and returns up to 32,768 tokens per response.

### Which providers offer GPT-4.1?

GPT-4.1 is available from 6 providers through LiteLLM: OpenAI, Azure OpenAI, GitHub Copilot, Replicate, Snowflake Cortex and Vercel AI Gateway.

### How do I call GPT-4.1 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="gpt-4.1", 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 GPT-4.1 support?

GPT-4.1 supports function calling, parallel tool calls, structured output, image input, PDF input, prompt caching and web search.

### When did LiteLLM add GPT-4.1?

GPT-4.1 was added to LiteLLM's model price file in April 2025.

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