generate-image
/generate-image
Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt.
- Author
- OpenClaudia ↗
- Repository
- openclaudia-skills ↗
- Licence
- MIT
- Last repository change
- 21.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt.
Arguments
/generate-image [prompt description]
Original author description
Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt.
How it works
- Tool Location
- Available OpenAI image models (verified live via /v1/models 2026-05-15)
- Quick Usage
- CLI Options
- Provider Comparison
- Dependencies
- Output
SKILL.md preview
--- name: generate-image description: Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt. argument-hint: [prompt description] allowed-tools: Bash(*), Read, Write --- # AI Image Generation Generate images from text prompts using OpenAI GPT Image (gpt-image-2 / gpt-image-1 / variants) or Stability AI (SD 3.5 Large). ## Tool Location - Script: `~/.agents/tools/generate-image.py` - Env file: `~/.agents/tools/.env` (contains `OPENAI_API_KEY` and `STABILITY_API_KEY`) ## Available OpenAI image models (verified live via `/v1/models` 2026-05-15) | Model ID | Notes | |---|---| | `gpt-image-2` | **Flagship.** Released 2026-04-21. Best prompt adherence, best photorealism. Default when image quality matters. | | `gpt-image-2-2026-04-21` | Pinned dated variant of gpt-image-2 | | `gpt-image-1.5` | Intermediate release between 1 and 2 | | `gpt-image-1-mini` | Smaller/cheaper gpt-image-1 variant — use for batch/draft generation where cost matters | | `gpt-image-1` | Original gpt-image. Still works; superseded by gpt-image-2. | | `chatgpt-image-latest` | Always-current alias of the model ChatGPT.com uses (currently gpt-image-2-class). Use when you want "whatever ChatGPT uses today" | | `dall-e-3` | Legacy fallback. Different quality semantics (standard/hd, not low/medium/high). | Pass any of these to `--model`. The script branches on `gpt-image*` for the quality/format handling, so all gpt-image-* variants work out of the box. **Default in the script is now `gpt-image-2`** (the flagship) — pass `--model gpt-image-1-mini` for cheap batch/draft work. ## Quick Usage ### Generate with OpenAI gpt-image-2 (flagship) ```bash python ~/.agents/tools/generate-image.py \ --prompt "a sunset over mountains, oil painting style" \ --output ./sunset.png \ --model gpt-image-2 \ --quality high ``` ### Generate with default (gpt-image-2) ```bash python ~/.agents/tools/generate-image.py \ --prompt "a sunset over mountains, oil painting style" \ --output ./sunset.png ``` ### High quality ```bash python ~/.agents/tools/generate-image.py \ --prompt "modern logo design for a tech company" \ --output ./logo.png \ --size 1024x1024 \ --quality high ``` ### Wide format (good for blog covers, banners) ```bash python ~/.agents/tools/generate-image.py \ --prompt "abstract digital art with blue tones" \ --output ./banner.png \ --size 1536x1024 ``` ### Tall format (good for mobile, stories) ```bash python ~/.agents/tools/generate-image.py \ --prompt "portrait of a futuristic city" \ --output ./city.png \ --size 1024x1536 ``` ### Transparent background (icons, logos) ```bash python ~/.agents/tools/generate-image.py \ --prompt "a minimalist cat icon, flat design" \ --output ./icon.png \ --background transparent ``` ### Generate with Stability AI (SD 3.5 Large) ```bash python ~/.agents/tools/generate-image.py \ --prompt "watercolor painting of a garden" \ --output ./garden.png \ --provider stability ``` ## CLI Options | Option | Description | |--------|-------------| | `--prompt, -p` | **(Required)** Text prompt describing the desired image | | `--output, -o` | **(Required)** Output file path | | `--provider` | `openai` (default) or `stability` | | `--size` | Image size for OpenAI: `1024x1024` (default), `1536x1024` (wide), `1024x1536` (tall) | | `--quality` | OpenAI quality: `low`, `medium` (default), or `high` | | `--background` | OpenAI background: `auto` (default), `transparent`, or `opaque` | | `--model` | Override model (default: `gpt-image-2` for OpenAI, `sd3.5-large` for Stability) | ## Provider Comparison | Feature | OpenAI gpt-image-2 | OpenAI gpt-image-1 | Stability AI SD 3.5 | |---------|--------------------|--------------------|---------------------| | Released | 2026-04-21 | 2025 | — | | Prompt adherence | Best | Excellent | Good | | Size options | 1024x1024, 1536x1024, 1024x1536 | 1024x1024, 1536x1024, 1024x1536 | 1024x1024 | | Quality options | low, medium, high | low, medium, high | N/A | | Transparent bg | Yes | Yes | No | | Style | Photorealistic + artistic | Photorealistic + artistic | Artistic + photorealistic | | Cost per image (high) | Higher than 1 | Baseline | N/A | ## Dependencies - `requests` (for API calls) Install if needed: ```bash pip install requests ``` ## Output The script prints: - The provider and model used - The prompt (and revised prompt if applicable) - The saved file path
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · OpenClaudia/openclaudia-skills | 95 | MIT |
| foryourhealth111-pixel/Vibe-Skills | 100 | Apache-2.0 |
| github/awesome-copilot | 100 | MIT |
| synthetic-sciences/openscience | 100 | Apache-2.0 |
| comfy-org/comfy-skills | 100 | MIT |
| mikepsinn/disease-eradication-plan | 100 | CC-BY-4.0 |
| laurigates/claude-plugins | 100 | MIT |
| getedgehq/skills | 100 | Apache-2.0 |
| bdambrosio/Cognitive_workbench | 100 | MIT |
Database snapshot: 13.11.2026 · package version 933c131f117a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100gpt-image-skill
Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Use ONLY when the user explicitly names OpenAI or GPT as the provider: "gpt image", "openai image", "generate image with openai", "用 openai 画图", "用 GPT 生成图片". For generic image requests without a… - 100gpt-image-skill
Generate or edit images when the user names OpenAI, GPT Image, or a gpt-image model. Use the default image skill when no provider is named. - 959router-image
Generate images via 9Router /v1/images/generations using OpenAI / Gemini Imagen / DALL-E / FLUX / MiniMax / SDWebUI / ComfyUI / Codex models. Use when the user wants to create, generate, draw, or render an image, picture, or text-to-image (txt2img). - 100image-generation
Generates and edits images using Google Gemini, OpenAI GPT Image, xAI Grok Image, and OpenRouter APIs via shell scripts. This skill should be used when the user asks to "generate an image", "create an image", "edit an image", "modify an image", "make a picture", "draw me a",… - 100generating-images
Generate or edit images using the OpenAI Image API (gpt-image-2). Use when the user asks to generate, create, draw, render, illustrate, mock up, or edit an image, icon, logo, mockup, illustration, OG image, blog hero, marketing asset, or similar visual. Also use when the user… - 98image-generation
Generate an image from a text description and save it to disk. Uses Gemini (Antigravity CLI or API key), OpenAI (API key), the free Pollinations service or a local model, whichever the user has set up. Use when the user asks to create, generate, draw, or make an image, picture,…