[OpenAI] OpenAI 시작하기

류재성's avatar
Jun 30, 2024
[OpenAI] OpenAI 시작하기
 
 
notion image
 
로그인 페이지로 이동한다.
 
notion image
 
API 를 선택한다.
 
 
notion image
 
카드 등록 후 결제를 한다.
 
 
notion image
 
새 프로젝트를 등록할 수 있다.
 
notion image
 
 
notion image
 
 
notion image
 
휴대폰 인증을 한다.
 
notion image
 
테스트명을 넣고 버튼을 누르면 api key 가 생성된다.
 
💡
개인용으로 사용하면 you, 함께 사용하려면 service account 를 사용한다.
 
 
 
notion image
 
API reference 를 들어간다.
 
notion image
 
http 헤더에 생성한 api 키를 넣어야 한다.
 
notion image
 
튜토리얼을 선택한다.
 
notion image
 
curl 선택한다.
 
notion image
 
요청 방법을 확인할 수 있다.
 
💡
body 가 있기 때문에 post 요청을 해야 한다.
 
notion image
 
api 주소와 헤더에 Authorization으로 api 키를 넣는다.
 
notion image
 
json 으로 요청을 보낸다.
 
notion image
 
응답을 확인할 수 있다.
 
💡
role : 모델의 행동 방식을 설정 user : 메시지는 실제 사용자로부터의 요청
 
notion image
 
Share article
RSSPowered by inblog