google/gemini-2.5-flash-image
Nano Banana (Gemini 2.5 Flash Image)
Gemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image generation, edits, and multi-turn conversations. Aspect ratios can be controlled with the [image_config API Parameter](https://openrouter.ai/docs/features/multimodal/image-generation#image-aspect-ratio-configuration)
输入模态文本 / 图像
输出模态图像
支持协议
发布日期—
能力与模态
当前模型版本支持的输入输出能力
输入模态
文本
图像
输出模态
图像
模型价格
价格与能力以接口实时数据为准
输入价格
$0.3 / M
图片输入
$0.3 / M
图像输出
$0.039 / 张
API 接口
当前模型可以使用的调用端点
原生协议 2
/v1beta/models/{model}:streamGenerateContent
/v1beta/models/{model}:generateContent
转换协议 2
/v1/images/edits
/v1/images/generations
API 接入示例
选择协议与语言,配置 API Key 后运行
调用接口
先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。
POST
https://api.tikway.ai/v1/images/generationscurl --fail-with-body 'https://api.tikway.ai/v1/images/generations' \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-2.5-flash-image",
"prompt": "A quiet coastal town at sunrise, soft natural light"
}'