1. Get your API key: Create an API key in your dashboard and start integrating immediately. Get API Key
2. Add credits: Fund your account before running image jobs. Add Credits
3. Choose your workflow: Use nano-banana-2-new for text-to-image generation, or nano-banana-2-new-edit for semantic editing and composition. Pass prompt, resolution, size, and optional google_search.
4. Submit and poll asynchronously: In edit mode, send at least one image_urls entry and up to 14 references. The current route uses an async workflow with polling and keeps n fixed at 1, with no local mask workflow exposed. See the docs for request examples: Nano Banana 2 API Docs