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
累計下載
2534
星標
4
全站排名
#4,074
全站前 81% · 「設計創意」前 77%
平台累計安裝累計下載星標評論
ClawHub ↗7723794-
SkillHub ↗21725344—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能使用 OpenAI 相容介面連線圖像模型,可根據文字提示生成新圖,也可在提供原圖後進行編輯。主文要求安裝 OpenAI SDK,並配置代理 API key 和 base URL;列出的輸入格式包括 PNG、JPG、JPEG、GIF 與 WEBP。提示詞和圖片會傳送至所配置的代理/模型服務;僅提交獲准遠端處理的素材,並妥善保護 API key。

資料釋出於 2026-10-27

可以用來做什麼

  • 根據文字提示生成圖像
  • 基於已有圖片生成編輯版本

什麼時候用

  • 需要用 Gemini 圖像模型生成或編輯圖片時
  • 開始呼叫前需準備相容端點與訪問憑據時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

用 Gemini 3 Pro Image 根據這個描述生成圖片
根據編輯要求修改這張圖片,並保留原有主體

月度資料趨勢

累計下載2534
1684214125972026-03 · 累計下載 17472026-05 · 累計下載 19582026-06 · 累計下載 20462026-07 · 累計下載 22232026-08 · 累計下載 22972026-09 · 累計下載 253426-0326-09
星標4
3452026-03 · 星標 42026-05 · 星標 42026-06 · 星標 42026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092534—4
2026-082297+3.3%4
2026-072223+8.7%4
2026-062046+4.5%4
2026-051958—4
2026-031747—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),按月更新。口徑說明見資料方法。