IT기타

openAI API 에러 : RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details.

emilyyoo 2024. 12. 7. 13:54
728x90

상황 :

openAI api 사용 중 에러. api 시크릿키값 발급받았고 환경변수 등록한 상태지만 결제는 하지 않았다. 

 

에러메시지 :

 

RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'

 

 

해결 : 

 

openai 대시보드(아래 주소) 가서 카드 등록하고 결제하면 된다. 

 

https://platform.openai.com/settings/organization/billing/overview

 

'Add payment details' 버튼 누르면 카드등록하는 화면 나온다. 

 

그리고 다시 시크릿키 발급받아서 환경변수 등록하면 된다. 

 

 

**참고 환경변수 등록(윈도우기준)

win + R 

-> sysdm.cpl

 

고급 > 환경변수 > 새로만들기 

: OPENAI_API_KEY를 변수이름으로 새로 만들고 값을 발급받은 키값을 넣어줌. 

 

728x90