Reputation: 1243
I am trying to call Custom Vision Prediction Classification RestAPI Endpoint (https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/operations/5c82db60bf6a2b11a8247c15)
I am using South Central US endpoint
I got the required Training and Prediction key from Keys section In Resource Management Azure Portal
Following is the response I am getting back if I call the Custom Vision Prediction classification RestAPI Endpoint
{
"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."
}
}
I can see that It saying that my current pricing tier is not supporting 3.0 API but the plan S0(Standard) costing me 0.35 USD per 1k images and my subscription plan is Pay-As-You-Go
Then Why I am getting this error?
Any help appreciated
Upvotes: 3
Views: 1595
Reputation: 1461
Had the exact same issue but our problem was caused by not publishing the iteration we were trying to access.
Once we published the iteration and used the prediction key the issue was resolved.
Upvotes: 0
Reputation: 16148
When you create a Custom Vision in your Azure subscription, two resources are created for you: One for Training and one for Prediction. Each has a dedicated set of API keys.
Make sure to use the correct resource for either Training or Prediction usage.
Upvotes: 5