An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi Chennakesavulu, Venkata Rohith (Cognizant),
Thanks for sharing the details.
About the 404 error with gpt image 1.5 when calling images edits. A 404 usually means the endpoint you are calling is not available in the way it is being invoked. In your case, this can happen if the URL format or the api version does not match what Azure expects for image editing. Azure documentation shows that GPT image models support editing, including inpainting and variations, but you must use the correct Azure image generation API flow and supported api version. Please cross check your endpoint format and api version using the official Azure image generation guide for GPT image models.
A good next step is to verify you are using the Azure documented image generation endpoint pattern for GPT image models and not mixing it with another base path. The official how to guide is here and includes the supported models and capabilities. Azure OpenAI image generation models
Also note that the Azure AI Foundry playground can sometimes work even when your direct REST call fails, because the playground may route requests through an internal workflow. So, the playground working does not always guarantee that the same route is exposed the same way for your direct call. This difference is exactly what you are seeing.
About gpt image 1.0 returning Your request was rejected by the safety system. This is a safety filter block. It means either the input image or the edit prompt is being flagged by the safety system. There is no supported bypass for this. The only practical way is to adjust the edit prompt to be more neutral and avoid sensitive or risky content, and also test with a different source image to see if the input itself is triggering the block.
Here are simple troubleshooting steps you can try.
Check endpoint and api version Make sure you are using the Azure documented image generation and editing flow for GPT image models and the api version shown in the Azure guide. A mismatch in api version or path is a common reason for 404. [stackoverflow.com]
Validate the request format for edits For edits, ensure you are sending the image and optional mask in the required multipart form format, because edits are not sent the same way as a normal JSON text request. The Azure image generation documentation covers this at a high level and the model capabilities table confirms editing is supported for GPT image models.
Handle safety rejection If the request is rejected by the safety system, simplify the prompt and avoid instructions that could be interpreted as unsafe. Also try a different input image to confirm whether the source image is the trigger. There is no supported override for safety blocks. [ai.azure.com]
Alternative approach If your main goal is editing workflows, you can also consider using the Responses API image tool for multi-step flows. OpenAI documentation explains that image generation can be done via the image API or the Responses API, depending on the workflow. In Azure, the official guidance is still to follow the Azure image generation models documentation for supported usage. [developers...openai.com]
Model catalog page for gpt image 1.5 and its capabilities gpt-image-1.5 model catalog
I hope this helps. If you can share which exact endpoint URL format and api version you are using for images edits, it becomes much easier to spot why you are getting the 404.
Thankyou!