Lachin Fernando Did you get a chance to see my response?
In Addition, Please try to use the key and endpoint you see in custom vision studio for your project as mentioned in the documentation Get the URL and prediction key
Do let us know if you need further help.