openai/gpt-4.1
출시일: 2025-04-15
1,047,576 context · $2.00/M input tokens · $8.00/M output tokens
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...
사용량 기반 과금
선결제 없이 사용한 만큼만 지불
다음 코드 예시를 사용해 API와 연동하세요:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["WAVESPEED_API_KEY"],
base_url="https://llm.wavespeed.ai/v1",
timeout=120.0,
max_retries=2,
)
try:
response = client.chat.completions.create(
model="openai/gpt-4.1",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content or "")
except Exception as exc:
raise SystemExit(f"LLM request failed: {exc}") from excopenai gpt-4.1
| Specification | Value |
|---|---|
| Provider | Openai |
| Model Type | Large Language Model (LLM) |
| Architecture | N/A |
| Context Window | 1047576 tokens |
| Max Output | 32768 tokens |
| Input | Text |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Token Type | Cost per Million Tokens |
|---|---|
| Input | $2.2 |
| Output | $8.8 |
Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: openai/gpt-4.1
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.wavespeed.ai/v1"
)
response = client.chat.completions.create(
model="openai/gpt-4.1",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
curl https://llm.wavespeed.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-4.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'
openai/gpt-4.1
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...
입력
$2 /M
출력
$8 /M
컨텍스트
1048K
최대 출력
33K
Vision
지원
도구 사용
지원
WaveSpeedAI 가격: 입력 토큰 100만 개당 $2.00, 출력 토큰 100만 개당 $8.00. 프롬프트 캐싱과 배치 처리는 별도로 청구되며 긴 반복 작업에서 실질 비용을 줄여 줍니다.
GPT 4.1은 요청당 최대 1048K 컨텍스트 토큰과 최대 33K 출력 토큰을 지원합니다.
WaveSpeedAI는 https://llm.wavespeed.ai/v1의 OpenAI 호환 Chat Completions 인터페이스를 통해 GPT 4.1을 제공합니다. 대부분의 OpenAI SDK 클라이언트는 base URL과 API 키를 변경해 사용할 수 있으며, 선택 필드는 모델에 따라 다릅니다.
WaveSpeedAI에 로그인하고 Access Keys에서 API 키를 만든 다음, 위에 표시된 모델 ID로 https://llm.wavespeed.ai/v1/chat/completions에 요청을 보내세요. 제공 여부, 기능 및 가격은 최신 모델 카탈로그를 확인하세요.