题意:
如何为 gemini-2.5-flash-image 模型配置结构化输出(Structured Output)?
问题背景:
In the official documentation, it says Structured Output supported:
官方文档中注明,其支持结构化输出(Structured Output):

(Gemini Models, Gemini 2.5 Flash)
But when making requests, it returns an HTTP 400 error:
但发起请求时,系统会返回 HTTP 400 错误:
JSON mode is not enabled for this model
Below is a 400 error example (us


