Chat completion endpoint with vision model returning invalid image data

srikanth penmetsa 0 Reputation points
2025-05-02T10:36:48.2633333+00:00

When we pass base64 image data to image_url, it is throwing invalid image data error. But the image data seems to be valid as we are able to create the image using the data.

Below is the request url and request body is attached. please suggest.

POST https://xxxxxxxx.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2025-01-01-preview

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,950 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.