YspCoder

Gemini Image Proxy

设计创意v1.0.0
作者:YspCoder更新于 2026-05-11gemini-image-proxy@clawhub_yspcoder/gemini-image-proxy
图片生成图片编辑#Sdk

据 AlphaMoat 统计,截至 2026-09,Gemini Image Proxy 累计下载 2,534 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 4,074 位,在「设计创意」分类(512 个)中排名第 394 位。

累计安装
217
累计下载
2,534
星标
4
全站排名
#4,074
全站前 81% · 「设计创意」前 77%
平台累计安装累计下载星标评论
ClawHub ↗772,3794-
SkillHub ↗2172,5344—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能使用 OpenAI 兼容接口连接图像模型,可根据文本提示生成新图,也可在提供原图后进行编辑。主文要求安装 OpenAI SDK,并配置代理 API key 和 base URL;列出的输入格式包括 PNG、JPG、JPEG、GIF 与 WEBP。提示词和图片会发送给所配置的代理/模型服务;只提交获准远程处理的素材,并妥善保护 API key。

资料发布于 2026-10-27

可以用来做什么

  • 根据文字提示生成图像
  • 基于已有图片生成编辑版本

什么时候用

  • 需要用 Gemini 图像模型生成或编辑图片时
  • 开始调用前需准备兼容端点与访问凭据时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

用 Gemini 3 Pro Image 根据这个描述生成图片
根据编辑要求修改这张图片,并保留原有主体

月度数据趋势

累计下载2,534
1,6842,1412,5972026-03 · 累计下载 1,7472026-05 · 累计下载 1,9582026-06 · 累计下载 2,0462026-07 · 累计下载 2,2232026-08 · 累计下载 2,2972026-09 · 累计下载 2,53426-0326-09
星标4
3452026-03 · 星标 42026-05 · 星标 42026-06 · 星标 42026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,534—4
2026-082,297+3.3%4
2026-072,223+8.7%4
2026-062,046+4.5%4
2026-051,958—4
2026-031,747—4

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v1.0.0
---
name: gemini-image-proxy
version: 1.0.0
description: Generate and edit images with Gemini API using the OpenAI Python SDK.
metadata:
  openclaw:
    emoji: "🎨"
    requires:
      env: ["GOOGLE_PROXY_API_KEY", "GOOGLE_PROXY_BASE_URL"]
---
展开全部(共 109 行)

# Gemini Image Simple

Generate and edit images using **Gemini 3 Pro Image** via the OpenAI Python SDK and an OpenAI-compatible API endpoint.

## Why This Skill

| Feature                  | This Skill                | Others (nano-banana-pro, etc.) |
| ------------------------ | ------------------------- | ------------------------------ |
| **Dependencies**         | openai (SDK)              | google-genai, pillow, etc.     |
| **Requires pip/uv**      | ✅ Yes                    | ✅ Yes                         |
| **Works on Fly.io free** | ✅ Yes (with pip)         | ❌ Fails                       |
| **Works in containers**  | ✅ Yes (with pip)         | ❌ Often fails                 |
| **Image generation**     | ✅ Full                   | ✅ Full                        |
| **Image editing**        | ✅ Yes                    | ✅ Yes                         |
| **Setup complexity**     | Install SDK + set API key | Install packages first         |

**Bottom line:** This skill uses the OpenAI SDK, so you must install `openai` once with pip.

## Install

```bash
python3 -m pip install openai
```

## Quick Start

```bash
# Set env
export GOOGLE_PROXY_API_KEY="your_api_key"
export GOOGLE_PROXY_BASE_URL="https://example.com/v1"

# 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 these environment variables:

- `GOOGLE_PROXY_API_KEY` (your API key)
- `GOOGLE_PROXY_BASE_URL` (OpenAI-compatible base URL, e.g. https://example.com/v1)

## How It Works

Uses **Gemini 3 Pro Image** (`gemini-3-pro-image`) via the OpenAI Python SDK:

- `client.images.generate(...)` for new images
- `client.images.edits(...)` for edits
- Requires the `openai` package

That's it. Works on any Python 3.10+ installation with `openai` installed.

## Model

Currently using: `gemini-3-pro-image`

Other available models (can be changed in generate.py if needed):

- `gemini-3-pro-image-preview` - Preview variant
- `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
```

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。