gpt-image-1 on Azure #7649
-
I deployed gpt-image-1 on Azure and tested it via command line: curl -X POST "https:/--westus3.cognitiveservices.azure.com/openai/deployments/gpt-image-1/images/generations?api-version=2025-04-01-preview" -H "Content-Type: application/json" -H "api-key:" -d '{"prompt": "test image", "n": 1, "size": "1024x1024"}' and it works fine. But if accessed through the menu, there is an error: "Making request to https://--westus3.cognitiveservices.azure.com/openai/deployments/gpt-image-1/chat/completions Here is what I have in .env: IMAGE_GEN_OAI_BASEURL=https://-*-westus3.openai.azure.com/openai/deployments/gpt-image-1/ IMAGE_GEN_OAI_AZURE_API_VERSION=2025-04-01-preview `custom:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
You can not access it directly, you need to make an agent. Use any chat model when creating agent and then add tool gp-image-1.