npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

evolink-gpt-image-2

v1.0.0

Published

GPT Image 2 AI image generation skill for OpenClaw / Claude Code / OpenCode — install in one command

Readme

GPT Image 2 Gen Skill


AI Agent? Skip the README, go straight to llms-install.md for step-by-step installation instructions designed for you.

EvoLink Quick Start

Install the skill, set one API key, and call GPT Image 2 from an agent or terminal:

npx evolink-gpt-image-2 -y
export EVOLINK_API_KEY="your_key_here"

curl --request POST \
  --url https://api.evolink.ai/v1/images/generations \
  --header "Authorization: Bearer ${EVOLINK_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gpt-image-2",
    "prompt": "A clean SaaS dashboard hero image, realistic laptop screen, studio lighting"
  }'

📑 Menu


What is This?

GPT Image 2 Gen Skill is an AI agent image generation skill for OpenClaw, Claude Code, and OpenCode, powered by EvoLink. It gives your agent a fast OpenAI-compatible API integration for GPT Image 2, including text-to-image, image editing, batch generation, and multi-size output workflows.

| Skill | Description | Model | |-------|-------------|-------| | GPT Image 2 Gen | Text-to-image, image editing, batch generation | GPT Image 2 (OpenAI) |


Installation

OpenClaw Install

npx skills add https://github.com/Evolink-AI/gpt-image-2-gen-skill

Install via npm (Recommended)

npx evolink-gpt-image-2

Or non-interactive (for AI agents / CI):

npx evolink-gpt-image-2 -y

Install to a specific directory:

npx evolink-gpt-image-2 -y --path ~/.claude/skills

Manual Install

git clone https://github.com/Evolink-AI/gpt-image-2-gen-skill.git
cd gpt-image-2-gen-skill
openclaw skills add .

Agent Auto-Install (Copy & Paste to Your Agent)

Tell your AI agent the following prompt, and it will install the skill automatically:

Claude Code

Install the GPT Image 2 generation skill by running:

npx evolink-gpt-image-2@latest -y --path ~/.claude/skills

After installation, set the API key:

export EVOLINK_API_KEY=your_key_here

Then read the skill file at ~/.claude/skills/gpt-image-2-gen/SKILL.md to learn how to use it.

OpenCode

Install the GPT Image 2 generation skill by running:

npx evolink-gpt-image-2@latest -y --path ~/.opencode/skills

After installation, set the API key:

export EVOLINK_API_KEY=your_key_here

Then read the skill file at ~/.opencode/skills/gpt-image-2-gen/SKILL.md to learn how to use it.

OpenClaw

Install the GPT Image 2 generation skill by running:

npx evolink-gpt-image-2@latest -y

The installer will auto-detect your OpenClaw skills directory. After installation, set the API key:

export EVOLINK_API_KEY=your_key_here

One-Liner (Any Agent)

For agents that support shell commands, this single command installs and verifies in one step:

EVOLINK_API_KEY=your_key_here npx evolink-gpt-image-2@latest -y --path ~/.claude/skills

Replace ~/.claude/skills with ~/.opencode/skills or your agent's skill directory.


Getting an API Key

  1. Open EvoLink API key page; the same page handles sign in or create an account when needed.
  2. Create a new key in Dashboard API Keys
  3. Set it in your environment:
export EVOLINK_API_KEY=your_key_here

Or tell your AI agent: "Set my EvoLink API key to ..." — it will handle the rest.


🖼️ Showcase

| Portrait Styling | Product Marketing | Character Design | |---|---|---| | | | |

These examples were selected from the awesome-gpt-image-2-API-and-Prompts repository. Install the skill, connect your EvoLink API key, and use the GPT Image 2 image generation docs to create similar outputs.


GPT Image 2 Generation

Generate and edit AI images through natural conversation with your AI agent.

What It Can Do

  • Text-to-image — Describe what you want, get an image
  • Image editing — Provide reference images (1-16) and describe edits
  • Batch generation — Generate up to 10 images per request
  • Multiple sizes — 15 ratio presets + custom pixel dimensions
  • Resolution tiers — 1K (~1MP), 2K (~4MP), 4K (~8.3MP)
  • Quality levels — Low (fast), Medium (balanced), High (best)
  • Prompt power — Up to 32,000 characters per prompt

Usage Examples

Just talk to your agent:

"Generate an image of a sunset over the ocean"

"Create a minimalist logo, 1024x1024, high quality"

"Edit this image — add a cat next to the person"

"Generate 4 variations of a pixel art robot in 4K"

The agent will guide you through any missing details and handle the generation.

Requirements

  • curl and jq installed on your system
  • EVOLINK_API_KEY environment variable set

Script Reference

The skill includes scripts/gpt-image-gen.sh for direct command-line use:

# Text-to-image (basic)
./scripts/gpt-image-gen.sh "A beautiful sunset over the ocean"

# High quality 4K widescreen
./scripts/gpt-image-gen.sh "Cinematic cityscape at dusk" --size 16:9 --resolution 4K --quality high

# Custom pixel dimensions
./scripts/gpt-image-gen.sh "Minimalist logo" --size 1024x1024

# Image editing
./scripts/gpt-image-gen.sh "Add a cat next to her" --image "https://assets.evolink.ai/example/photo.png"

# Batch generation
./scripts/gpt-image-gen.sh "Pixel art robot" --count 4 --quality high

# Dry run (preview payload)
./scripts/gpt-image-gen.sh "Test prompt" --dry-run

API Parameters

See references/api-params.md for complete API documentation.


File Structure

.
├── README.md                    # This file
├── SKILL.md                     # Skill definition (for AI agents)
├── _meta.json                   # Skill metadata
├── bin/
│   └── cli.js                   # npm installer CLI
├── references/
│   └── api-params.md            # Complete API parameter reference
└── scripts/
    └── gpt-image-gen.sh         # Image generation script

Troubleshooting

| Issue | Solution | |-------|---------| | jq: command not found | Install jq: apt install jq / brew install jq | | 401 Unauthorized | Check your EVOLINK_API_KEY at evolink.ai/dashboard | | 402 Payment Required | Add credits at evolink.ai/dashboard | | Content blocked | Prompt flagged by moderation — modify your description | | Image too large | Reference images must be <=50MB each | | Generation timeout | Images can take 5-90s. Try lower quality/resolution first. |


Compatibility

| Agent | Install Method | |-------|---------------| | OpenClaw | openclaw skills add <repo> or npx evolink-gpt-image-2 | | Claude Code | npx evolink-gpt-image-2 -y --path ~/.claude/skills | | OpenCode | npx evolink-gpt-image-2 -y --path ~/.opencode/skills | | Cursor | npx evolink-gpt-image-2 -y --path ~/.cursor/skills |


License

MIT


Community

Star History

Star History Chart