Netlify AI Gateway Example: A Function That Returns Nano Banana-Generated Images
thisiskp_ · x · 2026-10-07
Netlify's changelog shows a Function that takes a prompt from the query string and returns the generated image directly with the right content type — aspect ratio and size go in the config, while AI Gateway handles the connection to Google. thisiskp demoed it with Nano Banana 2.1, showing how a few lines of code give you your own image-generation API endpoint.
More from coding & agent
- Matt Pocock: Agents just need a clear goal to get strategic — he's building a skill for it — mattpocockuk · 2026-10-07
- Stripe solicits web businesses for trusted-agent admission pilot — jeff_weinstein · 2026-10-07
- Merge API named one of Fast Company's 7 next big things in foundational AI for 2026 — shensi · 2026-10-07
- Dev lets AI agent rebuild ASC CLI codebase across 27 resets, first one done — rudrank · 2026-10-07
- Dev rewrites manim in pure Rust: one 13MB binary vs 11GB, much faster — doodlestein · 2026-10-07
- The agent's ten commandments: record truth, decide before measuring, fix whole classes — GhaffariMaani · 2026-10-07