메인 콘텐츠로 건너뛰기

1. API 키 발급

테넌트 관리자 계정으로 로그인한 후, 프로필 메뉴에서 Open API 페이지로 이동하여 API 키를 발급합니다.

2. 채팅 API 호출

curl -X POST https://api.ones1ght.com/v1/chat/completions \
  -H "Authorization: Bearer osk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "shopping-assistant",
    "messages": [
      {"role": "user", "content": "오늘 저녁 메뉴 추천해줘"}
    ],
    "stream": true
  }'

3. 응답 확인

SSE 스트리밍 형식으로 응답이 반환됩니다:
data: {"choices":[{"delta":{"content":"카레"},"index":0}]}

data: {"choices":[{"delta":{"content":"라이스는"},"index":0}]}

data: [DONE]