Click this link https://console.cloud.google.com/
Click this link https://aistudio.google.com/app/apikey
Create an API key