ImageGoogleNew

Nano Banana 2.1

Google's newest Gemini image model

model: "nano-banana-2-1"

API docsDocs for agents

Modes

One model id, every mode below. The fields you send pick the mode, and the price follows the mode.

ModeSelected byTypical price
Text to imageprompt
Example request
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.073
Image editimage_url
Example request
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.088

Input

Required

Prompt

Optional
1

Number of Images

Optional

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.

Optional

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

Optional

Aspect Ratio

Optional

Seed

Advanced options (1)

Provider settings beyond the main controls. Leave them empty to use the model's defaults.

Optional

File format of the result.

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": {}
}'