使用 Nano Banana API 通过文本提示生成高质量图像。
Documentation Index
Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
Use this file to discover all available pages before exploring further.
| 模型 | 别名 |
|---|---|
gemini-2.5-flash-image | Nano Banana |
gemini-2.5-flash-image-preview | Nano Banana |
gemini-3-pro-image-preview | Nano Banana Pro |
gemini-3.1-flash-image-preview | Nano Banana 2 |
生成图像或修改图像描述词
模型版本
gemini-2.5-flash-image-preview, gemini-2.5-flash-image, gemini-3-pro-image-preview, gemini-3.1-flash-image-preview 参考图像列表,支持多图,图像url和base64
[
"https://cdn.ttapi.io/xxx1.png",
"https://cdn.ttapi.io/xxx2.png"
]图片比例, 仅支持 gemini-3 及以上版本模型使用
1:4、4:1、1:8、8:1 仅 gemini-3.1-flash-image-preview 模型可用
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, 8:1 图片分辨率,注意此处为大写的“K”
1K, 2K, 4K 是否启用谷歌网页搜索
是否启用谷歌图片搜索
思考等级
仅 gemini-3.1-flash-image-preview 模型可用
Minimal, High 是否同步。 true-同步返回图像结果,接口等待耗时较长; false-立马返回 jobId ,通过回调或查询获取图像结果。
回调通知地址