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

corespeed-nanobanana

Generate and edit images using Google Gemini models via Corespeed AI Gateway. Supports text-to-image generation, image editing, multi-image input, and text rendering in images using gemini-2.5-flash-image. Also supports text generation and image analysis with gemini-2.5-flash, gemini-2.5-pro, and gemini-2.5-flash-lite. Use when a user asks to create images, edit photos, analyze images, or generate text with Gemini models.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.2
安全检测
已通过
129
下载量
0
收藏
概述
安装方式
版本历史

corespeed-nanobanana

# Corespeed NanoBanana — Gemini Image & Text Generation Auth: Set `CS_AI_GATEWAY_BASE_URL` and `CS_AI_GATEWAY_API_TOKEN` environment variables. ## Workflow 1. Pick a model from the table below (default: `gemini-2.5-flash-image` for image generation) 2. Run the script with your prompt ## Usage ```bash uv run {baseDir}/scripts/gemini.py --prompt "your prompt" -f output.ext [-i input.ext] [--model MODEL] ``` - `--prompt`, `-p` — Text prompt (required) - `--filename`, `-f` — Output filename (required) - `--input`, `-i` — Input image file(s), repeat for multiple - `--model`, `-m` — Model name (default: `gemini-2.5-flash-image`) - `--modalities` — Response type: `auto`, `image`, `text`, `image+text` (default: `auto`) - `--json` — Output structured JSON (recommended for agent consumption) Output format is determined by file extension: `.png`/`.jpg` → image generation, `.txt`/`.md` → text output. ## Image Generation ```bash # Text-to-image uv run {baseDir}/scripts/gemini.py -p "a watercolor fox in autumn forest" -f fox.png # Image editing uv run {baseDir}/scripts/gemini.py -p "Remove background, add beach sunset" -f edited.png -i photo.jpg # Multi-image compositing uv run {baseDir}/scripts/gemini.py -p "Blend these two scenes together" -f blend.png -i scene1.png -i scene2.png ``` ## Image Analysis ```bash # Describe an image uv run {baseDir}/scripts/gemini.py -p "Describe this image" -f desc.txt -i photo.jpg --model gemini-2.5-flash # Compare images uv run {baseDir}/scripts/gemini.py -p "What are the differences?" -f diff.txt -i before.jpg -i after.jpg --model gemini-2.5-flash ``` ## Text Generation ```bash # Use the most capable model for complex tasks uv run {baseDir}/scripts/gemini.py -p "Write a haiku about coding" -f haiku.txt --model gemini-2.5-pro ``` ## Models | Model | Type | Best For | |-------|------|----------| | gemini-2.5-flash-image | Image + Text | Image generation & editing (default) | | gemini-2.5-flash | Text | Fast analysis, vision, general tasks | | gemini-2.5-pro | Text | Complex reasoning, highest quality | | gemini-2.5-flash-lite | Text | Fastest, simple tasks | ## Notes - **No manual Python setup required.** The script uses [PEP 723 inline metadata](https://peps.python.org/pep-0723/). `uv run` automatically creates an isolated virtual environment and installs the `google-genai` dependency on first run. - Image output is returned inline as base64 from the Gemini API — no separate download step. - Use timestamps in filenames: `yyyy-mm-dd-hh-mm-ss-name.ext`. - Script prints `MEDIA:` line for OpenClaw to auto-attach generated images. - Do not read generated media back; report the saved path only. - Only `gemini-2.5-flash-image` can generate images. Other models are text-only. - Use `--json` for structured output: `{"ok": true, "files": [...], "text": "...", "model": "...", "tokens": {...}}` ## Support Built by [Corespeed](https://corespeed.io). If you need help or run into issues: - 💬 Discord: [discord.gg/mAfhakVRnJ](https://discord.gg/mAfhakVRnJ) - 🐦 X/Twitter: [@CoreSpeed_io](https://x.com/CoreSpeed_io) - 🐙 GitHub: [github.com/corespeed-io/skills](https://github.com/corespeed-io/skills/issues)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 corespeed-nanobanana-1776085981 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 corespeed-nanobanana-1776085981 技能

通过命令行安装

skillhub install corespeed-nanobanana-1776085981

下载 Zip 包

⬇ 下载 corespeed-nanobanana v0.0.2

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

v0.0.2 最新 2026-4-17 14:30
Version 0.0.2 of corespeed-nanobanana

- No file changes detected in this release.
- No new features, bug fixes, or documentation updates included.

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

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

p2p_official_large
返回顶部