WP Manifestindependent plugin directory
manifest / ai / nanobanana-plugin

Banana AI Generator

Plugin for WordPress using NanoBanana API

by Gagkoeva Ilana · github.com/ilana-gagkoeva/nanobanana-plugin

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ilana-gagkoeva/nanobanana-plugin/archive/refs/heads/main.zip

Banana AI Generator for WordPress

A custom WordPress plugin that adds an AI image generation form to a WordPress site.

The plugin allows users to:

  • enter a text prompt;
  • upload up to 8 reference images;
  • send the request to Banana/NanoBanana API;
  • receive and display the generated image on the website.

Features

  • WordPress shortcode form
  • Prompt-based image generation
  • Image-to-image generation with up to 8 uploaded images
  • API key stored in WordPress admin settings
  • AJAX-based frontend interaction
  • Callback endpoint for receiving generation results
  • Basic file validation for uploaded images

Shortcode

Add this shortcode to any WordPress page:

[banana_ai_generator]

Installation

  1. Download or clone this repository.
  2. Copy the banana-ai-generator folder into wp-content/plugins/.
  3. Go to WordPress Admin → Plugins.
  4. Activate Banana AI Generator.
  5. Go to Settings → Banana AI Generator.
  6. Add your Banana/NanoBanana API key.
  7. Add the shortcode to a page.

API Key Security

The API key is stored in WordPress settings and is never exposed in frontend JavaScript.

Do not commit API keys, .env files, or WordPress configuration files to the repository.

Development Notes

Current flow:

  1. User enters a prompt.
  2. User optionally uploads up to 8 images.
  3. WordPress uploads images to the media library.
  4. WordPress sends the prompt and image URLs to the API.
  5. API returns a task ID.
  6. WordPress waits for the callback or checks local task status.
  7. Generated image is displayed on the page.

Roadmap

  • Save generated images to WordPress Media Library
  • Add generation history
  • Add user limits
  • Add admin settings for default image size
  • Add better error handling
  • Add support for multiple API providers