impulse

GPT-4.1

Frontier labRetiring 14 Jan 2027

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning.

API id gpt-4.1Released 14 Apr 2025 (Apr 2025)
A newer model in this line is out: GPT-5.6.
OpenAI retires it on 14 Jan 2027 (in 57 days); Azure OpenAI (except US government regions) on 14 Apr 2027. 3 hosts keep serving it.
Input / 1M
$2.00
at OpenAI
Output / 1M
$8.00
at OpenAI
Context window
1M
tokens
Max output
33K
tokens per reply
Hosts
4
13 listings
Released
Apr 2025
14 Apr 2025

Pricing

List prices at OpenAI, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$2.00$8.00
Cached input
75% off input
$0.50
Batch
50% off
$1.00$4.00
Priority
75% more
$3.50$14.00
Web search
$25.00 per 1,000 searches

What it costs a month

At OpenAI list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$1,065
  • RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$888
  • Coding agent1,000 requests a day, 40K in / 2K out, cached$1,620
  • Overnight batch20,000 requests a day, 4K in / 0.4K out, batch$3,360
Use your own numbers

Where to run it

4 hosts serve GPT-4.1. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
OpenAILab API
gpt-4.1
$2.00 / $8.00
Retires 14 Jan 2027
gpt-4.1
$2.00 / $8.00
Retires 14 Apr 2027
ReplicateInference
gpt-4.1
$2.00 / $8.00
gpt-4.1
$2.00 / $8.00
GitHub CopilotSubscription
gpt-4.1
In the subscription
Show 8 more listings: regions, snapshots and variants
OpenAI
2025-04-14
gpt-4.1-2025-04-14
$2.00 / $8.00
Retires 14 Jan 2027
2025-04-14 · fine-tuning
ft:gpt-4.1-2025-04-14
$3.00 / $12.00
Retires 14 Jan 2027
Azure OpenAI
2025-04-14
gpt-4.1-2025-04-14
$2.00 / $8.00
Retires 14 Apr 2027
eu
gpt-4.1
$2.20 / $8.80
+10% vs headline
Retires 14 Apr 2027
us
gpt-4.1
$2.20 / $8.80
+10% vs headline
Retires 14 Apr 2027
us · 2025-04-14
gpt-4.1-2025-04-14
$2.20 / $8.80
+10% vs headline
Retires 14 Apr 2027
us-gov
gpt-4.1
$2.75 / $11.00
+38% vs headline
GitHub Copilot
2025-04-14
gpt-4.1-2025-04-14
In the subscription

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
ImagesTextPDFs
Produces
Text
Features
Parallel tool callsPDF inputPrompt cachingBuilt-in web search

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than OpenAI.

Smaller OpenAI models

  • GPT-6.1 Terra
    OpenAI · on OpenAI
    $1.00 / $5.00
    Has every key capability
    43% less
  • GPT-5.4 Mini
    OpenAI · on OpenAI
    $0.75 / $4.50
    Has every key capability
    52% less
  • GPT-5.4 Nano
    OpenAI · on OpenAI
    $0.20 / $1.25
    Has every key capability
    87% less

Other frontier labs

  • Gemini 4 Hydrogen
    Google · on Google AI Studio
    $1.50 / $7.50
    Has every key capability
    14% less
  • Grok 4.7
    xAI · on xAI
    $2.00 / $6.00
    Has every key capability
    14% less
  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    94% less
  • Gemini 3.8 Flash
    Google · on Google AI Studio
    $0.75 / $3.75
    Has every key capability
    57% less

Open-weight picks

  • Qwen4 Max
    Alibaba Qwen · on Alibaba DashScope
    $1.50 / $4.50
    Has every key capability
    36% less
  • Inkling
    Independent · on DeepInfra
    $0.95 / $4.05
    Has every key capability
    51% less
  • Kimi K2.7 Code
    Moonshot AI · on CLF AI Gateway
    $0.38 / $1.60
    Has every key capability
    80% less
  • DeepSeek Flash
    DeepSeek · on DeepSeek
    $0.30 / $1.20
    Has every key capability
    85% less

Benchmarks

Scores published on the model card.

  • Aider Polyglot52.4%

Model line

Newer and older versions, at each lab's own price.

  1. UndatedGPT-5.6Latest$4.00 / $20.00
  2. Apr 2026GPT-5.5$5.00 / $30.00
  3. Mar 2026GPT-5.4$2.50 / $15.00
  4. Dec 2025GPT-5.2$1.75 / $14.00
  5. Nov 2025GPT-5.1$1.25 / $10.00
  6. Aug 2025GPT-5$1.25 / $10.00
  7. Apr 2025GPT-4.1This page$2.00 / $8.00
  8. May 2023GPT-4$30.00 / $60.00

Call it

Using OpenAI's API.

Python
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY

response = client.responses.create(model="gpt-4.1", input="Hello")
print(response.output_text)

Quick answers

How much does GPT-4.1 cost?

On OpenAI, GPT-4.1 costs $2.00 per million input tokens and $8.00 per million output tokens. Cached input costs $0.50 per million tokens.

Which APIs offer GPT-4.1?

GPT-4.1 runs on 4 APIs: OpenAI, Azure OpenAI, Replicate and Vercel AI Gateway.

What is GPT-4.1's context window?

1M tokens, with up to 33K tokens in one reply.

Is GPT-4.1 being retired?

OpenAI retires it on 14 Jan 2027; Azure OpenAI (except US government regions) on 14 Apr 2027. 3 hosts keep serving it.

Is there a newer version of GPT-4.1?

Yes. GPT-5.6 is the newest model in this line.

What are cheaper alternatives to GPT-4.1?

Models that cost less and keep most of what it can do: GPT-6.1 Terra on OpenAI (43% less), Gemini 4 Hydrogen on Google AI Studio (14% less), Grok 4.7 on xAI (14% less) and Qwen4 Max on Alibaba DashScope (36% less). Savings are on a mix of 3 input tokens to 1 output token.

When was GPT-4.1 released?

OpenAI released it on 14 Apr 2025.

What is GPT-4.1's API model id?

Use gpt-4.1 with OpenAI.

Sources

Raw catalog entry for gpt-4.1 on OpenAI
{
  "cache_read_input_token_cost": 5e-7,
  "cache_read_input_token_cost_priority": 8.75e-7,
  "deprecation_date": "2027-01-14",
  "deprecation_source": "https://developers.openai.com/api/docs/deprecations",
  "successor_model": "gpt-6-luna",
  "input_cost_per_token": 0.000002,
  "input_cost_per_token_batches": 0.000001,
  "input_cost_per_token_priority": 0.0000035,
  "litellm_provider": "openai",
  "max_input_tokens": 1047576,
  "max_output_tokens": 32768,
  "mode": "chat",
  "output_cost_per_token": 0.000008,
  "fedramp_uplift_multiplier": 1.1,
  "output_cost_per_token_batches": 0.000004,
  "output_cost_per_token_priority": 0.000014,
  "search_context_cost_per_query": {
    "search_context_size_high": 0.025,
    "search_context_size_low": 0.025,
    "search_context_size_medium": 0.025
  },
  "source": "https://developers.openai.com/api/docs/pricing",
  "supported_endpoints": [
    "/v1/chat/completions",
    "/v1/batch",
    "/v1/responses"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "text"
  ],
  "supports_function_calling": true,
  "supports_native_streaming": true,
  "supports_parallel_function_calling": true,
  "supports_pdf_input": true,
  "supports_prompt_caching": true,
  "supports_response_schema": true,
  "supports_system_messages": true,
  "supports_tool_choice": true,
  "supports_vision": true,
  "supports_web_search": true
}