返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
g

gemini-image-simple

Generate and edit images with Gemini API using pure Python stdlib. Zero dependencies - works on locked-down environments where pip/uv aren't available.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
6,826
下载量
3
收藏
概述
安装方式
版本历史

gemini-image-simple

# Gemini Image Simple Generate and edit images using Google's **Nano Banana Pro** (Gemini 3 Pro Image) - the highest quality image generation model. ## Why This Skill | Feature | This Skill | Others (nano-banana-pro, etc.) | |---------|------------|-------------------------------| | **Dependencies** | None (stdlib only) | google-genai, pillow, etc. | | **Requires pip/uv** | ❌ No | ✅ Yes | | **Works on Fly.io free** | ✅ Yes | ❌ Fails | | **Works in containers** | ✅ Yes | ❌ Often fails | | **Image generation** | ✅ Full | ✅ Full | | **Image editing** | ✅ Yes | ✅ Yes | | **Setup complexity** | Just set API key | Install packages first | **Bottom line:** This skill works anywhere Python 3 exists. No package managers, no virtual environments, no permission issues. ## Quick Start ```bash # Generate python3 /data/clawd/skills/gemini-image-simple/scripts/generate.py "A cat wearing a tiny hat" cat.png # Edit existing image python3 /data/clawd/skills/gemini-image-simple/scripts/generate.py "Make it sunset lighting" edited.png --input original.png ``` ## Usage ### Generate new image ```bash python3 {baseDir}/scripts/generate.py "your prompt" output.png ``` ### Edit existing image ```bash python3 {baseDir}/scripts/generate.py "edit instructions" output.png --input source.png ``` Supported input formats: PNG, JPG, JPEG, GIF, WEBP ## Environment Set `GEMINI_API_KEY` environment variable. Get one at https://aistudio.google.com/apikey ## How It Works Uses **Nano Banana Pro** (`nano-banana-pro-preview`) - Google's highest quality image generation model: - Pure `urllib.request` for HTTP (no requests library) - Pure `json` for parsing (stdlib) - Pure `base64` for encoding (stdlib) That's it. No external packages. Works on any Python 3.10+ installation. ## Model Currently using: `nano-banana-pro-preview` (also known as Gemini 3 Pro Image) Other available models (can be changed in generate.py if needed): - `gemini-3-pro-image-preview` - Same as Nano Banana Pro - `imagen-4.0-ultra-generate-001` - Imagen 4.0 Ultra - `imagen-4.0-generate-001` - Imagen 4.0 - `gemini-2.5-flash-image` - Gemini 2.5 Flash with image gen ## Examples ```bash # Landscape python3 {baseDir}/scripts/generate.py "Misty mountains at sunrise, photorealistic" mountains.png # Product shot python3 {baseDir}/scripts/generate.py "Minimalist product photo of a coffee cup, white background" coffee.png # Edit: change style python3 {baseDir}/scripts/generate.py "Convert to watercolor painting style" watercolor.png --input photo.jpg # Edit: add element python3 {baseDir}/scripts/generate.py "Add a rainbow in the sky" rainbow.png --input landscape.png ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gemini-image-simple-1776376589 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gemini-image-simple-1776376589 技能

通过命令行安装

skillhub install gemini-image-simple-1776376589

下载 Zip 包

⬇ 下载 gemini-image-simple v1.1.0

文件大小: 3.68 KB | 发布时间: 2026-4-17 14:38

v1.1.0 最新 2026-4-17 14:38
- Switched image generation model to "Nano Banana Pro" (`nano-banana-pro-preview`), delivering highest quality image generation (Gemini 3 Pro Image).
- Updated documentation to reflect the new model and its aliases, including information about alternative models.
- Enhanced "How It Works" and "Model" sections in SKILL.md for clarity and transparency.
- All functionality remains dependency-free and continues to work on any Python 3.10+ installation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部