How to call a API custom models (Document intelligence)

Kishor Jayanna 20 Reputation points
2024-04-22T06:49:54.94+00:00

I have trained a custom model, and I'm attempting to utilize the corresponding REST API. However, I'm encountering an error. Could you please assist me in understanding how to run an API for custom models?

{
    "error": {
        "code": "404",
        "message": "Resource not found"
    }
}
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,388 questions
{count} votes

Accepted answer
  1. santoshkc 4,350 Reputation points Microsoft Vendor
    2024-04-22T08:59:56.02+00:00

    Hi @Kishor Jayanna,

    Thank you for reaching out to Microsoft Q&A forum!

    Regarding the error you're encountering, the "404 Resource not found" error message suggests that the API endpoint you're trying to access is incorrect or doesn't exist. Please ensure that you're using the correct endpoint and that you have the necessary permissions to access the API.

    I tried to repro the issue using Postman tool. Kindly use the POST request followed by GET request in the Postman. Once the POST request was done in the Postman, we get the "Operation Location". Kindly use this "Operation Location" URL in the GET request in postman. Please also provide the API key, content type etc in the GET request as well and click on "SEND" button in postman.

    Note : The headers, body in the postman are important to configure while sending the POST request followed by the GET request. POST request is used to submit the forms inside your Blob container to the custom model (URL mentioned in POST request). Then the GET request is used to fetch the model results.

    Screenshots from Postman :

    POST: 2023-12-07 16_02_15-Post data - My Workspace

    Inside the "Body" of POST request in postman, please give your BLOB container SAS URL, as shown below (or) you can select the "binary" option to use the local files: User's image

    Take a note of the "Operation Location" from above step, after clicking on the "SEND" button.  GET :

    User's image For more info, please refer to: API documentation.

    I hope you understand. Do let us know if you any further queries.

    0 comments No comments

0 additional answers

Sort by: Most helpful