Available HTTP endpoints for gpt-image-1 deployments in Foundry

SF DevOps 0 Reputation points
2025-12-03T15:13:24.0266667+00:00

Hello, I would like to receive clarification what HTTP endpoints are available to send POST requests for generating images with gpt-image-1/gpt-image-1-mini.

I have the following model I'm trying to send requests to: Model deployment name: gpt-image-1 Model Type: gpt-image-1 Region: swedencentral

To be clear, I am already able to send requests to generate images using these URLs:

  • https://<FOUNDRY-NAME>.openai.azure.com/openai/v1/images/generations
  • https://<FOUNDRY-NAME>.services.ai.azure.com/openai/v1/images/generations

In my use case however it is required that the model deployment name is somehow contained in the URL of image generation. The reason is that I need to configure a Foundry model endpoint for usage with LibreChat, an open source LLM chat interface. And LibreChat only exposes the settings for base URL and API version without any control over the "model" attribute of a POST request body. In fact, other LibreChat admins have encountered the problem of integrating gpt-image-1 from Azure as well as seen here: https://github.com/danny-avila/LibreChat/discussions/7971

On the web, I have seen others reporting using following kinds of endpoints:

  • https://<FOUNDRY-NAME>.openai.azure.com/openai/deployments/<MODEL-DEPLOYMENT-NAME>
  • https://<FOUNDRY-NAME>.services.ai.azure.com/openai/deployments/<MODEL-DEPLOYMENT-NAME>/images/generations?api-version=20xx-xx-xx
  • https://<FOUNDRY-NAME>.cognitiveservices.azure.com/openai/deployments/<MODEL-DEPLOYMENT-NAME>?api-version=20xx-xx-xx

However for me these URLs don't seem to function. For any of these kinds of URLs, the response is 404 message: Resource not found . Unfortunately in the Microsoft documentation, I can't find a single example how to use the /openai/deployments route with images. Could this be possibly be a region related issue?

In summary, my use case requires a URL where the model deployment name is part of the endpoint path. The official docs and other web users suggest that such an endpoint exists, but I'm not able to run any successful requests this way.

Thanks

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-03T15:14:38.0766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.