[OpenAI] API Key & Billing

JAsmine_log·2025년 8월 19일

OpenAI

https://platform.openai.com

  • ⚙️로 접근

API Key 설정

https://platform.openai.com/settings/organization/api-keys

  • API secret key 를 생성할 수 있음
  • 생성한 키는 바로 복사를 해 놓아야 하며, 안그러면 나중에 *...* 문자로만 보여짐

Billing

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

  • Billing 관련 정보를 설정할 수 있음

Limits 설정

https://platform.openai.com/settings/organization/limits

  • 월별로 갱신할 수 있는 사용량을 제한하여 설정할 수 있음
  • 월별 자동갱신하도록 설정도 가능함
  • $ 단위로 설정

API key 사용

  • 코드에서 파라미터에 API Key value를 직접 할당하여 사용하거나
  • .env 파일로 저장하고 호출하여 사용할 수 있음
profile
Everyday Research & Development

0개의 댓글