2

I tried both 'Key 1' and 'Key 2' of Face API from https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/ in this. But am getting the following error. How can I get a new API key? or how can I fix this problem?

{ "error": { "code": "Unspecified", "message": "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key." } }

Ahmad.SA
  • 21
  • 3

1 Answers1

0

Please make sure that:

  1. You've specified the correct endpoint. The endpoint is shown on the same my_apis link you included. An API key for one region/property will not work in another.
  2. Your key has not expired. The remaining days will be shown on that same link.
cthrash
  • 2,938
  • 2
  • 11
  • 10
  • I Have the same problem too. I tried both keys and I have 28 days left – Nandita Damaraju Jul 17 '17 at 19:17
  • 1
    Can you try [this](https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395248) page? Launch an API Test Console by clicking on the correct region (WestUS, etc.). You will need to enter the API key in the edit box on the second page. – cthrash Jul 17 '17 at 23:40