Hi Shahzad786,
You will need to register and generate and get Google API key and also enable the Google Translation (Translate) API in the Google Console.
In order to use the Google Translation API, you will need to enable Billing for your API and select the Trial pack.