evolink-gpt-image-2
v1.0.0
Published
GPT Image 2 AI image generation skill for OpenClaw / Claude Code / OpenCode — install in one command
Maintainers
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?
- Installation
- Getting an API Key
- Showcase
- GPT Image 2 Generation
- File Structure
- Troubleshooting
- Compatibility
- License
- Community
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-skillInstall via npm (Recommended)
npx evolink-gpt-image-2Or non-interactive (for AI agents / CI):
npx evolink-gpt-image-2 -yInstall to a specific directory:
npx evolink-gpt-image-2 -y --path ~/.claude/skillsManual 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_hereOne-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/skillsReplace ~/.claude/skills with ~/.opencode/skills or your agent's skill directory.
Getting an API Key
- Open EvoLink API key page; the same page handles sign in or create an account when needed.
- Create a new key in Dashboard API Keys
- Set it in your environment:
export EVOLINK_API_KEY=your_key_hereOr 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
curlandjqinstalled on your systemEVOLINK_API_KEYenvironment 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-runAPI 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 scriptTroubleshooting
| 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
- Docs: GPT Image 2 image generation manual
- EvoLink: Create an API key
- Workflow repo: GPT-Image-2 × Seedance 2.5
- Follow EvoLinkAI: x.com/EvoLinkAI
