GPT-6 Luna로 동작하는 OpenAI Decisions API를 게이트웨이로 호출합니다. 채팅이 아닙니다. input(텍스트, 또는 텍스트·base64 이미지가 담긴 user 메시지)과 타입이 정해진 질문을 보내면 질문마다 답이 옵니다 - predicate(조건이 참일 확률), choice(선택지 중 하나 + 선택지별 확률), score(정의한 단계 위의 위치) - 그리고 confidence가 함께 옵니다. Responses 호출보다 약 10배 빠르고 입력 토큰에만 과금됩니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 186 | $0.12 |
| 출력 토큰 | 과금 없음 — 입력 토큰에만 과금 | |
* 1,500 크레딧 ≈ $1 (실제 요금은 사용량에 따라 달라질 수 있습니다)
curl -X POST "https://api.core.today/llm/openai/v1/decisions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-6-luna-decisions",
"input": "I was charged twice for my order and support has not replied for 3 days.",
"questions": [
{
"type": "predicate",
"name": "is_urgent",
"instructions": "Does this message convey urgency?"
},
{
"type": "choice",
"name": "department",
"instructions": "Which department should handle this complaint?",
"choices": [
{
"value": "billing",
"description": "Payments, invoices, and refunds."
},
{
"value": "technical",
"description": "Problems using the product."
},
{
"value": "other",
"description": "Requests outside these categories."
}
]
},
{
"type": "score",
"name": "severity",
"instructions": "How severe is this issue for the customer?",
"levels": [
{
"label": "Minor",
"description": "Inconvenience only."
},
{
"label": "Significant",
"description": "Money or access affected."
},
{
"label": "Critical",
"description": "Blocked with no workaround."
}
]
}
]
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
model | string | Yes | gpt-6-luna-decisions | gpt-6-luna-decisions(카탈로그 id) 또는 gpt-6-luna - 어느 쪽이든 게이트웨이가 Decisions 행으로 과금하고 업스트림엔 gpt-6-luna를 보냅니다. |
input | string | message[] | Yes | - | 모든 질문이 공유하는 판정 대상: 텍스트 문자열, 또는 content에 input_text / input_image 파트를 담은 user 메시지(이미지는 data:image/...;base64 URL). |
questions | array | Yes | - | 질문 배열. 각 질문은 고유한 name, type, instructions를 갖습니다. choice는 choices [{value, description}], score는 낮은 것부터 순서대로 levels [{label, description}]를 추가합니다. 답은 같은 name으로 돌아옵니다. |
predicate, choice, score를 한 번에
curl -X POST "https://api.core.today/llm/openai/v1/decisions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-6-luna-decisions",
"input": "I was charged twice for my order and support has not replied for 3 days.",
"questions": [
{
"type": "predicate",
"name": "is_urgent",
"instructions": "Does this message convey urgency?"
},
{
"type": "choice",
"name": "department",
"instructions": "Which department should handle this complaint?",
"choices": [
{
"value": "billing",
"description": "Payments, invoices, and refunds."
},
{
"value": "technical",
"description": "Problems using the product."
},
{
"value": "other",
"description": "Requests outside these categories."
}
]
},
{
"type": "score",
"name": "severity",
"instructions": "How severe is this issue for the customer?",
"levels": [
{
"label": "Minor",
"description": "Inconvenience only."
},
{
"label": "Significant",
"description": "Money or access affected."
},
{
"label": "Critical",
"description": "Blocked with no workaround."
}
]
}
]
}'base64 data URL 이미지 입력 + predicate 질문
curl -X POST "https://api.core.today/llm/openai/v1/decisions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-6-luna-decisions",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Inspect the product in this photo."
},
{
"type": "input_image",
"image_url": "data:image/png;base64,<BASE64>"
}
]
}
],
"questions": [
{
"type": "predicate",
"name": "visible_damage",
"instructions": "Does the product have visible damage, such as a crack, tear, or dent? Ignore shadows and damage to the packaging."
}
]
}'