generate-image
Skill724 starsChanged 5 months agoMITView on GitHub
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.
- Reads credentials
- Installs packages
Files
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(containsOPENAI_API_KEYandSTABILITY_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)
python ~/.agents/tools/generate-image.py \
--prompt "a sunset over mountains, oil painting style" \
--output ./sunset.png \
--model gpt-image-2 \
--quality highGenerate with default (gpt-image-2)
python ~/.agents/tools/generate-image.py \
--prompt "a sunset over mountains, oil painting style" \
--output ./sunset.pngHigh quality
python ~/.agents/tools/generate-image.py \
--prompt "modern logo design for a tech company" \
--output ./logo.png \
--size 1024x1024 \
--quality highWide format (good for blog covers, banners)
python ~/.agents/tools/generate-image.py \
--prompt "abstract digital art with blue tones" \
--output ./banner.png \
--size 1536x1024Tall format (good for mobile, stories)
python ~/.agents/tools/generate-image.py \
--prompt "portrait of a futuristic city" \
--output ./city.png \
--size 1024x1536Transparent background (icons, logos)
python ~/.agents/tools/generate-image.py \
--prompt "a minimalist cat icon, flat design" \
--output ./icon.png \
--background transparentGenerate with Stability AI (SD 3.5 Large)
python ~/.agents/tools/generate-image.py \
--prompt "watercolor painting of a garden" \
--output ./garden.png \
--provider stabilityCLI 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:
pip install requestsOutput
The script prints:
- The provider and model used
- The prompt (and revised prompt if applicable)
- The saved file path
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- github/awesome-copilot★ 41ksame name
- K-Dense-AI/claude-scientific-writer★ 2.4ksame name
- LeonChaoX/qinyan-academic-skills★ 910same name
- ansari-project/codev★ 289same name
- cluesmith/codev★ 289same name
- Sateezg/codex-bridge★ 248same name
- DojoCodingLabs/remotion-superpowers★ 153same name
- happycapy-ai/Happycapy-skills★ 137same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- maxedapps/agent-skills★ 59same name
21 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use edit-image, scientific-slides and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SamurAIGPTSkilledit-image
Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.
Also in 3 projects that use this
ZanderRussSkillscientific-slides
Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.
Also in 3 projects that use this
nicepkgSkillteam
根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 5 projects that use this
AnthropicSkillpdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Also in 4 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 5 projects that use this
- +1 more from anthropics
In this repository77 other files it gives its agents.
- ab-test-setupSkill
- affiliate-marketingSkill
- ahrefs-pythonSkill
- ai-citations-reportSkill
- apollo-outreachSkill
- backlink-auditSkill
- blueskySkill
- brand-monitorSkill
- brand-devSkill
- competitor-analysisSkill
- competitor-traffic-reportSkill
- content-calendarSkill
- content-gap-analysisSkill
- content-repurposingSkill
- content-strategySkill
- copy-editingSkill
- copywritingSkill
- demand-genSkill
- discord-botSkill
- domain-researchSkill
- email-sequenceSkill
- email-subject-linesSkill
- facebook-adsSkill
- feishu-larkSkill
- geo-analysisSkill
- geo-difficultySkill
- geo-query-finderSkill
- github-starsSkill
- glasser-researchSkill
- google-ads-reportSkill
- google-adsSkill
- google-analyticsSkill
- google-reviewsSkill
- growth-strategySkill
- gsc-portfolio-auditSkill
- hubspotSkill
- i18nSkill
- icp-builderSkill
- keyword-researchSkill
- launch-strategySkill
- lead-magnetSkill
- linkedin-adsSkill
- linkedin-contentSkill
- marketing-ideasSkill
- marketing-slidesSkill
- newsletterSkill
- onboarding-croSkill
- organize-skillsSkill
- page-croSkill
- podcast-editSkill
- podcast-marketingSkill
- pricing-strategySkill
- product-marketingSkill
- programmatic-seoSkill
- publish-articleSkill
- reddit-marketingSkill
- referral-programSkill
- schema-markupSkill
- search-consoleSkill
- semrush-researchSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

