Openclaudia-skills 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.
install
source · Clone the upstream repo
git clone https://github.com/OpenClaudia/openclaudia-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/OpenClaudia/openclaudia-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ai-image-gen" ~/.claude/skills/openclaudia-openclaudia-skills-generate-image && rm -rf "$T"
manifest:
skills/ai-image-gen/SKILL.mdsource content
AI Image Generation
Generate images from text prompts using OpenAI GPT Image (gpt-image-1) or Stability AI (SD 3.5 Large).
Tool Location
- Script:
~/.agents/tools/generate-image.py - Env file:
(contains~/.agents/tools/.env
andOPENAI_API_KEY
)STABILITY_API_KEY
Quick Usage
Generate with OpenAI GPT Image (default)
python ~/.agents/tools/generate-image.py \ --prompt "a sunset over mountains, oil painting style" \ --output ./sunset.png
High quality
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)
python ~/.agents/tools/generate-image.py \ --prompt "abstract digital art with blue tones" \ --output ./banner.png \ --size 1536x1024
Tall format (good for mobile, stories)
python ~/.agents/tools/generate-image.py \ --prompt "portrait of a futuristic city" \ --output ./city.png \ --size 1024x1536
Transparent background (icons, logos)
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)
python ~/.agents/tools/generate-image.py \ --prompt "watercolor painting of a garden" \ --output ./garden.png \ --provider stability
CLI Options
| Option | Description |
|---|---|
| (Required) Text prompt describing the desired image |
| (Required) Output file path |
| (default) or |
| Image size for OpenAI: (default), (wide), (tall) |
| OpenAI quality: , (default), or |
| OpenAI background: (default), , or |
| Override model (default: for OpenAI, for Stability) |
Provider Comparison
| Feature | OpenAI GPT Image | Stability AI SD 3.5 |
|---|---|---|
| Default model | gpt-image-1 | sd3.5-large |
| Prompt adherence | Excellent | Good |
| Size options | 1024x1024, 1536x1024, 1024x1536 | 1024x1024 |
| Quality options | low, medium, high | N/A |
| Transparent bg | Yes | No |
| Style | Photorealistic + artistic | Artistic + photorealistic |
Dependencies
(for API calls)requests
Install if needed:
pip install requests
Output
The script prints:
- The provider and model used
- The prompt (and revised prompt if applicable)
- The saved file path