๐ŸŒ Nanobanana API Documentation

High-quality image generation powered by Gemini 2.5 Flash

โšก Generate images in ~2-4 seconds

๐Ÿš€ Try It Now!

๐Ÿ“š Basic Generation Examples

๐Ÿ‘ค Portrait

๐Ÿ”๏ธ Landscape

๐ŸŽจ Abstract Art

๐Ÿ“ธ Product Photo

โœ๏ธ Image Editing Playground

Original

Edit Instructions

Result

Result will appear here

๐ŸŽฌ Multi-Image Composition Studio

Reference Images

Composed Result

Composed image will appear here

๐Ÿงช Prompt Engineering Lab

Build Your Prompt

professional businesswoman smiling confidently modern office natural lighting photorealistic

Live Preview

๐ŸŽฎ Interactive Playground

Parameters

// GET Request Example
const imageUrl = "/api/nanobanana/image/512/512?prompt=wizard%20in%20purple%20robes%20holding%20crystal%20staff%20photorealistic";

// Use in HTML
<img src="${imageUrl}" alt="Generated image" />

// Or fetch and process
fetch(imageUrl)
  .then(response => response.blob())
  .then(blob => {
    const url = URL.createObjectURL(blob);
    document.getElementById('myImage').src = url;
  });

Live Preview

Click Generate to see result