Skip to content
GPT-4.1 logo

GPT-4.1

Verified

Processes over a million tokens across images, text, and files.

OpenAIMultimodalClosed
Vision
Model page
Updated 2026-06-15

About GPT-4.1

GPT-4.1 was developed by OpenAI as a closed-weight system. Its architecture supports simultaneous handling of visual, textual, and file-based inputs. The context window extends to 1,047,576 tokens, enabling analysis of extensive documents and media collections in a single pass.

Strengths center on unified multimodal reasoning without requiring separate preprocessing pipelines. The model maintains coherence across very long inputs while preserving details from images and files. Because it is not open-weight, usage occurs exclusively through OpenAI's hosted infrastructure.

Typical applications include research synthesis, legal document review, and multimedia content analysis. Users submit combined image and text queries that reference large attached files. Results are generated in a single response that draws on the full provided context.

Capabilities

Long-context reasoning
Multimodal understanding
Image and file analysis
Text generation
Complex instruction following
Code generation

How GPT-4.1 compares

GPT-4.1 (striped bar) vs other multimodal on intelligence, speed and price.

Price

USD per 1M output tokens · Lower is better · GPT-4.1 ranks #86 of 139

$4.5
GPT-5.4 Mini
$4.5
OpenAI GPT Mini Latest
$5.0
Claude Haiku 4.5
$5.0
Anthropic Claude Haiku Latest
$6.0
Grok 4.20 Multi-Agent
$7.5
Mistral Medium 3.5
$8.0
GPT-4.1
$8.0
o4 Mini Deep Research
$8.0
o3
$8.0
Sonar Reasoning Pro
$9.0
Gemini 3.5 Flash
$9.0
Google Gemini Flash Latest
$10.0
GPT-5.1

Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).

Best for

Long-document analysis

GPT-4.1 processes entire books, research papers, or code repositories in a single pass thanks to its 1,047,576-token context window.

Image and file interpretation

The model combines multimodal understanding with image and file analysis to extract insights, generate captions, or answer questions about visual content.

Complex instruction-driven coding

It follows detailed specifications to produce, debug, and refactor code while maintaining consistency across large projects.

Strengths & limitations

Strengths

  • +Handles very large context windows
  • +Processes images, text, and files together
  • +Strong reasoning from OpenAI GPT lineage
  • +Flexible multimodal inputs

Limitations

  • Closed-source with no public weights
  • May hallucinate on complex tasks
  • High compute cost for full context

Cost calculator

Estimate what GPT-4.1 would cost for your usage.

$0.00600
per request
$60
estimated / month

Based on GPT-4.1's $2.00/1M input · $8.00/1M output. Estimate only — actual cost varies by provider and caching.

Quick start

OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. Only the model slug changes between models.

JavaScript · openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "openai/gpt-4.1",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);

Model slug: openai/gpt-4.1

Editor's verdict

Our take on GPT-4.1

GPT-4.1 is OpenAI's proprietary multimodal with a 1048K-token context window.

At $8.00 per 1M output tokens, it is premium-priced for its class.

It is available through OpenAI's API and aggregators like OpenRouter.

Best suited to handles very large context windows and processes images, text, and files together.

Did you find this helpful?

Frequently asked questions

GPT-4.1 supports a context length of 1,047,576 tokens, allowing it to handle very long inputs for reasoning tasks.

User reviews

Real, verified reviews from the community shape this model's rating.

Loading reviews…

Sign in to review

Other GPT models

Sibling versions in the GPT family from OpenAI.

Promote GPT-4.1

Add this badge to your website, or share the tool.

DFeatured on DhanasviGPT-4.1 2