Question: How to create API key in Google Console
Answer: After starting a new project you will see the button Enable APIs and Services in the Dashboard. Enable Perspective API if you did not do so before.
After that visiting Credentials page of your project and choose to create Credentials of type API Key -
http://prntscr.com/kw3yl9