{"id":293797,"date":"2026-04-04T14:36:31","date_gmt":"2026-04-04T14:36:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nano-banana-image-generator\/"},"modified":"2026-04-04T16:27:25","modified_gmt":"2026-04-04T16:27:25","slug":"45squared-ai-powered-image-generator","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/45squared-ai-powered-image-generator\/","author":23471445,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"6.9.4","requires":"6.4","requires_php":"7.4","requires_plugins":null,"header_name":"45Squared AI Powered Image Generator","header_author":"45Squared","header_description":"Generate and edit images using Google's AI directly from your WordPress dashboard and block editor.","assets_banners_color":"5252a8","last_updated":"2026-04-04 16:27:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/45squared\/45squared-ai-powered-image-generator","header_author_uri":"https:\/\/45squared.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":59,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"45squared","date":"2026-04-04 14:36:15"},"1.0.1":{"tag":"1.0.1","author":"45squared","date":"2026-04-04 16:27:25"}},"upgrade_notice":{"1.0.1":"<p>Fix: API key now works on first save without needing to re-enter it.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3498800,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3498800,"resolution":"1544x500","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"nano-banana\/image-generator":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"nano-banana\/image-generator","version":"1.0.0","title":"45Squared AI Powered Image Generator","category":"media","icon":"format-image","description":"Generate AI images using Google's Gemini directly in the editor.","keywords":["image","ai","generate","45squared"],"supports":{"html":false,"align":["wide","full"]},"textdomain":"45squared-ai-powered-image-generator","editorScript":"file:.\/index.js","editorStyle":"file:.\/editor.css"}},"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Settings page with API key configuration and connection test","2":"Image generation page with prompt input and model selection","3":"Generated images preview with save-to-media-library option","4":"Gutenberg block for in-editor image generation","5":"Image editing from the Media Library attachment details","6":"Generation history log"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2353,224606,236835,52195,84],"plugin_category":[50],"plugin_contributors":[259421],"plugin_business_model":[],"class_list":["post-293797","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-gemini","plugin_tags-google-ai","plugin_tags-image-generator","plugin_tags-media","plugin_category-media","plugin_contributors-45squared","plugin_committers-45squared"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/45squared-ai-powered-image-generator\/assets\/icon-256x256.png?rev=3498800","icon_2x":"https:\/\/ps.w.org\/45squared-ai-powered-image-generator\/assets\/icon-256x256.png?rev=3498800","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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 \u2014 all without leaving the WordPress admin.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li><strong>Text-to-Image Generation<\/strong> \u2014 Describe what you want and get AI-generated images in seconds<\/li>\n<li><strong>Image Editing<\/strong> \u2014 Edit existing images with natural language (\"remove the background\", \"make it a watercolor painting\")<\/li>\n<li><strong>Gutenberg Block<\/strong> \u2014 Generate and insert images directly in the block editor<\/li>\n<li><strong>Media Library Integration<\/strong> \u2014 All generated images are saved with full metadata<\/li>\n<li><strong>Multiple Models<\/strong> \u2014 Choose between Nano Banana (fast), Nano Banana Pro (high quality), or Nano Banana 2 (balanced)<\/li>\n<li><strong>Flexible Aspect Ratios<\/strong> \u2014 1:1, 16:9, 9:16, 4:3, and 3:2<\/li>\n<li><strong>Generation History<\/strong> \u2014 Track all your generations with prompts, timestamps, and models used<\/li>\n<li><strong>Secure<\/strong> \u2014 API key is encrypted at rest and never exposed in page source<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to the Google Gemini API (generativelanguage.googleapis.com) to generate and edit images using AI.<\/p>\n\n<h4>What data is sent and when<\/h4>\n\n<ul>\n<li>When a user generates an image: the text prompt, selected model, aspect ratio, and image size are sent to the API.<\/li>\n<li>When a user edits an existing image: the text prompt and the source image binary data are sent to the API.<\/li>\n<li>When a user tests the API connection from the settings page: a minimal request is sent to verify the API key is valid.<\/li>\n<\/ul>\n\n<p>No data is sent automatically. All requests are initiated explicitly by a logged-in WordPress administrator or editor.<\/p>\n\n<h4>Service provider<\/h4>\n\n<p>This service is provided by Google LLC.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/policies.google.com\/terms\">Google Terms of Service<\/a><\/li>\n<li><a href=\"https:\/\/policies.google.com\/privacy\">Google Privacy Policy<\/a><\/li>\n<li><a href=\"https:\/\/ai.google.dev\/gemini-api\/terms\">Google Gemini API Terms of Service<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>45squared-ai-powered-image-generator<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress<\/li>\n<li>Go to <strong>Settings &gt; Nano Banana<\/strong> to configure your API key<\/li>\n<\/ol>\n\n<p><strong>Getting Your Google AI API Key:<\/strong><\/p>\n\n<ol>\n<li>Go to <a href=\"https:\/\/aistudio.google.com\/\">Google AI Studio<\/a> and sign in with your Google account<\/li>\n<li>In the top navigation, hover over <strong>\"Solutions\"<\/strong> and choose <strong>\"Gemini API\"<\/strong><\/li>\n<li>Accept the Terms of Service when prompted<\/li>\n<li>In the left sidebar, navigate to <strong>\"API Keys\"<\/strong><\/li>\n<li>Click <strong>\"Create API Key\"<\/strong> or view an existing key \u2014 accept the terms and conditions, and a key will be created by default<\/li>\n<li>Copy your API key<\/li>\n<li>Paste it in <strong>Settings &gt; Nano Banana<\/strong> and click <strong>Save Changes<\/strong><\/li>\n<li>Click <strong>Test Connection<\/strong> to verify<\/li>\n<\/ol>\n\n<p><strong>Enable Billing (Required):<\/strong><\/p>\n\n<p>Image generation requires billing to be enabled on your Google Cloud project. Without billing, API requests will be rejected with a quota error.<\/p>\n\n<ol>\n<li>Go to the <a href=\"https:\/\/console.cloud.google.com\/billing\">Google Cloud Console Billing page<\/a><\/li>\n<li>Create a billing account if you don't have one, or select an existing one<\/li>\n<li>Link the billing account to the Google Cloud project associated with your API key<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20is%20nano%20banana%3F\"><h3>What is Nano Banana?<\/h3><\/dt>\n<dd><p>Nano Banana is Google's AI image generation technology built on the Gemini model family. It can create and edit images from text descriptions.<\/p><\/dd>\n<dt id=\"how%20much%20does%20it%20cost%3F\"><h3>How much does it cost?<\/h3><\/dt>\n<dd><p>The plugin is free. API usage is billed by Google. Approximate costs per image (as of March 2026):<\/p>\n\n<ul>\n<li>Nano Banana: ~$0.02\/image<\/li>\n<li>Nano Banana Pro: ~$0.08\/image<\/li>\n<li>Nano Banana 2: ~$0.045\/image<\/li>\n<\/ul>\n\n<p>Check <a href=\"https:\/\/ai.google.dev\/pricing\">Google AI pricing<\/a> for current rates.<\/p><\/dd>\n<dt id=\"which%20model%20should%20i%20choose%3F\"><h3>Which model should I choose?<\/h3><\/dt>\n<dd><ul>\n<li><strong>Nano Banana<\/strong> \u2014 Best for speed and high-volume generation<\/li>\n<li><strong>Nano Banana Pro<\/strong> \u2014 Best for professional, high-fidelity images<\/li>\n<li><strong>Nano Banana 2<\/strong> \u2014 Best balance of quality and speed (recommended)<\/li>\n<\/ul><\/dd>\n<dt id=\"what%20php%20extensions%20are%20required%3F\"><h3>What PHP extensions are required?<\/h3><\/dt>\n<dd><ul>\n<li><code>openssl<\/code> \u2014 for API key encryption<\/li>\n<li><code>curl<\/code> \u2014 for API requests<\/li>\n<li><code>json<\/code> \u2014 for response parsing<\/li>\n<\/ul>\n\n<p>Most hosting providers include these by default.<\/p><\/dd>\n<dt id=\"is%20my%20api%20key%20secure%3F\"><h3>Is my API key secure?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"can%20i%20use%20this%20with%20the%20block%20editor%3F\"><h3>Can I use this with the block editor?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix: API key now works immediately after first save (resolved double-encryption issue)<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Text-to-image generation via admin page<\/li>\n<li>Image-to-image editing from Media Library<\/li>\n<li>Gutenberg block for in-editor generation<\/li>\n<li>Support for Nano Banana, Nano Banana Pro, and Nano Banana 2 models<\/li>\n<li>Encrypted API key storage<\/li>\n<li>Generation history tracking<\/li>\n<\/ul>","raw_excerpt":"Generate and edit images using Google&#039;s Nano Banana AI directly from your WordPress dashboard and block editor.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/293797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=293797"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/45squared"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=293797"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=293797"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=293797"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=293797"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=293797"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=293797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}