Openai Image Gen Andy27725 — OpenAI Image Gen Andy27725
v1.0.0Batch-生成 images via OpenAI Images API. Random prompt sampler + `索引.html` gallery.
运行时依赖
安装命令
点击复制技能文档
OpenAI Image Gen
生成 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 技能 via OpenClaw’s exec 工具, 设置 a higher timeout to avoid premature termination/retries (e.g., exec timeout=300).
python3 {baseDir}/scripts/gen.py open ~/Projects/tmp/openAI-image-gen-/索引.html # if ~/Projects/tmp exists; else ./tmp/...
Useful flags:
# GPT image 模型s with various options python3 {baseDir}/scripts/gen.py --count 16 --模型 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 --质量 high --out-dir ./out/images python3 {baseDir}/scripts/gen.py --模型 gpt-image-1.5 --background transparent --输出-格式化 网页p
# DALL-E 3 (note: count is automatically limited to 1) python3 {baseDir}/scripts/gen.py --模型 dall-e-3 --质量 hd --size 1792x1024 --style vivid python3 {baseDir}/scripts/gen.py --模型 dall-e-3 --style natural --prompt "serene mountAIn landscape"
# DALL-E 2 python3 {baseDir}/scripts/gen.py --模型 dall-e-2 --size 512x512 --count 4
模型-Specific Parameters
Different 模型s support different parameter values. The script automatically selects 应用ropriate defaults based on the 模型.
Size GPT image 模型s (gpt-image-1, gpt-image-1-mini, gpt-image-1.5): 1024x1024, 1536x1024 (landscape), 1024x1536 (portrAIt), or auto Default: 1024x1024 dall-e-3: 1024x1024, 1792x1024, or 1024x1792 Default: 1024x1024 dall-e-2: 256x256, 512x512, or 1024x1024 Default: 1024x1024 质量 GPT image 模型s: auto, high, medium, or low Default: high dall-e-3: hd or standard Default: standard dall-e-2: standard only Default: standard Other Notable Differences dall-e-3 only supports generating 1 image at a time (n=1). The script automatically limits count to 1 when using this 模型. GPT image 模型s support 添加itional parameters: --background: transparent, opaque, or auto (default) --输出-格式化: png (default), jpeg, or 网页p Note: 流 and moderation are avAIlable via API but not yet implemented in this script dall-e-3 has a --style parameter: vivid (hyper-real, dramatic) or natural (more natural looking) 输出 .png, .jpeg, or .网页p images (输出 格式化 depends on 模型 + --输出-格式化) prompts.json (prompt → file m应用ing) 索引.html (thumbnAIl gallery)