Agent skill

Openrouter Text2image

by QinghongLin in QinghongLin/data2story-skill

Generate images via OpenRouter. An agent skill from QinghongLin/data2story-skill.

MITAuto-check passedAI & LLM Engineering

Install Openrouter Text2image

skills CLI
$ npx skills add QinghongLin/data2story-skill --skill openrouter-text2image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install QinghongLin/data2story-skill openrouter-text2image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/QinghongLin/data2story-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/data2story/designer/scripts/openrouter-text2image .claude/skills/openrouter-text2image && rm -rf skills-src

Use ~/.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/

Facts

Skill name
openrouter-text2image
GitHub stars
155
Token cost
~357 tokens
SKILL.md length
114 words
Files
3 (incl. scripts)
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

Generate images via OpenRouter. An agent skill from QinghongLin/data2story-skill.

  • Tasks that involve Model routing and gateways
  • SKILL.md covers Usage, Flags and Notes
  • Runs Python scripts from its folder; calls python3; needs OPENROUTER_API_KEY
  • Tasks that involve Image generation

What it does

Openrouter Text2image is an agent skill from QinghongLin/data2story-skill. Generate images via OpenRouter. Default model openai/gpt-5.4-image-2; any image-modality model can be passed via --model.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `config.json` and `scripts/generate_image.py`).

It sits in AI & LLM Engineering, covering Model routing and gateways and Image generation. It works with OpenRouter and OpenAI. The repository describes itself as: Data Journalist Agent: Transforming Data into Verifiable Multimodal Story. The licence is MIT.

When your agent uses it

  • Tasks that involve Model routing and gateways
  • Tasks that involve Image generation

Example prompts

  • “/openrouter-text2image”

Requirements

  • Python 3
  • A credential in OPENROUTER_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 63a55c1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENROUTER_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Openrouter Text2image loads about 357 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 114 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~357

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.

Safety

Auto-check passed

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); the scripts in this folder are not scanned.

SKILL.md

The full file from QinghongLin/data2story-skill at commit 63a55c1, republished under its MIT licence (© QinghongLin). 114 words, ~357 tokens.

Download SKILL.mdSave it as .claude/skills/openrouter-text2image/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
openrouter-text2image
description
Generate images via OpenRouter. Default model openai/gpt-5.4-image-2; any image-modality model can be passed via --model.

openrouter-text2image

Text → image via OpenRouter. Default model: openai/gpt-5.4-image-2.

Other supported models (override with --model):

  • google/gemini-3.1-flash-image-preview (Nano Banana 2)
  • any other OpenRouter image-modality model

Usage

Resolve TOOL_DIR = the directory containing this SKILL.md. Commands below use TOOL_DIR as a symbolic placeholder; replace it with the resolved, quoted path before running Bash.

bash
export OPENROUTER_API_KEY=sk-or-v1-...

python3 TOOL_DIR/scripts/generate_image.py \
  --prompt "Editorial illustration: a neon-lit skateboard at dusk, dramatic shadows" \
  --download PROJECT_DIR/assets/teaser.png

Flags

FlagDefaultDescription
--promptrequiredText prompt
--downloadrequiredOutput file path (PNG)
--modelopenai/gpt-5.4-image-2Override with any OpenRouter image-modality model

Notes

  • Request uses POST /api/v1/chat/completions with modalities: ["image","text"].
  • Images are returned as base64 data URLs in the assistant message; the script decodes and writes to disk.
  • For edits/inpainting, include messages with both text and image-URL content parts — the script currently supports text-only prompts.

© QinghongLin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in skills/data2story/designer/scripts/openrouter-text2image of QinghongLin/data2story-skill.

  • SKILL.md
  • config.json
  • scripts/generate_image.py

Open the folder on GitHubat commit 63a55c1

Compare with similar skills

Openrouter Text2image 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.

Openrouter Text2image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openrouter Text2image this skillQinghongLin/data2story-skill155—~357Automated safety check: PassMIT
AI Image Creatorevolution-foundation/evo-nexus545—~5.1kAutomated safety check: NotesCustom licence
Media Toolstherichardngai-code/gpt-image-2-pro-max101—~1.5kAutomated safety check: NotesMIT
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
Baoyu ImagineLeoYeAI/openclaw-master-skills2.2k—~5.1kAutomated safety check: NotesMIT
Aigen Image GenerationPeiiii/nextclaw260—~1.3kAutomated safety check: PassMIT

Similar skills

  • AI Image Creator

    evolution-foundation/evo-nexus

    Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.

    545 GitHub stars~5.1k tokensUpdated 5 mo ago
    Media & CreativeAuto-check: notes
  • Media Tools

    therichardngai-code/gpt-image-2-pro-max

    Two CLI tools for image generation + vision analysis using goclaw's provider-chain pattern.

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Baoyu Imagine

    LeoYeAI/openclaw-master-skills

    AI image generation with OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, MiniMax, Jimeng, Seedream and Replicate APIs.

    2.2k GitHub stars~5.1k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Aigen Image Generation

    Peiiii/nextclaw

    Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI.

    260 GitHub stars~1.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Embeddings via 9Router

    decolua/9router

    Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.

    31k GitHub stars~604 tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed

More from QinghongLin/data2story-skill

All 31 skills in this repo
  • Inspector

    QinghongLin/data2story-skill

    Run sentence-level traceability verification on a Data2Story blog (verify.py - verifier.json), then emit the in-page Inspector panel (the reader-facing runnable verifier) + the verify/ artifacts…

    155 GitHub stars~3.1k tokensUpdated 3 mo ago
    Auto-check: notes
  • Auditor

    QinghongLin/data2story-skill

    Audit a generated Data2Story blog for build correctness across ALL modalities by ACTUALLY RENDERING it in a real headless browser (when available) — catching blank/0-width charts, broken/oversized…

    155 GitHub stars~6.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Critic

    QinghongLin/data2story-skill

    Review a finished Data2Story blog against the 5 quality rubric dimensions (visualdesign, narrativepacing, datamethodtransparency, claimdataalignment, insightvalue), score each 1-7 with on-page…

    155 GitHub stars~4.7k tokensUpdated 3 mo ago
    Auto-check: notes
  • Detective

    QinghongLin/data2story-skill

    Research external context for a dataset — domain background, history, related studies, and why this data matters.

    155 GitHub stars~2.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Inspector

    QinghongLin/data2story-skill

    Run sentence-level traceability verification on a blog, then generate viewer.html with interactive evidence panel.

    155 GitHub stars~697 tokensUpdated 3 mo ago
    Auto-check: notes
  • Data2story Pro

    QinghongLin/data2story-skill

    A skill your agent uses to turn a dataset into a verifiable multimedia blog (a data story / data-driven article / interactive dashboard from a dataset).

    155 GitHub stars~14k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Openrouter Text2image

What does Openrouter Text2image do?

Generate images via OpenRouter. An agent skill from QinghongLin/data2story-skill. Openrouter Text2image is an agent skill from QinghongLin/data2story-skill. Generate images via OpenRouter.

When should I use Openrouter Text2image?

Openrouter Text2image fits situations like: tasks that involve Model routing and gateways; tasks that involve Image generation.

How do I install Openrouter Text2image in Claude Code?

Run `npx skills add QinghongLin/data2story-skill --skill openrouter-text2image -a claude-code`. Or copy the skill folder (skills/data2story/designer/scripts/openrouter-text2image in QinghongLin/data2story-skill) into .claude/skills/openrouter-text2image in your project. Claude Code loads it when a task matches its description.

How do I install Openrouter Text2image in Codex?

Run `npx skills add QinghongLin/data2story-skill --skill openrouter-text2image -a codex`. Or copy the skill folder (skills/data2story/designer/scripts/openrouter-text2image in QinghongLin/data2story-skill) into .agents/skills/openrouter-text2image in your project. Codex loads it when a task matches its description.

Can I use Openrouter Text2image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add QinghongLin/data2story-skill --skill openrouter-text2image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openrouter-text2image, .gemini/skills/openrouter-text2image, .github/skills/openrouter-text2image and .opencode/skills/openrouter-text2image in your project.

What does Openrouter Text2image need to run?

Going by SKILL.md and its folder, Openrouter Text2image needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named OPENROUTER_API_KEY. Our summary lists: Python 3; A credential in OPENROUTER_API_KEY.

Does Openrouter Text2image access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openrouter Text2image safe to install?

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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Openrouter Text2image use?

Openrouter Text2image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openrouter Text2image use?

About 357 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Openrouter Text2image?

Skills that share tags, products or a category with Openrouter Text2image: AI Image Creator (evolution-foundation/evo-nexus, 545 stars), Media Tools (therichardngai-code/gpt-image-2-pro-max, 101 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars) and Baoyu Imagine (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openrouter Text2image?

QinghongLin (a GitHub user) maintains it in QinghongLin/data2story-skill, which has 155 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on July 5, 2026.

Source: QinghongLin/data2story-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.