Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 73
  • 340 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-images

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-images in Claude Code

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

A

No 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 →

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.

openrouter-images Install

Add to stack

Loading.