画像Google新規

Nano Banana 2

Google Gemini 搭載の画像生成

model: "nano-banana-2"

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

モード

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

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

入力

必須

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.

結果

Nano Banana 2出力例

このモデルの実際の結果です。実行してあなたの結果をここに表示させてください。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2",
  "input": {
    "prompt": "a full-body shot of a fantasy man, in their thirties, of Southeast Asian heritage, with fair skin, with hazel eyes, chestnut hair tied up in a top knot, and a muscular build, in a glass-walled office at golden hour, city skyline soft behind. Cinematic key lighting with atmospheric haze, richly detailed costume and materials, painterly realism, consistent character design"
  }
}'
Nano Banana 2 1Nano Banana 2 2Nano Banana 2 3Nano Banana 2 4Nano Banana 2 5Nano Banana 2 6