技能圖譜SKILLSGROVE
技能圖譜/設計與影像/AndyShaman/whisk-proxy/whisk-proxy

whisk-proxy

安裝

$npx skills add https://github.com/AndyShaman/whisk-proxy --skill whisk-proxy
$git clone --depth 1 https://github.com/AndyShaman/whisk-proxy.git /tmp/whisk-proxy && mkdir -p ~/.claude/skills && cp -r /tmp/whisk-proxy/. ~/.claude/skills/whisk-proxy
請幫我安裝這個 Agent Skill:https://github.com/AndyShaman/whisk-proxy/tree/7ea77ffa4a91dee40452748976bc3cd3b938f06b/ ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITGenerate images with Google Imagen 4 and Nano Banana for free via Flow API. No API key, no paid subscription — just a Google account and Chrome extension. Use when the user asks to generate, create, or make an image, picture, illustration, logo, banner, or avatar. Triggers: generate image, create picture, make illustration, нарисуй, сгенерируй картинку, создай изображение. Do NOT use for image editing, upscaling, background removal, video generation, or non-Google AI models (DALL-E, Midjourney, Stable Diffusion).
以下 SKILL.md 內容轉載自 AndyShaman/whisk-proxy(提交 7ea77ff),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Flow Image Generator

Generate images using Google Imagen 4, Nano Banana, and Reference-to-Image for free. No API key — uses Chrome extension for OAuth.

Quick Start

# Generate 4 images (Imagen 4, default)
node {baseDir}/scripts/generate.mjs -p "a cat astronaut floating in space"

# Nano Banana (fast, creative)
node {baseDir}/scripts/generate.mjs -p "abstract painting in neon colors" -m banana

# Reference-to-Image (style transfer)
node {baseDir}/scripts/generate.mjs -p "watercolor portrait" -m r2i

# Portrait format, 1 image
node {baseDir}/scripts/generate.mjs -p "anime girl with headphones" -r 9:16 -c 1

# Save to specific folder
node {baseDir}/scripts/generate.mjs -p "sunset over mountains" -o ./images

Models

Model Flag Best for
Imagen 4 -m imagen4 (default) Highest quality, photorealistic
Nano Banana -m banana Fast, creative generation
Reference-to-Image -m r2i Style transfer

Options

Flag Short Default Description
--prompt -p required Image description (English works best)
--model -m imagen4 Model: imagen4, banana, r2i
--count -c 4 Number of images (1-4)
--ratio -r 1:1 Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4
--output -o . Output directory
--seed -s random Seed for reproducibility

Aspect Ratios

  • 1:1 (1024x1024) — avatars, icons, social posts
  • 16:9 (1365x768) — banners, covers, YouTube thumbnails
  • 9:16 (768x1365) — stories, reels, vertical posters
  • 4:3 — classic landscape
  • 3:4 — classic portrait

Authentication

Token stored in ~/.flow-proxy/token.json. The Chrome extension handles auth automatically.

Check token status

node {baseDir}/scripts/status.mjs

First-time setup

  1. Install the Chrome extension from {baseDir}/extension/ (load unpacked)
  2. Open https://labs.google/fx/tools/flow
  3. Sign in with Google
  4. Click the Flow Proxy extension icon → "Connect"

Token auto-refreshes via session cookie (~30 days). After that, repeat step 4.

If token is expired

The CLI script auto-detects expired tokens and starts a local auth server. Just click "Connect" in the Chrome extension — no manual token copying needed.

The agent should check status.mjs first. If token is expired, run generate.mjs — it will start the auth server and wait for the extension. Tell the user to click "Connect" in the extension.

Important

  • Prompts in English produce best results
  • The API is free but rate-limited (Google account level)
  • Images saved as PNG
  • Do NOT read generated PNG files into context — they consume thousands of tokens
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.