맥미니의 스크린샷 단축키가 어떻게 해서든 돌아오지 않아 슬픈 텍스트 가이드
View API Keys
를 눌러준다Billing
을 눌러준다Usage limits
를 꼭 등록해두자API Keys
를 눌러준다Creat new secret key
하면 끝!OPENAI_API_KEY=sk-00000... # 여기에 발급 받은 키 복붙
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7
}'
{.... "content":"This is a test!"},"finish_reason":"stop","index":0}]}
대단히 감사합니다 카드를 등록해야만 되는군요 좋은정보 감사합니다