社区中心 | 未监视
标记不受 Microsoft 监视。
API请求信息:
curl --location 'https://aip-eastus2.openai.azure.com/openai/v1/responses' \
--header 'api-key: *********' \
--header 'x-ms-oai-image-generation-deployment: gpt-image-2' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-5.4-mini",
"input": "Generate an image of a sunset over mountains",
"tools": [{
"type": "image_generation",
"model": "gpt-image-2"
}]
```}'
API响应报错信息:
{
```yaml
"error": {
"message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 if you keep seeing this error. (Please include the request ID fc8fc875-4482-4101-8d28-dabecb7991b6 in your email.)",
"type": "server_error",
"param": null,
"code": "server_error"
}
```}
标记不受 Microsoft 监视。