How to upload multiple url/images in Azure Document AI Rest API

Anurag K 20 Reputation points
2024-07-31T09:20:59.4766667+00:00

I want to upload multiple images in the Document AI Rest API but I does not accept that. How do I achieve this? I have a custom model and I am using REST API for inference. I don't want to keep calling the API for similar images one by one.

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,100 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 29,520 Reputation points MVP Volunteer Moderator
    2024-07-31T09:35:18.21+00:00

    Hi there Anurag K

    Thanks for using QandA platform

    for this i guess you need to process each image individually since the API doesn't support batch processing directly. You can upload your images to Azure Blob Storage and generate SAS tokens for access. Then, create a loop in your script to send each image URL to the API sequentially. Collect the results by polling the operation location URLs provided in the response headers. by thhis way, you avoid repeatedly calling the API for similar images one by one and can handle multiple images

    If this helps kindly accept the answer thanks much.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.