GPT-5의 빠르고 효율적인 변형 모델입니다. 1M 토큰 컨텍스트 윈도우와 32K 출력 토큰을 갖추고 GPT-5 대비 훨씬 저렴한 비용으로 추론, 코딩, 창의적 작업 전반에서 우수한 성능을 제공합니다.
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 500 | $0.50 |
| 출력 토큰 | 4,000 | $4.00 |
| 캐시된 토큰 | 125 | $0.13 |
* 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-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant. Be concise and clear."
},
{
"role": "user",
"content": "Explain the difference between REST and GraphQL APIs, including when to use each."
}
],
"max_completion_tokens": 2000
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | role과 content를 포함한 메시지 객체 배열 |
model | string | Yes | gpt-5-mini | 모델 식별자 |
max_completion_tokens | integer | No | 4096 | 응답의 최대 토큰 수 (최대 32768). 주의: max_tokens 대신 max_completion_tokens 사용 |
reasoning_effort | string | No | medium | 추론 노력 수준: low, medium, high |
stream | boolean | No | false | Server-Sent Events 스트리밍 활성화 |
response_format | object | No | - | 응답 형식: JSON 모드의 경우 { type: 'json_object' } |
tools | array | No | - | 모델이 호출할 수 있는 도구(함수) 목록 |
GPT-5 Mini를 활용한 효율적인 범용 대화
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-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant. Be concise and clear."
},
{
"role": "user",
"content": "Explain the difference between REST and GraphQL APIs, including when to use each."
}
],
"max_completion_tokens": 2000
}'GPT-5 Mini로 효율적인 코드 디버깅
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-mini",
"messages": [
{
"role": "system",
"content": "You are an expert debugger. Find and fix bugs in the provided code."
},
{
"role": "user",
"content": "This Python function should return the nth Fibonacci number but it's running too slowly for large n. Optimize it:\n\ndef fib(n):\n if n <= 1:\n return n\n return fib(n-1) + fib(n-2)"
}
],
"max_completion_tokens": 2000
}'POST /llm/openai/v1/chat/completions