Title: 45Squared AI Powered Image Generator
Author: 45squared
Published: <strong>April 4, 2026</strong>
Last modified: April 4, 2026

---

Search plugins

![](https://ps.w.org/45squared-ai-powered-image-generator/assets/icon-256x256.png?
rev=3498800)

# 45Squared AI Powered Image Generator

 By [45squared](https://profiles.wordpress.org/45squared/)

[Download](https://downloads.wordpress.org/plugin/45squared-ai-powered-image-generator.1.0.1.zip)

 * [Details](https://test.wordpress.org/plugins/45squared-ai-powered-image-generator/#description)
 * [Reviews](https://test.wordpress.org/plugins/45squared-ai-powered-image-generator/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/45squared-ai-powered-image-generator/#installation)
 * [Development](https://test.wordpress.org/plugins/45squared-ai-powered-image-generator/#developers)

 [Support](https://wordpress.org/support/plugin/45squared-ai-powered-image-generator/)

## Description

45Squared AI Powered Image Generator brings Google’s powerful AI image generation
to WordPress. Create stunning images from text descriptions, edit existing images
with natural language instructions, and insert them directly into your posts — all
without leaving the WordPress admin.

**Features:**

 * **Text-to-Image Generation** — Describe what you want and get AI-generated images
   in seconds
 * **Image Editing** — Edit existing images with natural language (“remove the background”,“
   make it a watercolor painting”)
 * **Gutenberg Block** — Generate and insert images directly in the block editor
 * **Media Library Integration** — All generated images are saved with full metadata
 * **Multiple Models** — Choose between Nano Banana (fast), Nano Banana Pro (high
   quality), or Nano Banana 2 (balanced)
 * **Flexible Aspect Ratios** — 1:1, 16:9, 9:16, 4:3, and 3:2
 * **Generation History** — Track all your generations with prompts, timestamps,
   and models used
 * **Secure** — API key is encrypted at rest and never exposed in page source

### External services

This plugin connects to the Google Gemini API (generativelanguage.googleapis.com)
to generate and edit images using AI.

#### What data is sent and when

 * When a user generates an image: the text prompt, selected model, aspect ratio,
   and image size are sent to the API.
 * When a user edits an existing image: the text prompt and the source image binary
   data are sent to the API.
 * When a user tests the API connection from the settings page: a minimal request
   is sent to verify the API key is valid.

No data is sent automatically. All requests are initiated explicitly by a logged-
in WordPress administrator or editor.

#### Service provider

This service is provided by Google LLC.

 * [Google Terms of Service](https://policies.google.com/terms)
 * [Google Privacy Policy](https://policies.google.com/privacy)
 * [Google Gemini API Terms of Service](https://ai.google.dev/gemini-api/terms)

## Blocks

This plugin provides 1 block.

 *   45Squared AI Powered Image Generator Generate AI images using Google's Gemini
   directly in the editor.

## Installation

 1. Upload the `45squared-ai-powered-image-generator` folder to `/wp-content/plugins/`
 2. Activate the plugin through the **Plugins** menu in WordPress
 3. Go to **Settings > Nano Banana** to configure your API key

**Getting Your Google AI API Key:**

 1. Go to [Google AI Studio](https://aistudio.google.com/) and sign in with your Google
    account
 2. In the top navigation, hover over **“Solutions”** and choose **“Gemini API”**
 3. Accept the Terms of Service when prompted
 4. In the left sidebar, navigate to **“API Keys”**
 5. Click **“Create API Key”** or view an existing key — accept the terms and conditions,
    and a key will be created by default
 6. Copy your API key
 7. Paste it in **Settings > Nano Banana** and click **Save Changes**
 8. Click **Test Connection** to verify

**Enable Billing (Required):**

Image generation requires billing to be enabled on your Google Cloud project. Without
billing, API requests will be rejected with a quota error.

 1. Go to the [Google Cloud Console Billing page](https://console.cloud.google.com/billing)
 2. Create a billing account if you don’t have one, or select an existing one
 3. Link the billing account to the Google Cloud project associated with your API key

## FAQ

### What is Nano Banana?

Nano Banana is Google’s AI image generation technology built on the Gemini model
family. It can create and edit images from text descriptions.

### How much does it cost?

The plugin is free. API usage is billed by Google. Approximate costs per image (
as of March 2026):

 * Nano Banana: ~$0.02/image
 * Nano Banana Pro: ~$0.08/image
 * Nano Banana 2: ~$0.045/image

Check [Google AI pricing](https://ai.google.dev/pricing) for current rates.

### Which model should I choose?

 * **Nano Banana** — Best for speed and high-volume generation
 * **Nano Banana Pro** — Best for professional, high-fidelity images
 * **Nano Banana 2** — Best balance of quality and speed (recommended)

### What PHP extensions are required?

 * `openssl` — for API key encryption
 * `curl` — for API requests
 * `json` — for response parsing

Most hosting providers include these by default.

### Is my API key secure?

Yes. Your API key is encrypted using AES-256-CBC before being stored in the database.
It is never output in page HTML or REST API responses.

### Can I use this with the block editor?

Yes! Search for “Nano Banana” in the block inserter. The block lets you generate
an image from a prompt and inserts it as a standard Image block.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“45Squared AI Powered Image Generator” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ 45squared ](https://profiles.wordpress.org/45squared/)

[Translate “45Squared AI Powered Image Generator” into your language.](https://translate.wordpress.org/projects/wp-plugins/45squared-ai-powered-image-generator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/45squared-ai-powered-image-generator/),
check out the [SVN repository](https://plugins.svn.wordpress.org/45squared-ai-powered-image-generator/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/45squared-ai-powered-image-generator/)
by [RSS](https://plugins.trac.wordpress.org/log/45squared-ai-powered-image-generator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fix: API key now works immediately after first save (resolved double-encryption
   issue)

#### 1.0.0

 * Initial release
 * Text-to-image generation via admin page
 * Image-to-image editing from Media Library
 * Gutenberg block for in-editor generation
 * Support for Nano Banana, Nano Banana Pro, and Nano Banana 2 models
 * Encrypted API key storage
 * Generation history tracking

## Meta

 *  Version **1.0.1**
 *  Last updated **1 month ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/45squared-ai-powered-image-generator/)
 * Tags
 * [AI](https://test.wordpress.org/plugins/tags/ai/)[Gemini](https://test.wordpress.org/plugins/tags/gemini/)
   [google-ai](https://test.wordpress.org/plugins/tags/google-ai/)[image generator](https://test.wordpress.org/plugins/tags/image-generator/)
   [media](https://test.wordpress.org/plugins/tags/media/)
 *  [Advanced View](https://test.wordpress.org/plugins/45squared-ai-powered-image-generator/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/45squared-ai-powered-image-generator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/45squared-ai-powered-image-generator/reviews/)

## Contributors

 *   [ 45squared ](https://profiles.wordpress.org/45squared/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/45squared-ai-powered-image-generator/)