图像Google新增

Nano Banana

Gemini驱动的基础图像模型

model: "nano-banana"

API 文档代理文档

模式

一个模型ID,支持下列所有模式。您发送的字段决定模式,价格随模式而定。

模式选择方式典型价格
文本生成图像prompt
请求示例
{
  "model": "nano-banana",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.040

输入

必需

Prompt

可选
1

Count

可选

Aspect Ratio

高级选项 (2)

主要控件之外的提供商设置。保持为空可使用模型的默认值。

可选

File format of the result.

可选

Random seed. The same seed and input reproduce the same result.

结果

Nano Banana示例输出

该模型的真实结果。运行它可在此处查看您的输出。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana",
  "input": {
    "prompt": "Illustrated editorial portrait of a New Orleans brass band second-liner mid-strut, trombone slide fully extended at the moment of a low note, loose expressive gouache brushwork blending photorealistic brass instrument sheen with painterly crowd confetti dissolving behind, vertical composition, deep cobalt and warm gold palette, feathered hat casting a dramatic shadow across the musician'\''s face, music and dance fine-art fusion"
  }
}'
Nano Banana 1Nano Banana 2Nano Banana 3Nano Banana 4Nano Banana 5Nano Banana 6