图像Google新增

Nano Banana Lite

2秒以下Google Gemini图像生成和编辑

model: "nano-banana-lite"

API 文档代理文档

模式

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

模式选择方式典型价格
文本生成图像prompt
请求示例
{
  "model": "nano-banana-lite",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.042
图像编辑image_url
请求示例
{
  "model": "nano-banana-lite",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.043

输入

必需

Describe the subject, style, and composition

可选
1

Count

可选

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

可选

More source images (https URLs), for edits that combine several images. image_url, if sent, is the first.

可选

Aspect Ratio

可选

Output Format

可选

Seed

结果

Nano Banana Lite示例输出

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

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-lite",
  "input": {
    "prompt": "gitl and boy meeting for the first time in the coffee shop in 9:16 model, highly detailed, sharp focus, professional photography, beautiful lighting, vivid colors, stunning composition, 8k quality"
  }
}'
Nano Banana Lite 1Nano Banana Lite 2Nano Banana Lite 3Nano Banana Lite 4Nano Banana Lite 5Nano Banana Lite 6