An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hello Fcabla,
Greetings! Thanks for raising this question in the Q&A forum.
Based on the testing you have already performed, this does not appear to be an issue with your prompt, image resolution, or the detail setting.
The most significant indication is that the same image and prompt produce approximately 3,427 input tokens through the OpenAI API but only around 1,433 tokens through Azure OpenAI with gpt-6-luna. You have also reproduced the same behavior across two independent Azure OpenAI resources, while gpt-5.4-mini processes the same document correctly.
Azure currently documents gpt-6-luna as version 2026-09-22
The current Azure OpenAI documentation lists:
gpt-6-luna (2026-09-22)
Microsoft documentation also confirms that gpt-6-luna supports image input and both the Responses and Chat Completions APIs.
There was an image encoding fix after this model release
OpenAI documented an image-encoding issue affecting GPT-6 Sol and GPT-6 Luna and published a server-side fix on September 25, 2026.
At present, I am not able to find public Microsoft documentation confirming that this September 25 image-encoding fix has also been rolled out to the Azure OpenAI serving path.
Therefore, it would not be safe to assume that the behavior of the Azure-hosted 2026-09-22 deployment is currently identical to the OpenAI API for image preprocessing.
The token difference is worth escalating
Azure documentation states that detail: high should use a higher-resolution representation of the image and therefore consume more image tokens to capture finer details.
Since your Azure requests consistently show substantially fewer input tokens and lose the same repeated digits, despite using detail: high, this is strong evidence that the issue should be investigated at the service/backend level.
Open an Azure support request with the reproducible case
I recommend opening an Azure support request under Azure OpenAI / Microsoft Foundry and providing:
Azure OpenAI resource and region
Deployment name
x-ms-served-model: gpt-6-luna-2026-09-22
apim-request-id from several failing requests
Request timestamps in UTC
Input token counts from Azure and OpenAI
The synthetic test image
Exact request payload
Expected and actual extracted reference numbers
Confirmation that the issue reproduces across Spain Central and West Europe
This should allow the Azure OpenAI engineering team to confirm whether the September 25 image-encoding fix is present in Azure or whether there is a separate Azure-specific image preprocessing difference.
Use the working model/workaround temporarily
Until the Azure behavior is confirmed or corrected, using gpt-5.4-mini, which you have already verified works correctly, would be the safer option for production document extraction.
Splitting the document into smaller image regions is also a valid temporary mitigation, but as you mentioned, it should not be necessary as the permanent solution for a document processing pipeline.
Regarding a newer gpt-6-luna version, the currently published Azure documentation still lists 2026-09-22. I would not want to speculate on the release date of another Luna version until Microsoft publishes it in the model availability documentation.
Your reproduction is detailed enough that I would recommend treating this as a possible Azure service parity/backend issue rather than continuing to tune the prompt.
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.