Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
O

GPT-4.1

입력:$1.6/M
출력:$6.4/M
맥락:1.0M
최대 출력:1047K
출시일:Oct 1, 2025

GPT-4.1는 OpenAI가 제공하는 인공지능 모델입니다. gpt-4.1-nano: 더 큰 컨텍스트 윈도우를 제공하며—최대 1 million 컨텍스트 토큰을 지원하고 향상된 긴 컨텍스트 이해를 통해 해당 컨텍스트를 더 잘 활용할 수 있습니다. 지식 컷오프 시점은 2024년 6월로 업데이트되었습니다. 이 모델은 최대 1,047,576 토큰의 컨텍스트 길이를 지원합니다.

새로운
상업적 사용

The GPT-4.1 API is OpenAI's most advanced language model, featuring a 1 million token context window and enhanced capabilities in coding, instruction following, and long-context comprehension, making it ideal for complex applications requiring deep reasoning and extensive input processing.

Overview of GPT-4.1

OpenAI's GPT 4.1 represents a significant advancement in artificial intelligence, building upon the capabilities of its predecessors to offer enhanced performance, efficiency, and versatility. This model is designed to excel in complex tasks, including coding, instruction following, and processing extensive contexts, making it a valuable tool for a wide range of applications.

Key Features of GPT-4.1

Expanded Context Window

GPT 4.1 boasts a context window of up to 1 million tokens, a substantial increase from GPT-4o's 128,000-token limit. This enhancement allows the model to process and understand significantly larger datasets, facilitating deeper insights and more coherent outputs over extended interactions.

Enhanced Coding Capabilities

The model exhibits a 21% improvement in coding performance compared to GPT-4o and a 27% improvement over GPT-4.5, as measured by the SWE-Bench benchmark. This advancement underscores GPT-4.1's proficiency in handling complex coding tasks, including code generation, debugging, and repository exploration.

Improved Instruction Following

GPT 4.1 demonstrates superior adherence to user instructions, reducing the need for repeated prompts and enhancing the efficiency of interactions. This improvement is particularly beneficial in applications requiring precise and consistent responses.

Cost and Efficiency

GPT-4.1 is designed to be more efficient, offering a 26% cost reduction compared to GPT-4o. This efficiency gain makes the model more accessible for a broader range of applications, from enterprise solutions to individual developers.

Benchmark Performance of GPT-4.1

SWE-Bench Coding Benchmark

GPT 4.1 achieved 55% accuracy on the SWE-Bench benchmark, a significant improvement over GPT-4o's 33%. This performance indicates the model's enhanced ability to handle complex coding tasks, including understanding diffs, writing unit tests, and generating compilable code.

MMLU Reasoning Benchmark

In the Massive Multitask Language Understanding (MMLU) benchmark, GPT-4.1 set a new standard by surpassing the 90% accuracy threshold. This achievement reflects the model's advanced reasoning capabilities across a diverse set of tasks.

GPQA Diamond Tier

On the Graduate-Level Google-Proof Q&A (GPQA) benchmark, GPT-4.1 scored 66.3% on the Diamond tier, showcasing its proficiency in handling complex scientific queries.


Technical Specifications of GPT-4.1

Training Data and Knowledge Cutoff

GPT-4.1 was trained on data available up to June 2024, ensuring its responses are informed by recent developments and information.

Multimodal Functionality

GPT-4.1 represents a significant evolution from its predecessors, incorporating advancements in coding, context comprehension, and instruction adherence. The model's ability to process up to 1 million tokens marks a substantial leap from GPT-4o's 128,000-token limit, enabling more complex and nuanced understanding of inputs.


Application Scenarios of GPT-4.1

Software Development

GPT-4.1's enhanced coding capabilities make it an invaluable tool for software developers, assisting in code generation, debugging, and documentation.​

Data Analysis

With its expanded context window, GPT-4.1 can process large datasets, making it suitable for complex data analysis tasks, including trend identification and predictive modeling.​

Education and Training

The model's improved instruction following and reasoning abilities support educational applications, such as personalized tutoring, curriculum development, and language learning.​

Customer Support

GPT-4.1 can enhance customer service by providing accurate and contextually relevant responses, reducing response times, and improving user satisfaction.​


Conclusion

GPT-4.1 represents a significant milestone in the evolution of large language models, offering enhanced contextual understanding, improved coding proficiency, and greater efficiency. Its advancements over previous models position it as a versatile tool across various industries, from software development to education. As AI continues to evolve, GPT 4.1 sets a new standard for performance and accessibility in the field.

How to Use GPT-4.1 API from CometAPI

GPT-4.1 Pricing in CometAPI:

  • Input Tokens: $1.6 / M tokens
  • Output Tokens: $6.4/ M tokens

Required Steps

  • Log in to cometapi.com. If you are not our user yet, please register first
  • Get the access credential API key of the interface. Click "Add Token" at the API token in the personal center, get the token key: sk-xxxxx and submit.

Code Example

  1. Select the “gpt-4.1” endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience.
  2. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.
  3. Insert your question or request into the content field—this is what the model will respond to.
  4. . Process the API response to get the generated answer.

GPT-4.1 가격

[모델명]의 경쟁력 있는 가격을 살펴보세요. 다양한 예산과 사용 요구에 맞게 설계되었습니다. 유연한 요금제로 사용한 만큼만 지불하므로 요구사항이 증가함에 따라 쉽게 확장할 수 있습니다. [모델명]이 비용을 관리 가능한 수준으로 유지하면서 프로젝트를 어떻게 향상시킬 수 있는지 알아보세요.

ModelComet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
gpt-4.1
입력:$1.6/M
출력:$6.4/M
입력:$2/M
출력:$8/M
-20%
gpt-4.1-2025-04-14
입력:$1.6/M
출력:$6.4/M
입력:$2/M
출력:$8/M
-20%
gpt-4.1-mini
입력:$0.32/M
출력:$1.28/M
입력:$0.4/M
출력:$1.6/M
-20%
gpt-4.1-mini-2025-04-14
입력:$0.32/M
출력:$1.28/M
입력:$0.4/M
출력:$1.6/M
-20%
gpt-4.1-nano
입력:$0.08/M
출력:$0.32/M
입력:$0.1/M
출력:$0.4/M
-20%
gpt-4.1-nano-2025-04-14
입력:$0.08/M
출력:$0.32/M
입력:$0.1/M
출력:$0.4/M
-20%

GPT-4.1의 샘플 코드 및 API

The GPT-4.1 API is OpenAI's most advanced language model, featuring a 1 million token context window and enhanced capabilities in coding, instruction following, and long-context comprehension, making it ideal for complex applications requiring deep reasoning and extensive input processing.

curl https://api.cometapi.com/v1/messages \
     --header "Authorization: $COMETAPI_KEY" \
     --header "content-type: application/json" \
     --data \
'{
    "model": "claude-opus-4-1-20250805",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, Claude"}
    ]
}'

cURL Code Example

curl https://api.cometapi.com/v1/messages \
     --header "Authorization: $COMETAPI_KEY" \
     --header "content-type: application/json" \
     --data \
'{
    "model": "claude-opus-4-1-20250805",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, Claude"}
    ]
}'

Python Code Example

from openai import OpenAI
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"

client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)
response = client.responses.create(
    model="gpt-4.1", input="Tell me a three sentence bedtime story about a unicorn."
)

print(response)

JavaScript Code Example

import OpenAI from "openai";

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY;
const base_url = "https://api.cometapi.com/v1";

const openai = new OpenAI({
  apiKey: api_key,
  baseURL: base_url,
});

const response = await openai.responses.create({
  model: "gpt-4.1",
  input: "Tell me a three sentence bedtime story about a unicorn.",
});

console.log(response);

GPT-4.1의 버전

GPT-4.1에 여러 스냅샷이 존재하는 이유는 업데이트 후 출력 변동으로 인해 일관성을 유지하기 위해 이전 스냅샷을 보관하거나, 개발자에게 적응 및 마이그레이션을 위한 전환 기간을 제공하거나, 글로벌 또는 지역별 엔드포인트에 따라 다양한 스냅샷을 제공하여 사용자 경험을 최적화하기 위한 것 등이 포함될 수 있습니다. 버전 간 상세한 차이점은 공식 문서를 참고해 주시기 바랍니다.

Version
gpt-4.1
gpt-4.1-2025-04-14
gpt-4.1-mini
gpt-4.1-mini-2025-04-14
gpt-4.1-nano
gpt-4.1-nano-2025-04-14