Share via

I can't reach my model's endpoint and key, inside Custom extraction models to use it out of the studio

KHALED RAJAIE ABDULLAH 0 Reputation points
2025-11-18T12:46:31.7133333+00:00

Hello Microsoft Support Team, I am using an Azure Form Recognizer resource (realdemo) and trained a custom model (UmniaOcrTest), but I am unable to access the model API because I cannot find a model-specific endpoint or key in the settings section of the model inside the project. I need guidance on how to properly access the API for my model in Document Intelligence studio. i watch tutorial and the endpoint with key is available but into my model is not even deactivated it's not there.

so what is the solution?

Azure Document Intelligence in Foundry Tools
0 comments No comments

2 answers

Sort by: Most helpful
  1. Anshika Varshney 11,595 Reputation points Microsoft External Staff Moderator
    2025-11-20T08:27:26.5933333+00:00

    Hi KHALED RAJAIE ABDULLAH,

    Thanks for the question.

    This issue usually happens when using the Document Intelligence Studio and expecting a separate endpoint and key for each custom model.

    1. The important point is that Azure does not create a unique endpoint or key for every model. The endpoint and key are always at the resource level. So even if you train many models inside the same resource, they all use the same endpoint and key.
    2. To get the correct endpoint and key, open the Azure Portal → go to your Document Intelligence (Form Recognizer) resource → click Keys and Endpoint. You will find your resource endpoint and two access keys there. These are the ones you must use when calling your custom model.
    3. Once you have the endpoint and key, you just need to include your model ID in the request URL. That’s how the API knows which custom model to run. The Studio shows you the model name/ID, and that is what you pass in your API call.
    4. If the model still doesn’t work, check a few things:
    • The model is in “Ready” state.
    • You are using the same region as your resource.
    • The API version matches what your resource supports.
    • Your keys are active and not regenerated.

    Nothing is wrong with your setup. You just need to use the resource endpoint and key, then call your custom model by its model ID. Please let me know if there are any remaining questions or additional details.

    Was this answer helpful?


  2. AI answer

    2025-11-18T12:46:48.96+00:00

    To access your custom model's API in the Document Intelligence Studio, you need to retrieve the endpoint and key from the Azure portal. Here are the steps to follow:

    1. Azure Subscription: Ensure you have an Azure subscription and that your Document Intelligence instance is set up.
    2. Access the Azure Portal: Go to the Azure portal and navigate to your Document Intelligence resource.
    3. Retrieve Keys and Endpoint: On the left pane of your resource, select Keys and Endpoint. This section will provide you with the necessary keys and the endpoint URL to access your custom model.
    4. Use the Endpoint and Key: Once you have the endpoint and key, you can use them to call the API for your custom model. Make sure to include the correct API version in your requests.

    If you still cannot find the endpoint or key, ensure that your resource is properly deployed and that you have the necessary permissions to access it. If the issue persists, consider checking the Azure documentation or reaching out to Azure support for further assistance.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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