LiteLLMModels

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.

By OpenAIModel ID gpt-4.1Prices updated Checked
Input
$2.00 / 1M tokens
Output
$8.00 / 1M tokens
Cache read
$0.50 / 1M tokens
Context window
1,047,576 tokens
Max output
32,768 tokens
Providers
6
Added to LiteLLM
April 2025

GPT-4.1 pricing by provider

13 listings across 6 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
OpenAIgpt-4.1$2.00$8.00$0.50–$1.00$4.001M
OpenAIsnapshot 2025-04-14gpt-4.1-2025-04-14$2.00$8.00$0.50–$1.00$4.001M
OpenAIfine-tuned, snapshot 2025-04-14ft:gpt-4.1-2025-04-14$3.00$12.00$0.75–$1.50$6.001M
Azure OpenAIazure/gpt-4.1$2.00$8.00$0.50–$1.00$4.001M
Azure OpenAIsnapshot 2025-04-14azure/gpt-4.1-2025-04-14$2.00$8.00$0.50–$1.00$4.001M
GitHub Copilotgithub_copilot/gpt-4.1––––––128K
GitHub Copilotsnapshot 2025-04-14github_copilot/gpt-4.1-2025-04-14––––––128K
Replicatereplicate/openai/gpt-4.1$2.00$8.00–––––
Snowflake Cortexsnowflake/openai-gpt-4.1$2.00$8.00$0.50–––300K
Vercel AI Gatewayvercel_ai_gateway/openai/gpt-4.1$2.00$8.00$0.50$0––1M
Azure OpenAIeuazure/eu/gpt-4.1$2.20$8.80$0.55–$1.10$4.40–
Azure OpenAIusazure/us/gpt-4.1$2.20$8.80$0.55–$1.10$4.40–
Azure OpenAIus, snapshot 2025-04-14azure/us/gpt-4.1-2025-04-14$2.20$8.80$0.55–$1.10$4.401M

Other GPT-4.1 prices on OpenAI

Priority input$3.50 per 1M tokens
Priority output$14.00 per 1M tokens
Web search$25.00 per 1K searches

What GPT-4.1 costs in practice

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

GPT-4.1 features

Input: text, image. Output: text.

Use GPT-4.1 with LiteLLM

Call GPT-4.1 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="gpt-4.1",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gpt-4.1
    litellm_params:
      model: gpt-4.1
      api_key: os.environ/OPENAI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "gpt-4.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GPT-4.1 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.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: OpenAI, Azure OpenAI, GitHub Copilot, Replicate, Snowflake Cortex, Vercel AI Gateway.

Provider pages: OpenAI, Azure OpenAI, GitHub Copilot, Replicate, Snowflake Cortex, Vercel AI Gateway.