language-coach
An always-on language coach for AI editors — improve any target language while you work in Codex, Claude Code, or Cursor.
Generate images with your ChatGPT subscription — no OPENAI_API_KEY. A tiny zero-dependency Python CLI (and AI-agent skill): one file, stdlib only.
$ npx -y skills add leeguooooo/chatgpt-imagegen --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
What's inside
English | 中文
Generate images with your ChatGPT subscription — no OPENAI_API_KEY.
A tiny zero-dependency Python CLI (and AI-agent skill): one file, stdlib only. Works on a free ChatGPT account too — the default backend just drives the normal ChatGPT web chat, where even free-tier users get image generation.
chatgpt-imagegen "a watercolor cat sitting on a windowsill" -o cat.png
# -> saved: cat.png (812,344 bytes) size=1024x1024 quality=medium
Needs Python 3.10+ and a ChatGPT subscription (free tier works).
For AI agents (recommended) — drops the skill into Claude Code, Codex, Cursor, etc.:
npx skills add leeguooooo/chatgpt-imagegen -g
Then just ask: "画一张 …" / "generate a hero banner for the README".
Standalone CLI — no pip, no virtualenv:
git clone https://github.com/leeguooooo/chatgpt-imagegen
sudo install chatgpt-imagegen/chatgpt-imagegen /usr/local/bin/chatgpt-imagegen
You also need one backend — web (default, drives your logged-in Chrome, spends no Codex-usage) or codex (headless fallback). chatgpt-imagegen doctor shows what's ready. → Backends & troubleshooting
chatgpt-imagegen "moody mountain sunset" -o web/hero.png --size 1536x1024
chatgpt-imagegen "make it a warm golden-hour photo, cinematic 35mm" -i photo.jpg # edit a reference
chatgpt-imagegen "a robot mascot" --style doodle # apply a gallery style (auto-pulled + saved)
chatgpt-imagegen animate "a dog happily wagging its tail" --style-online snoopy --also-gif
OUT=$(chatgpt-imagegen "icon" --quiet) # capture the path
All three below came straight out of the commands above — no retouching:
animate asks the image model for a strict 4×2 sprite sheet, crops eight equal
frames, rejects obvious subject drift, and writes a smooth ping-pong loop. It
defaults to animated WebP; pass --animation-format gif or --also-gif when
GIF compatibility matters. The source sprite PNG is always kept beside the
animation. Animation post-processing needs
ImageMagick (magick); WebP output additionally
needs libwebp (img2webp).
chatgpt-imagegen doctor reports whether both are installed.
Full options: chatgpt-imagegen --help. → Generate images · Styles
Browse and reuse art styles other people tuned — a public gallery at drawstyle.leeguoo.com. No script update needed:
chatgpt-imagegen "a fox barista" --style-online doodle # generate with a gallery style, nothing saved
chatgpt-imagegen style search "watercolor mascot" # search the gallery
chatgpt-imagegen style publish mystyle --category cute --from-last # share yours (one-time login)
A style can pin a character, not just a look. Style assets carry reference images, so the same character comes back in a brand-new scene:
chatgpt-imagegen style add pip --kind character --ref pip-ref.png
chatgpt-imagegen "a fox barista" --style pip
Gallery packages can be characters too — xiaohei is one.
→ Using gallery styles · Submitting a style
MIT — see LICENSE.
This tool calls ChatGPT's internal backend-api/codex endpoint — the same one the official Codex CLI uses. It is not a documented public API; OpenAI could change or restrict it at any time. Use at your own risk and within the OpenAI Terms of Use — in particular, do not use your ChatGPT subscription to power a public-facing image generation service.
ChatGPT subscription image generation, free ChatGPT account image generation, use ChatGPT Plus for image API, gpt-image-2 without OPENAI_API_KEY, gpt-image-2 ChatGPT subscription, image_generation tool Responses API, ChatGPT image CLI, Codex CLI image_gen as standalone tool, DALL-E via ChatGPT Plus, OAuth-backed OpenAI image generation, no-API-key image generation, AI agent image generation skill, Claude Code image skill, OpenAI image generation without billing.
中文: 用 ChatGPT 订阅生成图片、免费 ChatGPT 账号生图、ChatGPT Plus 生图工具、不用 API key 生图、gpt-image-2 用订阅、ChatGPT 订阅生图 CLI、Codex CLI 生图能力独立工具、给 AI agent 用的生图 skill、本地生图脚本、零依赖 Python 生图工具。
.github/
workflows/
ci.yml
.gitignore
chatgpt-imagegen
docs/
example-doodle.png
gallery/
coffee-logo.png
mountain-sunset.png
pip-cafe.png
pip-ref.png
watercolor-cat.png
how-it-works.md
how-it-works.zh-CN.md
styles/
doodle.png
README.md
snoopy.png
xiaohei.png
superpowers/
plans/
2026-06-22-proactive-doc-illustration.md
2026-06-22-style-presets.md
2026-07-03-drawstyle-cli.md
2026-07-03-drawstyle-platform.md
RELEASE-style-presets.md
specs/
2026-06-22-proactive-doc-illustration-design.md
2026-06-22-style-presets-design.md
2026-06-27-pinnable-assets-design.md
2026-07-03-drawstyle-platform-design.md
two-backends.svg
LICENSE
README.md
README.zh-CN.md
SKILL.md
test_chatgpt_imagegen.pyAn always-on language coach for AI editors — improve any target language while you work in Codex, Claude Code, or Cursor.
Your Claude Code usage, at a glance. 5h / 7d rate-limit bars, reset countdowns, model, context window, and prompt-cache freshness — inline in Claude Code's status line, or a floating HUD on the desktop app.
FAQ
chatgpt-imagegen is a Claude Code plugin with 1 hand-picked skill for content work, indexed on Flowy. Install it with the command on its page. It includes chatgpt-imagegen. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.