Skip to main content
OpenAI빠름울트라

GPT-4.1

OpenAI의 코딩 및 지시 따르기에 가장 뛰어난 모델입니다. 1M 토큰 컨텍스트 윈도우, 32K 출력 토큰을 지원하며, 코딩, 복잡한 프롬프트, 긴 컨텍스트 작업에서 크게 향상되었습니다. GPT-4o 대비 출력 비용 20% 절감.

3 크레딧
1K 토큰당 (평균)
1M 토큰 컨텍스트 윈도우
32K 최대 출력 토큰
최고 수준의 코딩 성능
뛰어난 지시 따르기 능력
네이티브 비전 (텍스트 + 이미지)
함수 호출 & JSON 모드
구조화된 출력

AI 어시스턴트에서 사용하기

이 모델의 사용법을 Claude, ChatGPT 등에 복사

llms.txt

모델 상세 사양

컨텍스트 윈도우
1.0M
토큰
최대 출력
33K
토큰
학습 데이터
2024-05
호환 SDK
OpenAI

기능 지원

비전
함수 호출
스트리밍
JSON 모드
시스템 프롬프트

토큰별 가격 (1M 토큰당)

토큰 종류크레딧달러 환산
입력 토큰2,000$2.00
출력 토큰8,000$8.00
캐시된 토큰500$0.50

* 1 크레딧 ≈ $0.001 (실제 요금은 사용량에 따라 달라질 수 있습니다)

빠른 시작

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-4.1",
  "messages": [
    {
      "role": "system",
      "content": "You are an expert code reviewer. Analyze the codebase and suggest improvements."
    },
    {
      "role": "user",
      "content": "Review this Python project and identify potential performance bottlenecks, security issues, and suggest refactoring opportunities."
    }
  ],
  "temperature": 0.3,
  "max_tokens": 4000
}'

파라미터

파라미터타입필수기본값설명
messagesarrayYes-role과 content를 포함한 메시지 객체 배열
modelstringYesgpt-4.1모델 식별자
temperaturefloatNo1.0샘플링 온도 (0-2). 낮을수록 집중적, 높을수록 창의적
max_tokensintegerNo4096응답의 최대 토큰 수 (최대 32768)
streambooleanNofalseServer-Sent Events 스트리밍 활성화
response_formatobjectNo-응답 형식: JSON 모드의 경우 { type: 'json_object' }
toolsarrayNo-모델이 호출할 수 있는 도구(함수) 목록
top_pfloatNo1.0핵 샘플링 임계값 (0-1)

예제

긴 코드 분석

1M 컨텍스트로 대규모 코드베이스 분석 및 리팩토링

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-4.1",
  "messages": [
    {
      "role": "system",
      "content": "You are an expert code reviewer. Analyze the codebase and suggest improvements."
    },
    {
      "role": "user",
      "content": "Review this Python project and identify potential performance bottlenecks, security issues, and suggest refactoring opportunities."
    }
  ],
  "temperature": 0.3,
  "max_tokens": 4000
}'

지시 따르기

정확한 포맷팅을 포함한 복잡한 다단계 작업

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-4.1",
  "messages": [
    {
      "role": "system",
      "content": "Follow the user's instructions exactly. Format output as specified."
    },
    {
      "role": "user",
      "content": "Create a technical specification document with sections: Overview, Architecture, API Design, Security Considerations, and Deployment Plan. Use markdown headers and include code examples where relevant."
    }
  ],
  "temperature": 0.5,
  "max_tokens": 8000
}'

JSON 데이터 추출

비정형 텍스트에서 구조화된 데이터 추출

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-4.1",
  "messages": [
    {
      "role": "system",
      "content": "Extract structured data from the given text. Always respond with valid JSON."
    },
    {
      "role": "user",
      "content": "Parse this invoice: 'Invoice #2025-0342 from Acme Corp to Beta LLC, dated March 1 2025. Items: 10x Widget A at $25.00, 5x Widget B at $50.00. Tax: 10%. Shipping: $15.00'"
    }
  ],
  "response_format": {
    "type": "json_object"
  },
  "max_tokens": 1000
}'

팁 & 모범 사례

1코딩 작업에 뛰어남 — 코드 생성, 리뷰, 디버깅에 사용
21M 컨텍스트 윈도우로 전체 코드베이스나 긴 문서 분석에 이상적
3OpenAI 모델 중 최고의 지시 따르기 성능 — 복잡한 프롬프트에 적합
4코딩/사실 기반 작업에는 낮은 온도 (0.1-0.3) 사용
5GPT-4o 대비 출력 토큰 비용 20% 절감
6비전은 URL 또는 base64 인코딩 이미지와 함께 작동
7스트리밍으로 첫 토큰까지의 시간 대폭 단축

사용 사례

대규모 코드베이스 분석 및 생성
복잡한 다단계 지시 따르기
긴 문서 요약 및 분석
문서/이미지에서 데이터 추출
에이전트 워크플로우 및 도구 사용
기업 콘텐츠 처리

모델 정보

제공자OpenAI
버전2025-04-14
카테고리LLM
가격3 크레딧

API Endpoint

POST /llm/openai/v1/chat/completions
Playground에서 테스트문서로 돌아가기