
azure-openai
#10016
unsupported_image_error
You uploaded an unsupported image. Ensure the image is below 20 MB and in one of these formats: png, jpeg, gif, webp.
This error has been identified and solved.
Reason
The 400 status error in the Azure OpenAI API, specifically the message "You uploaded an unsupported image," is likely due to one of the following reasons:
Incorrect Image Format
The image is not in one of the supported formats, which are PNG, JPEG, WEBP, and non-animated GIF.
Exceeding Size Limit
The image size exceeds the 20 MB limit imposed by the Azure OpenAI service.
Solution
To resolve the 400 status error in the Azure OpenAI API, you need to ensure the image meets the specified criteria. Here are the key steps to take:
Ensure the image is in one of the supported formats: PNG, JPEG, WEBP, or non-animated GIF.
Ensure the image size is below the 20 MB limit.
Verify that the image dimensions do not exceed the internal resizing limits (shortest side no bigger than 768px and longest side no bigger than 2048px) to avoid unnecessary failures.
By adhering to these requirements, you can successfully upload and process your images through the Azure OpenAI API.
Suggested Links
https://cheatsheet.md/chatgpt-cheatsheet/openai-api-error-axioserror-request-failed-status-code-400
https://community.openai.com/t/maximum-number-of-images-in-a-gpt-4v-request/480233
https://portkey.ai/error-library/unsupported-image-error-10015
https://learn.microsoft.com/en-us/answers/questions/2139738/openai-badrequesterror-error-code-400-((error-((me
https://learn.microsoft.com/en-us/azure/ai-studio/how-to/data-image-add
https://github.com/Azure/azure-sdk-for-net/issues/40855
https://community.openai.com/t/400-errors-on-gpt-vision-api-since-today/534538
https://learn.microsoft.com/en-us/answers/questions/1690324/azure-openai-assistants-cant-upload-file-with-visi
https://community.openai.com/t/gpt-4-vision-file-size-limitations/703324