画像Google新規

Nano Banana 2.1

Googleの最新のGeminiイメージモデル

model: "nano-banana-2-1"

APIドキュメントエージェント用ドキュメント

モード

1つのモデルID、すべてのモード。送信するフィールドがモードを決定し、価格はモードに従います。

モード選択方法標準価格
テキストから画像生成prompt
リクエスト例
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.073
画像編集image_url
リクエスト例
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.088

入力

必須

Prompt

オプション
1

Number of Images

オプション

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

オプション

Seed

詳細オプション (1)

メインコントロール以外のプロバイダー設定。空のままにするとモデルのデフォルト値が使用されます。

オプション

File format of the result.

結果

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2-1",
  "input": {}
}'