Issue with Azure Mistral OCR Deployment – Always Returning null

Francisco dos Santos 25 Reputation points
2025-04-23T02:51:44.2366667+00:00

I’ve successfully deployed the Mistral OCR model via Azure AI Studio:

Deployment Name: mistral-ocr-2503-admjg

Model: mistral-ocr-2503

Endpoint: https://mistral-ocr-2503-admjg.eastus2.models.ai.azure.com/v1/ocr

Status: Succeeded

I’m sending valid PDF documents encoded in Base64 to the /v1/ocr endpoint using the image_url field, as shown in the documentation. The request is accepted with a 200 OK response, but the response body is always null, even for clean PDFs containing machine-readable text.

I’ve tested the same documents with the public Mistral API and received valid OCR results, so I suspect the issue is with the Azure-hosted deployment.

Could you please verify whether the OCR model is fully operational in my deployment? Or advise if additional configuration is needed to enable document processing?

Thanks in advance for your help.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,602 questions
{count} vote

Accepted answer
  1. Arthur-Olivier Fortin 140 Reputation points
    2025-05-30T12:46:08.99+00:00

    What worked for me :

    {
    	"model": "mistral-ocr-2503-deployment",
     	"document": 
    	{    
    		"document_url": "data:image/jpeg;base64,{your_base_64_image_data}",
    	    "type": "image_url"  
    	},   
    	"include_image_base64": true
    }
    
    

    for pdfs you need to change the type param for "document_url"

    The documentation should be updated, it is quite misleading.

    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.