需要知道API响应报错的原因

He, Amber 0 信誉分
2026-08-03T07:28:54.4333333+00:00

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"

}
```}
社区中心 | 未监视
0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。