Getting 401 error when accessing Text Analytics for health client library- The Submit text analysis job Operation under Microsoft Cognitive Language Service - 2022-05-15-preview is not supported with the current subscription key and pricing tier AIService

Jessal John 0 Reputation points
2024-12-19T17:17:33.0933333+00:00
{
    "error": {
        "code": "401",
        "message": "The Submit text analysis job Operation under Microsoft Cognitive Language Service - 2022-05-15-preview is not supported with the current subscription key and pricing tier AIServices.S0."
    }
}

How to fix this?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,701 Reputation points
    2024-12-28T00:47:44.6933333+00:00

    @Jessal John

    Thanks for your confirmation, I think I find the issue, you are actually using a OpenAI Endpoint. Please see below screenshot, you should click on the three dots and click on Language Service in your AI service endpoints sub tab.

    User's image

    It should be https://XXXXX.cognitiveservices.azure.com/

    I hope this helps, please let us know if you are still blocked.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.