Custom_Vision_Prediction_3.0 REST API 给出 ​​401 错误

Ind*_*ada 3 azure azure-cognitive-services microsoft-custom-vision

我正在尝试调用自定义视觉预测分类 RestAPI 端点(https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/operations/5c82db60bf6a2b11a8247c15

我正在使用美国中南部端点

我从资源管理 Azure 门户中的密钥部分获取了所需的训练和预测密钥

以下是我调用自定义视觉预测分类 RestAPI 端点时得到的响应

{

"error": {
"code": "401",
"message": "The ClassifyImage Operation under Custom_Vision_Prediction_3.0 API is not supported with the current subscription key and pricing tier Custom_Vision.Training.S0."
}
}
Run Code Online (Sandbox Code Playgroud)

我可以看到它说我当前的定价层不支持 3.0 API,但计划 S0(标准)每 1k 图像花费 0.35 美元,而我的订阅计划是即用即付

那么为什么我会收到此错误?

任何帮助表示赞赏

在此输入图像描述

sil*_*ent 5

在 Azure 订阅中创建自定义视觉时,将为您创建两种资源:一种用于训练,一种用于预测。每个都有一组专用的 API 密钥。

在此输入图像描述

确保为训练或预测使用正确的资源。