openai-image-gen
通过 OpenAI Images API 批量生成图像。随机提示采样器 + `index.html` 库。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~openai-image-gencURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~openai-image-gen/file -o openai-image-gen.md## 概述(中文) 通过 OpenAI Images API 批量生成图像。随机提示采样器 + `index.html` 库。 ## 原文 # OpenAI Image Gen Generate a handful of “random but structured” prompts and render them via OpenAI Images API. ## Setup - Needs env: `OPENAI_API_KEY` ## Run From any directory (outputs to `~/Projects/tmp/...` when present; else `./tmp/...`): ```bash python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py open ~/Projects/tmp/openai-image-gen-*/index.html ``` Useful flags: ```bash python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --count 16 --model gpt-image-1.5 python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4 python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images ``` ## Output - `*.png` images - `prompts.json` (prompt ↔ file mapping) - `index.html` (thumbnail gallery)