Hello,
yes, I double checked the keys and endpoints and they do exists. Does it has to do anything with location of cognitive service? I have it deployed in uksouth and I am trying to use layout model with docx extension
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have an Azure AI services multi-service account, which includes Document Intelligence too as below image.
And I am trying to use Document Intelligence API and using cognitive services endpoint and key to send API call.
string requestUri = $"{serviceOptions.Endpoint}/documentintelligence/documentModels/{documentIntelligenceModelType}:analyze?api-version={documentIntelligenceApiVersion}&locale=en-US&stringIndexType=textElements";
However, I have "NotFound" result from API call. I want to avoid creating Document Intelligence resource as I have multi-service account already which includes access to Document Intelligence.
What is the reason of this issue and how can I use Document Intelligence API/SDK's with multi-service account?
Hello,
yes, I double checked the keys and endpoints and they do exists. Does it has to do anything with location of cognitive service? I have it deployed in uksouth and I am trying to use layout model with docx extension
Hi @Seda Aykutlu,
Thank you for your response. I tried to repro the issue and able to use Document Intelligence API without any issues. I recommend you to use the region header for multi service account. When using the multi-service resource key to make a request to api.cognitive.microsoft.com
, you must include the region in the URL. For example: westus.api.cognitive.microsoft.com
.
When using a multi-service resource key with Document Intelligence, you must specify the resource region with the Ocp-Apim-Subscription-Region
header.
For more info, see: Authenticate with a multi-service resource key.
Also see: Analyze document with document model.
I hope it will work. Thank you.