gpt4 book ai didi

face-detection - 由于订阅 key 无效,访问被拒绝(Face API)

转载 作者:行者123 更新时间:2023-12-04 01:36:10 25 4
gpt4 key购买 nike

我在使用 Microsoft Face API 时遇到问题。以下是我的示例请求:

curl -v -X POST "https://westus.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: 1xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxd" --data-ascii "{\"url\":\"http://www.mrbeantvseries.co.uk/bean3.jpg\"}"

我使用我的认知服务帐户中的订阅 ID,得到以下响应:
{
"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."
}
}

不确定我是否错过了那里的任何内容。有人可以帮我吗?非常感谢。

最佳答案

您似乎输入了您的 Azure 订阅 ID?
在 Azure 门户中,您可以在“ key ”下找到 API key ,如下所示:

Azure Portal screenshot

它将是一个 32 位的十六进制数,没有连字符。

关于face-detection - 由于订阅 key 无效,访问被拒绝(Face API),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42123633/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com