# How to set a new OpenAI API key

---

## Register

### Go the website

Click [here](https://platform.openai.com/account/api-keys) or go directly to the following link: [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys).

---

### Log in

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597415331/a28fd804-7db9-4bf3-945b-cf9a55a36b19.png align="center")

I'm going to be using my Google account

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597463386/f2dc73e7-33cc-461c-839f-8f4cba0421ca.png align="center")

---

## OpenAI homepage

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597523690/06e2b8d7-0303-4d38-8b0c-96cd0b7d47ff.png align="center")

---

### Check your current API keys

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597573895/c77c3eef-e6db-40af-8783-f24d918663ca.png align="center")

---

## Create new API key

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597635210/24fb58a2-20a1-4a89-bd83-1307f82b12a8.png align="center")

---

### Choose a name (optional)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597680062/c09f84c0-94d3-421d-89af-3e8f5ea56f64.png align="center")

---

### Finish creation

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597729850/8f7f46ad-477f-4f3f-86b8-b620fb8f3463.png align="center")

---

## Check the new key

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597853840/8a16309c-d82a-4fd6-ac27-d960b0212353.png align="center")

---

### Save the API key in a safe place

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1711597911380/6bebf490-cf47-4788-aac0-816d2653c942.png align="center")

---

## Done

---

### Conclusion

By following these steps, you can easily set an OpenAI API key.

---

### **Celebrate**

![The It Crowd Birthday GIFs | Tenor](https://media.tenor.com/kDyYq4PQuIgAAAAC/clapping-it-crowd.gif align="left")

---

### **Reach me out**

* [**Github**](https://github.com/alexcalaca)
    
* [**LinkedIn**](https://linkedin.com/in/alexandrecalacaofficial)
    
* [**Hashnode**](https://hashnode.com/onboard?next=/@alexandrecalaca)
    
* [**Youtube**](https://www.youtube.com/@alexandrecalacaofficial)
    

---

## Final thoughts

Thank you for reading this article.

If you have any questions, thoughts, suggestions, or corrections, please share them with us.

We appreciate your feedback and look forward to hearing from you.

Feel free to suggest topics for future blog articles. Until next time!
