openrouter-images
Skill by OpenRouterTeam
Generates images from text prompts and edits existing images through OpenRouter's dedicated Image API. Built for users who want an AI assistant to create or modify pictures from a description.
Install openrouter-images
Built from the published package, never by AI.
git clone --depth 1 https://github.com/OpenRouterTeam/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/openrouter-images ~/.claude/skills/openrouter-imagesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/OpenRouterTeam/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/openrouter-images ~/.gemini/antigravity-cli/skills/openrouter-imagesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The openrouter-images skill lets an AI assistant generate an image from a text prompt and edit an existing image with a text instruction. It calls OpenRouter's Image API (POST /api/v1/images) through three TypeScript scripts: generate.ts, edit.ts, and discover.ts. The default model is google/gemini-3.1-flash-image-preview, and other image models can be selected with the --model flag.
Before generating, discover.ts lists image models and the parameters each one accepts, so the assistant can avoid unsupported options. Saved images are returned as files, and the generation cost is printed to stderr when the API reports it. Discovery works without an API key, while generation and editing require OPENROUTER_API_KEY. The skill suits people who want to create or alter images from a description inside an AI assistant.
Written from the project's SKILL.md and checked against it.
What it can do
- discover.tsLists image models and shows the parameters a specific model accepts per endpoint.
- generate.tsCreates a new image from a text prompt, with options such as aspect ratio and resolution.
- edit.tsModifies an existing image in png, jpg, jpeg, webp, or gif format using a text prompt.
- --provider-optionsPasses provider-specific settings through a JSON object keyed by provider slug.
- --nRequests multiple images in one run, from 1 to 10, where the provider permits.
- --seedSets a seed for deterministic generation where the model supports it.
What you need
- OPENROUTER_API_KEY environment variable
- Node.js with npm for npm install and npx tsx
Try asking
- Generate an image of a sunset over mountains
- Make the sky purple in photo.png
- Show me which image models I can use with OpenRouter
Good to know
- Editing needs a model whose input modalities include image.
- Supported input formats are png, jpg, jpeg, webp, and gif.
- Generation and editing require an OPENROUTER_API_KEY.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/openrouter-images/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to openrouter-images
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
openrouter-images: common questions
Does this skill need an API key?
Discovery works without a key. Generation and editing require OPENROUTER_API_KEY to be set.
Which model does it use by default?
The default is google/gemini-3.1-flash-image-preview. Pass --model with another image model ID to change it.
Can it edit existing pictures?
Yes. edit.ts sends the source image as an image-to-image reference, which requires a model that accepts image input.
How do I install openrouter-images?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter-images free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is openrouter-images safe to use?
It scores 73 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to openrouter-images?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
