Generate an image synchronously
在线测试
同步生成图片
发送 Gemini 原生 Nano Banana 请求,并在同一连接中接收完整结果。
POST
Generate an image synchronously
调用方能够等待最终 Gemini 响应时使用此方法。
共享 schema 包含整个家族的尺寸枚举;发送 Try it 前,请在对应模型参数页确认该值有效。
比较模型限制
真实调用前确认价格和分辨率。
授权
YingTu API key.
路径参数
Current Nano Banana model ID.
可用选项:
gemini-2.5-flash-image, gemini-3.1-flash-lite-image, gemini-3.1-flash-image, gemini-3-pro-image 请求体
application/json
Messages sent to the model.
Minimum array length:
1Optional Gemini tools. Availability depends on the selected image model.
Configuration for tools declared in tools.
Optional cached content resource name when supported by the selected model.
响应
Complete Gemini response