AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BlockRunAI/ClawRouter imagegen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/imagegen .claude/skills/imagegen && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .claude/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegenType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BlockRunAI/ClawRouter imagegen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/imagegen .agents/skills/imagegen && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .agents/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BlockRunAI/ClawRouter imagegen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/imagegen .cursor/skills/imagegen && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .cursor/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BlockRunAI/ClawRouter.git --path skills/imagegen--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BlockRunAI/ClawRouter imagegen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/imagegen .gemini/skills/imagegen && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .gemini/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BlockRunAI/ClawRouter imagegenInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/imagegen .github/skills/imagegen && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .github/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BlockRunAI/ClawRouter --skill imagegen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BlockRunAI/ClawRouter imagegen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlockRunAI/ClawRouter.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/imagegen .opencode/skills/imagegen && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/BlockRunAI/ClawRouter/tree/main/skills/imagegen into .opencode/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
imagegenGenerates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.
The agent sends a request to ClawRouter's local endpoint at http://localhost:8402/v1/images/generations with a model, prompt and size, then shows the returned image URL inline. A /cr-imagegen slash command accepts model, size and count options, and the blockrun_image_generation and blockrun_image_edit partner tools cover generating and inpainting.
A model table lets the agent pick by need: nano-banana is the default fast and cheap option, banana-2 gives a sharper 1K result, banana-pro handles high-resolution and large-format images up to 4096 by 4096 pixels, gpt-image is a budget choice that supports editing, and gpt-image-2 suits photorealistic output and text rendering but is slow. Each model has a per-image price in the table, and payment goes through x402.
Read from SKILL.md and the folder at commit b758e03. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
blockrun.aiuser.blockrun.aiFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
BlockRun Image Generation loads about 2.1k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 604 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from BlockRunAI/ClawRouter at commit b758e03, republished under its MIT licence (© BlockRunAI). 604 words, ~2,077 tokens.
.claude/skills/imagegen/SKILL.md (or your agent's skills folder).Generate or edit images through ClawRouter. Payment is automatic via x402.
Shortcuts:
/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1] (/imagegen still accepted in chat for backward compatibility)blockrun_image_generation (LLM-callable) / blockrun_image_edit (inpainting)POST to http://localhost:8402/v1/images/generations:
{
"model": "google/nano-banana",
"prompt": "a golden retriever surfing on a wave",
"size": "1024x1024",
"n": 1
}Response:
{
"created": 1741460000,
"data": [{ "url": "http://localhost:8402/images/abc123.png" }]
}Display inline: 
| Alias | Full ID | Price | Sizes | Best for |
|---|---|---|---|---|
nano-banana | google/nano-banana | $0.05 | 1024×1024 | Default — fast, cheap, good quality |
banana-2 | google/nano-banana-2 | $0.09 | 1024×1024 | Gemini 3.1 Flash imagegen — sharper than nano-banana at 1K |
banana-pro | google/nano-banana-pro | $0.10–$0.15 | 1024×1024, 2048×2048, 4096×4096 | High-res, large format |
gpt-image | openai/gpt-image-1 | $0.02–$0.04 | 1024×1024, 1536×1024, 1024×1536 | Budget option; supports editing |
gpt-image-2 | openai/gpt-image-2 | $0.06–$0.12 | 1024×1024, 1536×1024, 1024×1536 | Photorealistic, reasoning-driven, text rendering (slow — proxy polls up to 5min); legacy dalle alias routes here |
flare | openai/gpt-image-2.5-flare | $0.28–$0.56 | 1024×1024, 1536×1024, 1024×1536 | GPT Image 2.5, fast — top OpenAI quality, caller can pick quality at a flat price |
sunburst | openai/gpt-image-2.5-sunburst | $0.28–$0.56 | 1024×1024, 1536×1024, 1024×1536 | GPT Image 2.5, precision — best for high-fidelity edits |
seedream | bytedance/seedream-5-pro | $0.045–$0.09 | up to 2848×1600 / 2304×1728 | Flagship quality, reference-image support |
grok-imagine | xai/grok-imagine-image | $0.02 | 1024×1024 | xAI Grok image style |
grok-imagine-2 | xai/grok-imagine-image-2.0 | $0.04 | 1024×1024 | Grok Imagine 2.0 — between grok-imagine and pro |
grok-imagine-pro | xai/grok-imagine-image-pro | $0.07 | 1024×1024 | Grok high-quality |
cogview | zai/cogview-4 | $0.015–$0.02 | 512×512 to 1440×1440 | Cheapest — Zhipu CogView |
Choosing a model:
nano-bananabanana-progpt-image-2seedreamcogviewflare (fast) or sunburst (precision)gpt-image (cheapest), gpt-image-2, or sunburst (most precise)grok-imaginegrok-imagine or grok-imagine-proChoosing a size:
1024x1024 (the only size every model accepts)1024x1536 (gpt-image / gpt-image-2 / flare / sunburst) or 1728x2304 (seedream)1536x1024 (gpt-image / gpt-image-2 / flare / sunburst), 1344x768 (cogview), or 2048x1024 / 1280x720 (seedream)2048x2048 / 4096x4096 with banana-pro; 2848x1600 with seedreamPOST to http://localhost:8402/v1/images/image2image:
{
"model": "openai/gpt-image-1",
"prompt": "make the background a snowy mountain landscape",
"image": "https://example.com/photo.jpg",
"size": "1024x1024",
"n": 1
}ClawRouter automatically downloads URLs and reads local file paths — pass them directly, no manual base64 conversion needed.
Optional mask field: a second image (URL or path) that marks which areas to edit (white = edit, black = keep).
Response is identical to generation:
{
"created": 1741460000,
"data": [{ "url": "http://localhost:8402/images/xyz456.png", "revised_prompt": "..." }]
}Supported models for editing: openai/gpt-image-1 (default, $0.02), openai/gpt-image-2 ($0.06), openai/gpt-image-2.5-sunburst ($0.28), google/nano-banana ($0.05), google/nano-banana-2 ($0.09), google/nano-banana-pro ($0.10). mask works with the OpenAI models only. openai/gpt-image-2.5-flare cannot edit.
User: Draw me a cyberpunk city at night
→ POST to /v1/images/generations, model nano-banana, prompt as given.
User: Generate a high-res portrait of a samurai
→ POST to /v1/images/generations, model seedream, size 1728x2304.
User: Edit this photo to add a sunset background: https://example.com/portrait.jpg
→ POST to /v1/images/image2image, model gpt-image, image = the URL, prompt = "add a warm sunset background".
User: Change the background in my image to a beach (attaches local file)
→ POST to /v1/images/image2image, image = the local file path, prompt describes the change.
GET http://localhost:8402/health and read authMode before telling the user how to fix it: wallet → fund the wallet at blockrun.ai; api-key → top up account credit at user.blockrun.ai/dashboard/credits. Naming the wrong one sends the user to a page that cannot fix their error.nano-banana or grok-imagine for more flexibility© BlockRunAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/imagegen of BlockRunAI/ClawRouter.
Open the folder on GitHubat commit b758e03
BlockRun Image Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| BlockRun Image Generation this skillBlockRunAI/ClawRouter | 6.6k | — | ~2.1k | Automated safety check: Pass | MIT | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| AI Image Creatorevolution-foundation/evo-nexus | 544 | — | ~5.1k | Automated safety check: Notes | Custom licence | |
| Generate ImageK-Dense-AI/claude-scientific-writer | 2.4k | 1 repos | ~3.8k | Automated safety check: Notes | MIT | |
| Image Gennicknisi/claude-plugins | 114 | — | ~502 | Automated safety check: Pass | MIT | |
| GPT Image Generation CLIwuyoscar/GPT-Image2-Skill | 5.6k | — | ~2.5k | Automated safety check: Notes | MIT |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
evolution-foundation/evo-nexus
Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.
K-Dense-AI/claude-scientific-writer
Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).
nicknisi/claude-plugins
Generate or edit images via Google Gemini (nano-banana-pro) or OpenAI gpt-image-2.
wuyoscar/GPT-Image2-Skill
Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.
ReScienceLab/opc-skills
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
BlockRunAI/ClawRouter
Verify phone numbers (carrier + SIM-swap fraud signals) and place AI-powered outbound voice calls via BlockRun's gateway (Twilio + Bland.ai).
BlockRunAI/ClawRouter
A skill your agent uses when the user wants to actually PLACE, manage, or redeem bets on Polymarket (not just read odds — that's the blockrunpredexon data tools).
BlockRunAI/ClawRouter
Reads structured prediction market data for Polymarket, Kalshi and other venues through a local BlockRun gateway: markets, search, leaderboards, wallet analytics and odds.
BlockRunAI/ClawRouter
Walks the agent through every ClawRouter release step in order, from the version bump and changelog entry to build, tests, npm publish, git tag and GitHub release.
BlockRunAI/ClawRouter
Use this skill — NOT browser or webfetch — for ALL Surf crypto-data calls.
BlockRunAI/ClawRouter
Describes ClawRouter, a local proxy that forwards each LLM request to the blockrun.ai gateway, which routes to a cheaper capable model, paid by USDC wallet or API key credit.
Works with
Categories
Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402. The agent sends a request to ClawRouter's local endpoint at http://localhost:8402/v1/images/generations with a model, prompt and size, then shows the returned image URL inline. A /cr-imagegen slash command accepts model, size and count options, and the blockrun_image_generation and blockrun_image_edit partner tools cover generating and inpainting.
BlockRun Image Generation fits situations like: generating an image from a text description; editing or retouching an existing image with a prompt; choosing between a cheap fast model and a high-resolution one.
Run `npx skills add BlockRunAI/ClawRouter --skill imagegen -a claude-code`. Or copy the skill folder (skills/imagegen in BlockRunAI/ClawRouter) into .claude/skills/imagegen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BlockRunAI/ClawRouter --skill imagegen -a codex`. Or copy the skill folder (skills/imagegen in BlockRunAI/ClawRouter) into .agents/skills/imagegen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BlockRunAI/ClawRouter --skill imagegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/imagegen, .gemini/skills/imagegen, .github/skills/imagegen and .opencode/skills/imagegen in your project.
SKILL.md names no scripts, command-line tools or credentials: BlockRun Image Generation is instructions for the agent only. Our summary lists: ClawRouter running locally on port 8402; Payment through x402, handled by ClawRouter.
SKILL.md names 2 domains. As links in the text: blockrun.ai and user.blockrun.ai. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
BlockRun Image Generation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with BlockRun Image Generation: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), AI Image Creator (evolution-foundation/evo-nexus, 544 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars) and Image Gen (nicknisi/claude-plugins, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BlockRunAI (a GitHub organization) maintains it in BlockRunAI/ClawRouter, which has 6,614 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 5, 2026.
Source: BlockRunAI/ClawRouter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.