On this page
article
Nano Banana
1.概述
google推出的文生图/图生图模型。
模型列表:
gemini-2.5-flash-image(Nano-Banana)gemini-3-pro-image-preview(Nano-Banana-Pro)
2.请求说明
- 请求方法:
POST - 请求地址
https://gateway.theturbo.ai/v1/images/edits
3.请求参数
3.1 Head参数
| 参数名称 | 类型 | 必填 | 说明 | 示例值 |
|---|---|---|---|---|
Content-Type |
string | 是 | 设置请求头类型,必须为multipart/form-data |
multipart/form-data; boundary=------------------------y0QNRDhXQUE3yHQi7DEbLz |
Accept |
string | 是 | 设置响应类型,必须为 application/json |
application/json |
Authorization |
string | 是 | 身份验证所需的 API_KEY,格式Bearer $YOUR_API_KEY |
Bearer $YOUR_API_KEY |
3.2 Body 参数 (multipart/form-data)
| 参数名称 | 类型 | 必填 | 说明 | 示例值(默认值) |
|---|---|---|---|---|
| model | string | 是 | 要使用的模型 ID。详见概述列出的可用版本,如 gemini-2.5-flash-image。 | gemini-2.5-flash-image |
| prompt | string | 是 | 一段描述所需图像的文字。 | A cute baby sea otter |
| image | file/file array | 否 | gemini-2.5-flash-image 最多可接受 3 张图片作为输入,而 gemini-3-pro-image-preview 最多可接受 14 张图片,其中 5 张图片可实现高保真度 |
|
| generationConfig | string | 否 | 同google的generationConfig 配置 |