# Google’s Gemini Nano Banana 2.1 now available in AI Gateway

By Steven Van · 2026-10-06

Developers can generate images from Netlify Functions without configuring API keys, using the Google Gen AI SDK.

Netlify Functions can now generate images with Google’s Gemini Nano Banana 2.1 without developers configuring API keys. [Netlify](<https://creatorstoolbox.com/tools/netlify>) AI Gateway handles the connection to Google.

## Generate and return an image

Developers call the model through the Google Gen AI SDK using the model ID gemini-nano-banana-2.1. The [announcement’s example](<https://www.netlify.com/changelog/gemini-nano-banana-2-1-ai-gateway/>) takes a prompt from a GET request, requests a 16:9 image at 1K size, and returns the image directly with the appropriate content type. Errors return a JSON response.

## Supported function types

The model is also available across Scheduled Functions, Background Functions, and Edge Functions, with automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.

![Netlify](<https://www.google.com/s2/favicons?domain=netlify.com&sz=128>)

Netlify

Lightning-fast web platform for deploying, hosting, and scaling modern sites — one-click deploys from Git or any modern AI builder.

[View Netlify →](<https://creatorstoolbox.com/tools/netlify>)

[Original source](<https://www.netlify.com/changelog/gemini-nano-banana-2-1-ai-gateway/>)

[Read Google’s Gemini Nano Banana 2.1 now available in AI Gateway on Creators Toolbox](<https://creatorstoolbox.com/blog/netlify-google-s-gemini-nano-banana-2-1-now-available-in-ai-gateway>)

---
Canonical source: https://creatorstoolbox.com/blog/netlify-google-s-gemini-nano-banana-2-1-now-available-in-ai-gateway
