Quickstart tutorial insufficient quota error

Hi,

I’m just starting to investigate the openai API for the first time.

I want to start using the API with nodejs, I started with the quick start tutorial.

https://platform.openai.com/docs/quickstart?context=node

But when I run $ openai-test.js

I get the following error.

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: null,
    code: 'insufficient_quota'
  },

I have been using chatgpt for a while could this be the reason for the insufficient quota error?

Do I need to pay to use the API?

Thanks in advance,
Joe

Yes, I believe you need to pay to use the API. At one point you received $5 in credits when signing up. I don’t know if that’s still the case or not.

https://openai.com/api/pricing/

Okay thanks, looks like I need to put my hand in my pocket :confused: