openai-image-gen by steipete/clawdis
npx skills add https://github.com/steipete/clawdis --skill openai-image-gen生成一批“随机但结构化”的提示词,并通过 OpenAI 图像 API 渲染它们。
注意:图像生成可能比常见的执行超时时间(例如 30 秒)更长。当通过 OpenClaw 的 exec 工具调用此技能时,请设置更高的超时时间以避免过早终止/重试(例如,exec timeout=300)。
python3 {baseDir}/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html # 如果 ~/Projects/tmp 存在;否则 ./tmp/...
有用的标志:
# 具有各种选项的 GPT 图像模型
python3 {baseDir}/scripts/gen.py --count 16 --model gpt-image-1
python3 {baseDir}/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4
python3 {baseDir}/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images
python3 {baseDir}/scripts/gen.py --model gpt-image-1.5 --background transparent --output-format webp
# DALL-E 3 (注意:数量自动限制为 1)
python3 {baseDir}/scripts/gen.py --model dall-e-3 --quality hd --size 1792x1024 --style vivid
python3 {baseDir}/scripts/gen.py --model dall-e-3 --style natural --prompt "serene mountain landscape"
# DALL-E 2
python3 {baseDir}/scripts/gen.py --model dall-e-2 --size 512x512 --count 4
不同的模型支持不同的参数值。脚本会根据模型自动选择合适的默认值。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
gpt-image-1, gpt-image-1-mini, gpt-image-1.5): 1024x1024, 1536x1024 (横向), 1024x1536 (纵向), 或 auto
1024x10241024x1024, 1792x1024, 或 1024x1792
1024x1024256x256, 512x512, 或 1024x1024
1024x1024auto, high, medium, 或 low
highhd 或 standard
standardstandard
standardn=1)。使用此模型时,脚本会自动将数量限制为 1。--background: transparent, opaque, 或 auto (默认)--output-format: png (默认), jpeg, 或 webpstream 和 moderation 可通过 API 使用,但此脚本尚未实现--style 参数: vivid (超现实,戏剧性) 或 natural (看起来更自然)*.png, *.jpeg, 或 *.webp 图像 (输出格式取决于模型 + --output-format)prompts.json (提示词 → 文件映射)index.html (缩略图库)每周安装数
338
代码仓库
GitHub 星标数
334.4K
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode299
openclaw297
codex296
gemini-cli296
github-copilot294
cursor293
Generate a handful of “random but structured” prompts and render them via the OpenAI Images API.
Note: Image generation can take longer than common exec timeouts (for example 30 seconds). When invoking this skill via OpenClaw’s exec tool, set a higher timeout to avoid premature termination/retries (e.g., exec timeout=300).
python3 {baseDir}/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html # if ~/Projects/tmp exists; else ./tmp/...
Useful flags:
# GPT image models with various options
python3 {baseDir}/scripts/gen.py --count 16 --model gpt-image-1
python3 {baseDir}/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4
python3 {baseDir}/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images
python3 {baseDir}/scripts/gen.py --model gpt-image-1.5 --background transparent --output-format webp
# DALL-E 3 (note: count is automatically limited to 1)
python3 {baseDir}/scripts/gen.py --model dall-e-3 --quality hd --size 1792x1024 --style vivid
python3 {baseDir}/scripts/gen.py --model dall-e-3 --style natural --prompt "serene mountain landscape"
# DALL-E 2
python3 {baseDir}/scripts/gen.py --model dall-e-2 --size 512x512 --count 4
Different models support different parameter values. The script automatically selects appropriate defaults based on the model.
gpt-image-1, gpt-image-1-mini, gpt-image-1.5): 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto
1024x10241024x1024, 1792x1024, or
auto, high, medium, or low
highhd or standard
standardstandard only
standardn=1). The script automatically limits count to 1 when using this model.--background: transparent, opaque, or auto (default)--output-format: png (default), jpeg, or webpstream and are available via API but not yet implemented in this script*.png, *.jpeg, or *.webp images (output format depends on model + --output-format)prompts.json (prompt → file mapping)index.html (thumbnail gallery)Weekly Installs
338
Repository
GitHub Stars
334.4K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode299
openclaw297
codex296
gemini-cli296
github-copilot294
cursor293
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
54,900 周安装
Cloudflare Images 图像托管与转换 API 使用指南 | 支持 AI 人脸裁剪与内容凭证
328 周安装
Swift iOS HomeKit Matter 开发指南:控制智能家居与设备配网
329 周安装
iOS WeatherKit 使用指南:获取天气数据、预报与警报的 Swift 实现
329 周安装
Microsoft Agent Framework 开发指南:统一Semantic Kernel与AutoGen的AI智能体框架
329 周安装
Spring缓存单元测试指南:@Cacheable、@CacheEvict、@CachePut测试方法与内存缓存管理器
329 周安装
React Native 升级指南:使用 upgrade-react-native 技能轻松升级项目版本
329 周安装
1024x17921024x1024256x256, 512x512, or 1024x1024
1024x1024moderation--style parameter: vivid (hyper-real, dramatic) or natural (more natural looking)