OpenAI의 최신 플래그십 모델입니다. 1M 토큰 컨텍스트 윈도우와 32K 출력 토큰을 갖추고 추론, 코딩, 창의적 작업 전반에서 탁월한 성능을 제공합니다. 비전, 함수 호출, JSON 모드를 지원합니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 2,500 | $2.50 |
| 출력 토큰 | 20,000 | $20.00 |
| 캐시된 토큰 | 625 | $0.63 |
* 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-5",
"messages": [
{
"role": "system",
"content": "You are an expert analyst. Provide thorough, well-structured analysis."
},
{
"role": "user",
"content": "Analyze the potential impacts of quantum computing on current encryption standards and suggest a migration roadmap for enterprise systems."
}
],
"max_completion_tokens": 4000
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | role과 content를 포함한 메시지 객체 배열 |
model | string | Yes | gpt-5 | 모델 식별자 |
max_completion_tokens | integer | No | 4096 | 응답의 최대 토큰 수 (최대 32768). 주의: max_tokens 대신 max_completion_tokens 사용 |
stream | boolean | No | false | Server-Sent Events 스트리밍 활성화 |
response_format | object | No | - | 응답 형식: JSON 모드의 경우 { type: 'json_object' } |
tools | array | No | - | 모델이 호출할 수 있는 도구(함수) 목록 |
reasoning_effort | string | No | medium | 추론 노력 수준: low, medium, high |
GPT-5를 활용한 다단계 추론 및 분석
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-5",
"messages": [
{
"role": "system",
"content": "You are an expert analyst. Provide thorough, well-structured analysis."
},
{
"role": "user",
"content": "Analyze the potential impacts of quantum computing on current encryption standards and suggest a migration roadmap for enterprise systems."
}
],
"max_completion_tokens": 4000
}'GPT-5로 프로덕션 품질의 코드 생성
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-5",
"messages": [
{
"role": "system",
"content": "You are an expert software engineer. Write clean, well-documented code."
},
{
"role": "user",
"content": "Create a TypeScript rate limiter middleware for Express.js that uses a sliding window algorithm with Redis for distributed rate limiting."
}
],
"max_completion_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-5",
"messages": [
{
"role": "system",
"content": "Extract structured data from the given text. Always respond with valid JSON."
},
{
"role": "user",
"content": "Parse this invoice: 'Invoice #2025-0842 from Acme Corp to Beta LLC, dated August 15 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
}'POST /llm/openai/v1/chat/completions