Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenAI - Closed weights

GPT-4.1 pricing and specs

GPT-4.1 is a closed-weights model from OpenAI that costs $2 per 1M input tokens and $8 per 1M output tokens on the first-party API, with a 1.05M-token context window.

Last verified from developers.openai.com. All sources

Input / 1M
$2
Output / 1M
$8
Context
1.05M tokens
Weights
Closed

Pricing per 1M tokens

ItemPrice / 1M tokens
Input$2
Output$8
Cache read$0.50
Batch inputBatch requests$1
Batch outputBatch requests$4
Fast mode inputFast mode requests$3.50
Fast mode outputFast mode requests$14

Note: Non-reasoning model. The Batch table lists no cached-input price. Default snapshot gpt-4.1-2025-04-14.

Specs

Context window
1,047,576 tokens
Max output
32,768 tokens
Release date
Provider
OpenAI
API model id
gpt-4.1
Vercel AI Gateway id
openai/gpt-4.1
Weights
Closed weights

What GPT-4.1 costs in practice

Worked from the standard list rates above, with the math shown so you can swap in your own token counts.

One agent session

1M input tokens and 100K output tokens, no caching.

  • Input1M x $2 = $2.00
  • Output0.1M x $8 = $0.80

$2.80per session

A chat app

10,000 requests a day at 2K input and 500 output tokens each.

  • Input20M x $2 = $40.00
  • Output5M x $8 = $40.00

$80.00per day

$2,400.00 per 30-day month

The same session at a 90% cache hit

90% of the input is read from the prompt cache. The one-time cache write premium is not included.

  • Cached input0.9M x $0.50 = $0.45
  • Uncached input0.1M x $2 = $0.20
  • Output0.1M x $8 = $0.80

$1.45per session

Compare with

ModelInput / 1MOutput / 1M
GPT-4.1 (this page)$2$8
Jamba Large 1.7AI21 Labs$2$8
Kimi K2.7 Code HighSpeedMoonshot AI$1.90$8
o3OpenAI$2$8
Qwen3.5-Omni-PlusAlibaba Cloud (Qwen)$1.40$8.30
GPT-4oOpenAI$2.50$10
GPT-5OpenAI$1.25$10
GPT-5.1OpenAI$1.25$10
GPT-6 SolOpenAI$2$10
GPT-6.1 SolOpenAI$2$10

FAQ

How much does GPT-4.1 cost per million tokens?

GPT-4.1 costs $2 per 1M input tokens and $8 per 1M output tokens on OpenAI's first-party API, per developers.openai.com on October 17, 2026. Per 1M tokens, cache reads cost $0.50, and the batch rate is $1 input and $4 output.

What is GPT-4.1's context window?

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

Are GPT-4.1's weights open?

No. GPT-4.1 is a closed-weights model. You call it through OpenAI's API as gpt-4.1 or through Vercel AI Gateway as openai/gpt-4.1.

When was GPT-4.1 released?

OpenAI released GPT-4.1 on April 14, 2025.

Sources

Last verified from developers.openai.com.

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.