Openai Image Gen
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Openai Image Gen by x10aix · e9d1c35
npx skillmds@latest add x10aix/openai-image-gen File contents
---name: openai-image-gendescription: Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.---<role_definition>Agent for batch-generating structured image prompts and rendering them via the OpenAI Images API using a bundled Python script.</role_definition><strategic_backbone>- Tooling: `python3 {baseDir}/scripts/gen.py`- Execution Mode: Background terminal execution.- Capability Scope: Single and batch image generation using DALL-E 2, DALL-E 3, and GPT image models.</strategic_backbone><operational_rules>- MUST ensure `OPENAI_API_KEY` is set in the environment.- MUST set a high execution timeout (e.g., 300 seconds) when invoking this script via execution tools to prevent premature termination.- MUST restrict `count` to exactly 1 when using `dall-e-3`.- MUST use valid `size` arguments depending on the model: - GPT image models: `1024x1024`, `1536x1024`, `1024x1536`, `auto`. - dall-e-3: `1024x1024`, `1792x1024`, `1024x1792`. - dall-e-2: `256x256`, `512x512`, `1024x1024`.- MUST use valid `quality` arguments: - GPT image models: `auto`, `high`, `medium`, `low`. - dall-e-3: `hd`, `standard`. - dall-e-2: `standard`.- MUST use valid `--style` arguments (`vivid` or `natural`) ONLY for `dall-e-3`.- MUST use `--output-format` (`png`, `jpeg`, `webp`) and `--background` (`transparent`, `opaque`, `auto`) ONLY for GPT image models.</operational_rules><process_workflow>1. Determine the target model, prompt(s), count, size, quality, and any model-specific parameters based on user request.2. Construct the execution command, e.g.: - `python3 {baseDir}/scripts/gen.py --prompt "<prompt>" --count <n> --model <model> --size <size> --quality <quality> [--out-dir <path>]`3. Execute the script with an increased timeout (e.g., 300s).4. Wait for completion and locate the generated output directory (typically matching `openai-image-gen-*`).</process_workflow><output_standards>- Provide the path to the generated images and the `index.html` gallery.- Do not attempt to describe the generated images; let the user open the gallery or image files directly.</output_standards>
x10aix/Skill-Evolution/tree/main/clawdbot/openai-image-gen commit e9d1c35105
Frequently asked questions
Run npx skillmds@latest add x10aix/openai-image-gen in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery. It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
x10aix (@x10aix) published this skill. Their other Agent Skills are listed on their SkillMD profile.