GPT-4.1 API pricing

OpenAI charges $2 per million input tokens and $8 per million output tokens for GPT-4.1 (gpt-4.1), and $0.5 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.006, or $0.003 through the batch API.

Prices updated November 3, 2026
Input / 1M tokens
$2
Output / 1M tokens
$8
Cached input / 1M tokens
$0.5
Typical request
$0.006
Calculate the cost of your prompt →

GPT-4.1 price per million tokens

Token typeStandardBatch API
Input$2$1
Cached input$0.5–
Output$8$4

API model id: gpt-4.1. GPT-4.1 supports a 1.05M-token context window, up to 32.8K output tokens, image input and tool calling.

What GPT-4.1 costs per request

Request1 request1,000 requests1M requests
Short chat message (300 in, 200 out)$0.0022$2.20$2,200.00
Typical request (1K in, 500 out)$0.006$6.00$6,000.00
Long document summary (20K in, 1K out)$0.048$48.00$48,000.00
Coding agent step (50K in, 2K out)$0.12$116.00$116,000.00

At standard rates. A token is about 4 characters of English text, so 1,000 tokens is roughly 750 words.

How GPT-4.1 compares

Models with a similar price

ModelProviderInput / 1MCached input / 1MOutput / 1MTypical request
Mistral MediumMistral$1.5$0.15$7.5$0.00525
o3OpenAI$2$0.5$8$0.006
Gemini 3.5 FlashGoogle Gemini$1.5$0.15$9$0.006
Gemini Omni 1.1 FlashGoogle Gemini$1.5–$9$0.006
GPT-5OpenAI$1.25$0.125$10$0.00625
GPT-5.1OpenAI$1.25$0.125$10$0.00625
Gemini 2.5 ProGoogle Gemini$1.25$0.125$10$0.00625
GPT-6 SolOpenAI$2$0.2$10$0.007

Other OpenAI models

Every OpenAI model side by side, with batch, caching and long-context prices: OpenAI API pricing. Ways to pay less: batch API, prompt caching, the cheapest models.

Questions and answers

How much does the GPT-4.1 API cost?

OpenAI charges $2 per million input tokens and $8 per million output tokens for GPT-4.1 (gpt-4.1), and $0.5 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.006, or $0.003 through the batch API.

Is there a cheaper way to use GPT-4.1?

Yes. The OpenAI batch API runs requests within 24 hours for $1 per million input tokens and $4 per million output tokens. Prompt caching lowers the price of repeated input to $0.5 per million tokens.

What is the context window of GPT-4.1?

GPT-4.1 accepts up to 1,047,576 input tokens, roughly 786,000 words of English, and writes up to 32,768 output tokens per response. Filling the whole context window once costs $2.10 in input tokens.

Is GPT-4.1 cheaper than Claude Sonnet 5?

Yes. Claude Sonnet 5 from Anthropic costs $2 input and $10 output per million tokens, so a typical request is $0.007: 1.2× the price of GPT-4.1.

Source: OpenAI pricing, via the LiteLLM price list.