Go to Google Cloud Console and create a new project. Enter your project name, select location, and click Create.

Click Create API key. You will be asked to choose a Google Cloud project. Select your newly created project (or an existing one) and confirm to generate the key.

Once generated, your API key will appear in a box. Click the copy button to save it to your clipboard.

Copy paste the Api Key.