About codex-draw
A Codex image-generation skill that supports natural-language prompts through the built-in Image Gen Skill without an API key. It also documents an API-based route that requires `OPENAI_API_KEY`.
Key features
- 01Generates images from natural-language prompts
- 02Includes a built-in Image Gen Skill route
- 03Provides an API-based route
- 04Saves generated images to a specified directory
Use cases
- 01Create a presentation cover image
- 02Generate images described by topic, aspect ratio, and style
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mathruffian-dot/ codex-lazy-packs --skill codex-drawAfter installing, type/codex-drawin Claude Code to confirm it loaded.
Details
From the project README生圖(Codex 版)
路線 A:內建 Image Gen Skill(新手推薦)
直接用自然語言產圖,不需 API Key:
生成一張 16:9 的國中數學簡報封面圖,風格專業明亮,不要文字。
圖片存在:~/.codex/generated_images/
路線 B:API 路線(進階)
需要 OPENAI_API_KEY 時,先參考本 repo 的 08-用Image Gen Skill在Codex生圖.md 路線 B;不要直接套用 OpenCode 的 ~/.config/opencode/skills/ 路徑。
提示格式
用用途:...
尺寸比例:...
主題:...
風格:...
色彩:...
限制:...
⚠️ 重要中文文字建議後製;API Key 不寫進 repo。
Comments
Markdown supported