Issue accessing deployments in AI Studio

Timothy Rennie 5 Reputation points
2024-06-20T23:07:53.4366667+00:00

I receive an error" Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."

What is going on with my subscription?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,895 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. William Nieto 535 Reputation points
    2024-06-21T01:36:48.7833333+00:00

    Hi @Timothy Rennie The error message “Access denied due to invalid subscription key or wrong API endpoint” typically indicates a problem with your Azure subscription key or the API endpoint you’re using. Here are some steps you can take to resolve it:

    Check Your Subscription Key:

    • Make sure the subscription key you’re using is valid and active. You can usually find this information in your Azure portal or the platform where you obtained the API.
    • Verify that the subscription key corresponds to an active subscription.

    Verify Your API Endpoint:

    • Ensure that you’re using the correct API endpoint for your resource. Double-check that the endpoint matches the region associated with your subscription.
    • If you’re unsure about the correct endpoint, refer to the documentation or support resources related to the specific service you’re using.

    If you’ve already done these checks and the issue persists, consider reaching out to the dedicated support team for Azure OpenAI Service. They can provide more specialized assistance and investigate the problem further.

    For more detailed guidance Azure Cognitive Services Authentication.

    If this answer solves your issue, please vote for it so other community members know that this is a quality answer.

    0 comments No comments

  2. Timothy Rennie 5 Reputation points
    2024-06-24T15:02:20.3833333+00:00

    William,

    Thank you for taking the time to provide some direction. I found if I deployed gpt-4o instead of gpt-35-turbo everything seems to be working.

    All I am doing is following the script in the exercise in learn.microsoft.com Exercise "Get started with prompt flow".

    Things are working for me right now, much appreciated.


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.