跳到主要内容
Google · 发布于 2025-10-09

Nano Banana (Gemini 2.5 Flash Image)

Text → ImageImage → Image

Gemini 2.5 Flash Image (“Nano Banana”) is Google’s state-of-the-art image generation and editing model with advanced contextual understanding. It supports image creation, editing, and multi-turn conversational refinement, enabling flexible visual workflows. Developers can control image aspect ratios through the image_config API parameter.

google/gemini-2.5-flash-image

官方示例

输入
提示词

圣诞节的纽约时代广场,节日氛围浓厚!

输出

参数说明

由模型输入 Schema 解析
参数类型默认值说明
prompt必填string提示词
aspect_ratiostring1:1宽高比1:1 · 3:2 · 2:3 · 3:4 · 4:3 · 4:5 …
response_modalitiesarrayIMAGE响应模态
image必填string图片Url
images必填array图片Url数组1 – 5

接入示例

提交生成任务后轮询结果——一把 key 调用全部模型。

获取 API Key 获取 API Key
# 提交任务
curl https://router-integration.test.cogfoundry.ai/api/v1/tasks/generations \
  -H "Authorization: Bearer $MODEL_CENTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemini-2.5-flash-image",
  "aspect_ratio": "4:3",
  "prompt": "圣诞节的纽约时代广场,节日氛围浓厚!",
  "response_modalities": [
    "IMAGE"
  ]
}'

# 轮询结果(REQUEST_ID 来自上一步返回的 data.request_id)
curl https://router-integration.test.cogfoundry.ai/api/v1/tasks/generations/REQUEST_ID \
  -H "Authorization: Bearer $MODEL_CENTER_API_KEY"

定价

USD · 实时汇率
定价USD
输入$0.30
输入图像$0.30
输入视频$0.30
输入音频$1.00
输出$2.50
输出图像$30.00

供应商

提供该模型的渠道
供应商 起价
Google Vertex $0.30
OpenRouter $0.30

Google 的更多模型