Hello @Amit Gelber,
If you're trying to work with image inputs using GPT-Image-1 (also referred to as gpt-4o or gpt-4-vision-preview) on Azure, it's important to know that Azure OpenAI Service does not currently support vision models. This includes both the Azure OpenAI SDK and the REST API endpoints exposed by Azure. This limitation is the primary reason you're encountering issues when trying to use these models.
You might have attempted to use the OpenAI SDK (available from OpenAI directly) with your Azure OpenAI resource. Unfortunately, this won’t work due to authentication differences. The OpenAI SDK requires OpenAI-issued API keys, which are not interchangeable with Azure resource keys. If you try to use an Azure key with the OpenAI SDK, you’ll get authentication errors. This is a known limitation and expected behavior.
If you're facing auth issues using the OpenAI SDK directly, make sure that you've correctly set up your Azure OpenAI resource and that you are using the right keys. Ensure that you’ve configured the signed headers correctly if applicable.
The Azure OpenAI SDK currently does not support any models with image input capabilities, such as gpt-4o. Even though gpt-4o is in public preview, the image input feature is not yet available on Azure.
At this time, Microsoft has not announced a specific timeline for when vision-enabled models will be available through the Azure OpenAI Service. You can monitor their progress and announcements via the Azure OpenAI release notes and the Azure Updates portal.
Practical examples are available on the Azure SDK for [JavaScript GitHub repository], which can help you understand how to implement the functionality you require.
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!