Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-openrouter-image

БесплатноБез исполняемых скриптовНе проверен

Every image model on OpenRouter, one key: generate, rank, estimate, and batch with a local cost ledger. Trigger phrases: `generate an image`, `create a…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

OpenRouter — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the openrouter-image-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install openrouter-image --cli-only
    
  2. Verify: openrouter-image-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/ai/openrouter-image/cmd/openrouter-image-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

OpenRouter's Image API fronts 40+ image models from every major lab. This CLI adds what the API alone lacks: offline model ranking by capability and budget, pre-spend cost estimates, deterministic re-generation from a local history ledger, budget-gated batch runs, and a weekly spend digest. Model selection is always explicit — every generation names its model.

When to Use This CLI

Use this CLI when an AI agent or human needs to generate images on demand through OpenRouter with explicit model selection, wants to pick the cheapest capable provider before spending, run budgeted batches from a CSV, reproduce past generations exactly, or track image-generation spend over time. It is the tool for scheduled image pipelines, prompt iteration across models, and cost-aware image production.

Anti-triggers

Do not use this CLI for:

  • Do not use this CLI for chat completions or text generation — use the existing openrouter-pp-cli (cost attribution) or a chat CLI
  • Do not use this CLI for video generation — OpenRouter's video API is a different surface
  • Do not use this CLI for embedding, reranking, or speech endpoints
  • Do not use this CLI as a general HTTP client for arbitrary OpenRouter endpoints

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local state that compounds

  • models rank — Rank every image model+provider combo cheapest-first under your capability and budget constraints.

    Pick the cheapest provider that meets your image constraints without paging through catalog JSON.

    openrouter-image-pp-cli models rank --image-to-image --resolution 4K --max-cost 0.10 --limit 5 --json
    
  • cost-estimate — Estimate USD cost of a generation before spending credits, computed offline from synced per-endpoint pricing.

    Agents can check the price of a planned image before spending credits.

    openrouter-image-pp-cli cost-estimate --model openai/gpt-image-1 --resolution 2K --quality high --n 4
    
  • regenerate — Re-run a past generation with its exact stored parameters (model, seed, resolution, quality, references).

    Reproduce or tweak a past image without re-typing the full flag set.

    openrouter-image-pp-cli regenerate gen-1234567890 --output winner.png
    
  • usage digest — Period-over-period spend and volume summary: images generated, USD spent, top models, cost per image vs the prior window.

    Budget owners get a machine-readable weekly cost report from the local ledger.

    openrouter-image-pp-cli usage digest --since 7d --agent
    

Agent-native plumbing

  • batch — Run many generations from a CSV with a hard USD budget: estimate first, abort before any spend if over, then execute and log each cost.

    Cron pipelines can fire a batch with a hard spend cap and get typed exit codes instead of burning the whole balance.

    openrouter-image-pp-cli batch --spec batch.csv --budget 2.00 --dry-run
    

Reachability mitigation

  • models diff — See newly added, retired, and price-changed image models between syncs so pinned pipelines never break silently.

    Catch a retired model before the next scheduled batch 404s.

    openrouter-image-pp-cli models diff --since 7d --json
    

Command Reference

activity — Manage activity

  • openrouter-image-pp-cli activity — Returns user activity data grouped by endpo
Полный SKILL.md на GitHub

Установить pp-openrouter-image в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл pp-openrouter-image?

Every image model on OpenRouter, one key: generate, rank, estimate, and batch with a local cost ledger. Trigger phrases: `generate an image`, `create a picture`, `which image model is cheapest`, `estimate the cost of this image`, `regenerate that image`, `batch of images`, `use openrouter-image`, `run openrouter-image`.

Как установить скилл pp-openrouter-image?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-openrouter-image запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-openrouter-image с