Image Generation Skill
Generate or edit images directly from Codex, Claude Code, and OpenCode with gpt-image-2.
One-click install
Download the installer for your system:
- macOS: Extract the ZIP and double-click the
.commandfile. If blocked, right-click it and choose Open. - Windows: Double-click the
.batfile. If blocked, click More info → Run anyway. - Linux: Run
bash PrimeRouter-ImageGen-Installer.shafter downloading.
Restart your agent when installation finishes.
Start generating
Tell your agent what you want:
text
Generate a cyberpunk night view of ShanghaiTo edit an image, attach it and describe the change:
text
Change the background to dark blue while preserving the subject and textFallback install
If the downloaded installer cannot run, use a terminal:
powershell
irm https://primerouter.ai/install/imagegen.ps1 | iexbash
curl -fsSL https://primerouter.ai/install/imagegen.sh | bashImage not displayed automatically?
The image is saved locally. Ask the agent to open the returned file path.
Developers can use API Reference for /v1/images/generations and /v1/images/edits.
