mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1695] [MERGED] feat: add gemini_image (available for nano banana) #2036
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1695
Author: @Zhaohuai-L
Created: 9/11/2025
Status: ✅ Merged
Merged: 9/17/2025
Merged by: @crazywoola
Base:
main← Head:feat_gemini_nano_banana📝 Commits (3)
7cd7065feat: add gemini_imagee87d28cfix: add dependencies24bac7dfeat: add description of gemini image📊 Changes
10 files changed (+310 additions, -0 deletions)
View changed files
➕
tools/gemini_image/.env.example(+4 -0)➕
tools/gemini_image/README.md(+40 -0)➕
tools/gemini_image/_assets/icon.png(+0 -0)➕
tools/gemini_image/main.py(+6 -0)➕
tools/gemini_image/manifest.yaml(+35 -0)➕
tools/gemini_image/provider/gemini_image.py(+20 -0)➕
tools/gemini_image/provider/gemini_image.yaml(+55 -0)➕
tools/gemini_image/requirements.txt(+5 -0)➕
tools/gemini_image/tools/image_generate.py(+89 -0)➕
tools/gemini_image/tools/image_generate.yaml(+56 -0)📄 Description
Related Issues or Context
This PR adds support for google's image generation and editing models including gemini-2.5-flash-image-preview ( also known as Nano banana)
This PR is based on demo code of gemini, refering to https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/getting-started/intro_gemini_2_5_image_gen.ipynb
Image Generation:

Image Editing:

This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.