# Getting Incorrect API key Error in NODE.JS

**URL:** https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115
**Category:** API
**Tags:** api
**Created:** [January 9, 2024, 9:28am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115 "2024-01-09T09:28:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dey1992arnab](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dey1992arnab/32/283544_2.png) [@dey1992arnab](https://community.openai.com/u/dey1992arnab)
#### Post date: [January 9, 2024, 9:28am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/1 "2024-01-09T09:28:07Z")

</div>

error: {  
message: ‘Incorrect API key provided: sk-bUBrM\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*HQsj. You can find your API key at [https://platform.openai.com/account/api-keys.](https://platform.openai.com/account/api-keys.)’,  
type: ‘invalid\_request\_error’,  
param: null,  
code: ‘invalid\_api\_key’  
},

---

<div class="post-metadata">

### Author: ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)
#### Post date: [January 9, 2024, 9:43am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/2 "2024-01-09T09:43:14Z")

</div>

Welcome.

Did you check your API keys on the OpenAI website?

---

<div class="post-metadata">

### Author: ![dey1992arnab](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dey1992arnab/32/283544_2.png) [@dey1992arnab](https://community.openai.com/u/dey1992arnab)
#### Post date: [January 9, 2024, 11:01am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/3 "2024-01-09T11:01:16Z")

</div>

Yes, Checked. but now getting 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.](https://platform.openai.com/docs/guides/error-codes/api-errors.)’,  
type: ‘insufficient\_quota’,  
param: null,  
code: ‘insufficient\_quota’  
},

---

<div class="post-metadata">

### Author: ![dey1992arnab](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dey1992arnab/32/283544_2.png) [@dey1992arnab](https://community.openai.com/u/dey1992arnab)
#### Post date: [January 9, 2024, 11:09am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/4 "2024-01-09T11:09:33Z")

</div>

![WhatsApp Image 2024-01-09 at 16.35.54_c9af7ee5](https://us1.discourse-cdn.com/openai1/original/4X/f/1/6/f16226ade4a40797da6b94ae94784b0f6e3fe41b.jpeg)

---

<div class="post-metadata">

### Author: ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/719663_2.png) [@\_j](https://community.openai.com/u/_j)
#### Post date: [January 9, 2024, 11:18am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/5 "2024-01-09T11:18:39Z")

</div>

The pink on the right shows an account with only expired free trial credits in pink. You’ll need to fund the API account by adding a payment method and purchasing a credit.

---

<div class="post-metadata">

### Author: ![dey1992arnab](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dey1992arnab/32/283544_2.png) [@dey1992arnab](https://community.openai.com/u/dey1992arnab)
#### Post date: [January 9, 2024, 11:24am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/6 "2024-01-09T11:24:14Z")

</div>

thanks for your help, but when I am generating the key, it is showing the pink color. i never use the key

---

<div class="post-metadata">

### Author: ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/719663_2.png) [@\_j](https://community.openai.com/u/_j)
#### Post date: [January 9, 2024, 11:26am UTC](https://community.openai.com/t/getting-incorrect-api-key-error-in-node-js/579115/7 "2024-01-09T11:26:30Z")

</div>

The free trial expires three months after you first created an OpenAI account, such as to use ChatGPT.
