| name | openai-image-gen |
| description | Batch-generate images via OpenAI Images API using GPT Image models or DALL-E. Includes random prompt sampler and HTML gallery output.
|
| license | Sustainable Use License 1.0 |
| metadata | {"domain":"content-media","subdomain":"generative-art","tags":"openai, dall-e, gpt-image, image-generation, ai","author":"cpojer <christoph.pojer@gmail.com>","lastUpdated":"12026-01-31","provenance":"ported"} |
OpenAI Image Gen
Generate a handful of “random but structured” prompts and render them via the OpenAI Images API.
Run
python3 {baseDir}/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html
Useful flags:
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
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"
python3 {baseDir}/scripts/gen.py --model dall-e-2 --size 512x512 --count 4