Skip to content
Back to skills

Openai Image Gen

ASecurity

OpenAI Images API: batches, prompt sampler, gallery — gpt-image-1 and variants.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agentspythonbashgitapi

Works with

  • api

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add mouadja02/skills --skill openai-image-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openai Image Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openai Image Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouadja02-openai-image-gen/badge)](https://www.skillsdirectory.com/skills/mouadja02-openai-image-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openai-image-gen
description: "OpenAI Images API: batches, prompt sampler, gallery — gpt-image-1 and variants."
source: "https://github.com/steipete/agent-scripts"
attribution: "steipete/agent-scripts by Peter Steinberger"
version: "1.0.0"
---

# OpenAI Image Gen

> **Attribution:** Sourced from [steipete/agent-scripts](https://github.com/steipete/agent-scripts) by [Peter Steinberger](https://github.com/steipete).

## When to Use

- Generating images via OpenAI Images API (gpt-image-1)
- Running batch image generation with auto-generated HTML gallery
- Comparing prompt variations side by side

Generate images via OpenAI Images API with batch support and an auto-generated HTML gallery.

## Setup

- Requires `OPENAI_API_KEY` environment variable.
- Requires Python 3 and the `openai` package.

## Usage

```bash
# Basic run (generates random structured prompts)
python3 gen.py

# Custom count
python3 gen.py --count 16

# Custom model
python3 gen.py --model gpt-image-1.5

# Custom prompt
python3 gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4

# Custom size and quality
python3 gen.py --size 1536x1024 --quality high --out-dir ./out/images
```

## Output

- `*.png` images in the output directory
- `prompts.json` (prompt ↔ file mapping)
- `index.html` (thumbnail gallery for quick review)

```bash
# Open gallery
open ~/tmp/openai-image-gen-*/index.html
```

## Common Options

| Flag | Description |
|------|-------------|
| `--count N` | Number of images to generate |
| `--model MODEL` | Model to use (e.g., `gpt-image-1`, `gpt-image-1.5`) |
| `--prompt TEXT` | Custom prompt (overrides random generation) |
| `--size WxH` | Image size (e.g., `1024x1024`, `1536x1024`) |
| `--quality LEVEL` | Quality level (`standard`, `high`) |
| `--out-dir PATH` | Output directory |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…