Azure OpenAI always return "BadRequest: Invalid image data."

Qingan Li 0 Reputation points
2025-05-28T04:26:16.4966667+00:00

The Azure OpenAI API always returns 'BadRequest: Invalid image data.' regardless of how the image is input, even if I don't change anything.

I also tested it on the Chat Playground in Azure AI Foundry, but it still returned 'BadRequest: Invalid image data.' I tried different models, including 4o, 4o mini, o4-mini, o3, 4.1-nano, and 4.1-mini, but none of them were able to process images. All returned 'BadRequest: Invalid image data,' even when using the image provided in Azure's documentation.

Annotated

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
{count} votes

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.