For generating images using the gpt-image-1 model in Azure OpenAI, the available HTTP endpoint format includes the model deployment name in the URL. Based on the context provided, the correct endpoint for generating images would be:
POST https://{endpoint}/openai/deployments/{deployment-id}/images/generations?api-version={api-version}
In your case, you would replace {endpoint} with your Azure OpenAI resource name (like <FOUNDRY-NAME>), {deployment-id} with gpt-image-1, and {api-version} with the appropriate API version (e.g., 2024-10-21).
Thus, the complete URL for your requests would look like:
https://<FOUNDRY-NAME>.openai.azure.com/openai/deployments/gpt-image-1/images/generations?api-version=2024-10-21
Make sure that you are using the correct API version and that your deployment name matches exactly. If you are still encountering issues, it could be related to regional availability or specific configurations in your Azure setup.
If you need to check the API version or any other configurations, refer to the Azure documentation for the latest updates and guidelines.