openrouter-images
Generate images from text prompts and edit existing images using OpenRouter's image generation models.
Skill by clawdsolana
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/clawdsolana-openrouter-images
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, writing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/openrouter-images
What's inside
- Skill name
openrouter-images- Description
- Generate images from text prompts and edit existing images using OpenRouter's image generation models. Use when the user asks to create, generate, or make an image, picture, or illustration from a description, or wants to edit, modify, transform, or alter an existing image with a text prompt.
- License
- MIT
- Instructions
- 128 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- edit.ts · scripts/
- generate.ts · scripts/
- lib.ts · scripts/
- package.json · scripts/
SKILL.md (first lines)
# OpenRouter Images
Generate images from text prompts and edit existing images via OpenRouter's chat completions API with image modalities.
## Prerequisites
The `OPENROUTER_API_KEY` environment variable must be set. Get a key at https://openrouter.ai/keys
## First-Time Setup
```bash
cd <skill-path>/scripts && npm install
```
## Decision Tree
Pick the right script based on what the user is asking:
| User wants to... | Script | Example |
|---|---|---|
| Generate an image from a text description | `generate.ts "prompt"` | "Create an image of a sunset over mountains" |
| Generate with specific aspect ratio | `generate.ts "prompt" --aspect-ratio 16:9` | "Make a wide landscape image of a forest" |
| Generate with a different model | `generate.ts "prompt" --model <id>` | "Generate using gemini-2.5-flash-image" |
| Edit or modify an existing image | `edit.ts path "prompt"` | "Make the sky purple in photo.png" |
| Transform an image with instructions | `edit.ts path "prompt"` | "Add a party hat to the animal in this image" |
## Generate Image
Create a new image from a text prompt:
```bash
cd <skill-path>/scripts && npx tsx generate.ts "a red panda wearing sunglasses"
cd <skill-path>/scripts && npx tsx generate.ts "a futuristic cityscape at night" --aspect-ratio 16:9
cd <skill-path>/scripts && npx tsx generate.ts "pixel art of a dragon" --output dragon.png
cd <skill-path>/scripts && npx tsx generate.ts "a watercolor painting" --model google/gemini-2.5-flash-image
```
### Options
| Flag | Description | Default |
|---|---|---|
| `--model <id>` | OpenRouter model ID | `google/gemini-3.1-flash-image-preview` |
| `--output <path>` | Output file path | `image-YYYYMMDD-HHmmss.png` |
| `--aspect-ratio <r>` | Aspect ratio (e.g. `16:9`, `1:1`, `4:3`) | Model default |
| `--image-size <s>` | Image size (e.g. `1K`, `2K`) | Model default |
## Edit Image
Modify an existing image with a text prompt:
```bash
cd <skill-path>/scripts && npx tsx edit.ts photo.png "make the sky purple"
cd <skill-path>/scripts && npx tsx edit.ts avatar.jpg "add a party hat" --output avatar-hat.png
cd <skill-path>/scripts && npx tsx edit.ts scene.png "convert to watercolor style" --model google/gemini-2.5-flash-image
```
### Options
| Flag | Description | Default |
|---|---|---|
| `--model <id>` | OpenRouter model ID | `google/gemini-3.1-flash-image-preview` |
| `--output <path>` | Output file path | `image-YYYYMMDD-HHmmss.png` |
| `--aspect-ratio <r>` | Aspect ratio (e.g. `16:9`, `1:1`, `4:3`) | Model default |
| `--image-size <s>` | Image size (e.g. `1K`, `2K`) | Model default |
Supported input formats: `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`
## Output Format
### generate.ts
```json
{
"model": "google/gemini-3.1-flash-image-preview",
"prompt": "a red panda wearing sunglasses",
"images_saved": ["/absolute/path/to/image-20260305-143022.png"],
"count": 1
}
```
### edit.ts
```json
{
"model": "google/gemini-3.1-flash-image-preview",
"source_image": "photo.png",
"prompt": "make the sky purple",
"images_saved": ["/absolute/path/to/image-20260305-143055.png"],
"count": 1
}
```
## API Response Shapes
Image generation uses `POST /api/v1/responses` with `modalities: ["image", "text"]`. See the [Responses API reference](https://openrouter.ai/docs/api/reference/responses/overview) and [image generation guide](https://openrouter.ai/docs/guides/overview/multimodal/image-generation) for full request details.
The image-specific output item type is `image_generation_call` — this is not obvious from the general Responses API docs:
```json
{
"type": "image_generation_call",
"id": "imagegen-abc123",
"status": "completed",
"result": "<base64-encoded image data>"
}
```
This appears alongside standard `message` output items in the `output` array. Text and image outputs may each be absent depending on the model and prompt.
## Using a Different Model
The default model is `google/gemini-3.1-flash-image-preview` (Nano Banana 2). To use a different model, pass `--model <id>` with any OpenRouter model ID that supports image output modalities.
Use the `openrouter-models` skill to discover image-capable models:
```bash
cd <openrouter-models-skill-path>/scripts && npx tsx search-models.ts --modality image
```From clawdsolana/OpenClawd, MIT.
More from clawdsolana/OpenClawd
- 0.512score
openrouter-models
clawdsolana
Query OpenRouter for available AI models, pricing, capabilities, throughput, and provider performance.
SkillCFreshness: C★ 2Claude Code +9 - 0.512score
pay
clawdsolana
User-authorized paid HTTP/API access for agents through local Pay MCP and TouchID gated payments (x402 MPP HTTP 402) SERVICES: search web, scrape, enrich…
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
honcho-cli
clawdsolana
Inspect and debug Honcho workspaces via the `honcho` CLI.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
migrate-honcho-ts
clawdsolana
Migrates Honcho TypeScript SDK code from v1.6.0 to v2.1.1.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
openrouter-oauth
clawdsolana
Implement "Sign In with OpenRouter" using OAuth PKCE — framework-agnostic, no SDK or client registration required.
SkillCFreshness: C★ 2Claude Code +9 - 0.504score
crossmint-agentic-wallet
clawdsolana
Create non-custodial Solana wallets for AI agents with e-commerce, Jupiter swaps, faucet funding, and agent-to-agent payments
SkillCFreshness: C★ 2Claude Code +9 - 0.504score
openrouter-agent-migration
clawdsolana
Migration guide from @openrouter/sdk to @openrouter/agent for callModel, tool(), stop conditions, and agent features.
SkillCFreshness: C★ 2Claude Code +9 - 0.503score
create-agent-tui
clawdsolana
Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents.
SkillCFreshness: C★ 2Claude Code +9 - 0.503score
honcho-memory
plastic-labs
Gives AI agents persistent memory across conversations using Honcho.
SkillCFreshness: C★ 2Claude Code +9 - 0.503score
migrate-honcho
clawdsolana
Migrates Honcho Python SDK code from v1.6.0 to v2.1.1.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
competitive-analysis
clawdsolana
Perform competitive market analysis with comparisons and strategic recommendations.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
branding-generator
clawdsolana
Create brand identity kits — logos, color palettes, typography, naming, and style guides.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 3
- Open issues
- 2
- Last commit (this folder)
- May 7, 2026 (5 months ago)
- Last release
- Apr 30, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/clawdsolana/OpenClawd
- Website
- solanaclawd.com/openclawd
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from clawdsolana
- 0.512score
pay
clawdsolana
User-authorized paid HTTP/API access for agents through local Pay MCP and TouchID gated payments (x402 MPP HTTP 402) SERVICES: search web, scrape, enrich…
SkillCFreshness: C★ 2Claude Code +9 - 0.512score
openrouter-models
clawdsolana
Query OpenRouter for available AI models, pricing, capabilities, throughput, and provider performance.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
openrouter-oauth
clawdsolana
Implement "Sign In with OpenRouter" using OAuth PKCE — framework-agnostic, no SDK or client registration required.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
honcho-cli
clawdsolana
Inspect and debug Honcho workspaces via the `honcho` CLI.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
migrate-honcho-ts
clawdsolana
Migrates Honcho TypeScript SDK code from v1.6.0 to v2.1.1.
SkillCFreshness: C★ 2Claude Code +9 - 0.504score
openrouter-agent-migration
clawdsolana
Migration guide from @openrouter/sdk to @openrouter/agent for callModel, tool(), stop conditions, and agent features.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
openrouter-images skill. Agent Mart. https://agentmart.dev/skills/clawdsolana-openrouter-images (last updated 2026-10-24)