Generating images with OpenAI gpt-image-2
Generate or edit images via a Python wrapper around OpenAI's gpt-image-2 — text prompts or reference images, strict fail-fast rules
- What
- Generate or edit images via a Python wrapper around OpenAI's gpt-image-2 — text prompts or reference images, strict fail-fast rules
- Cost
- Free
- Needs
- an OPENAI_API_KEY with API credits (paid usage — every image costs credits, no usable free tier); the skill is a wrapper the agent runs, not a hosted service
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
💳 Paid API required — every image costs OpenAI API credits; there is no usable free tier. Curated by Skill Harbor — @spencerpauly's image generation skill: a Python-script wrapper around OpenAI's gpt-image-2 for generating and editing images (icons, logos, mockups, OG images, blog heroes, marketing assets, concept art) from text prompts or reference images, with strict rules (gpt-image-2 only, fail fast on errors, never invent credentials — it asks how you want to provide the key). Honest caveats: needs an `OPENAI_API_KEY` and every image costs API credits — no free tier; not for charts/plots (use code instead) or stock photos. CC0-1.0 licensed. Skill Harbor never reviews the code, review it yourself before use. Discovered via skills.sh.
Version:
Quick answer
Generating images with OpenAI gpt-image-2 is a free Muse skill that generates or edits images via a Python wrapper around OpenAI's gpt-image-2, with strict fail-fast rules. It covers icons, logos, mockups, OG images, and marketing assets, wrapping the model in a script that fails fast. Every image costs OpenAI API credits, with no usable free tier.
Install
Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit 99cd265Step 0 — before installing anything: read this install prompt, summarize in a few lines what this build does and what installing it involves, then ask me to confirm before you proceed. Prerequisites: an OPENAI_API_KEY with API credits (paid usage — every image costs credits, no usable free tier); the skill is a wrapper the agent runs, not a hosted service Install "Generating images with OpenAI gpt-image-2" for me. It gives my agent @spencerpauly's image generation wrapper: a Python script around OpenAI's gpt-image-2 for generating and editing images (icons, logos, mockups, OG images, blog heroes, marketing assets, concept art) from text prompts or reference images, with strict rules (gpt-image-2 only, fail fast on errors, never invent credentials — it asks how you want to provide the key). CC0-1.0 licensed. Repository: https://raw.githubusercontent.com/spencerpauly/awesome-cursor-skills/99cd2655788456cc1c685944dcf8c2de82c1ded4/resources/generating-images/SKILL.md Pinned version: install the code at commit 99cd2655788456cc1c685944dcf8c2de82c1ded4 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. 1. Fetch the SKILL.md file (and any helper files) from the repository path into a temporary folder 2. Safety check: review the SKILL.md and scripts for anything suspicious (unexpected network calls, shell commands, credential harvesting). This repo should contain zero secrets in code, credentials only via the secure vault, allowed hosts declared in the SKILL.md. Verify that holds here; STOP on any red flag and tell me. 3. Install it as a skill: copy SKILL.md and its helper files into the agent's skills directory, in a folder named "generating-images". 4. Verify with no network calls: frontmatter valid, files in place. 5. Report what was installed, where, and what I still need to do myself (e.g. provide my OPENAI_API_KEY via the secure vault — the skill will not read it from .env or 1Password on its own). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.
Saved to your recent installs. Find it anytime on /connect.
🔒 Security, provenance and what this touches
- It works with an API key or a token that you provide.
What the scan found — excerpts from the install prompt
- uses API keys or tokens — Prerequisites: an OPENAI_API_KEY with API credits (paid usage — every image costs credits, no usable free tier · Prérequis : une OPENAI_API_KEY avec crédits API (usage payant — chaque image coûte des crédits, aucun niveau g
The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Verification certificate
Dated facts about what was checked for this listing, and how. This is not a safety certification.
- Pinned version
- 99cd265 · 2026-10-13
- Sandbox install test
- Install ran in our test sandbox · Nov 11, 2026
- Creator identity
- Not verified
- Fingerprint watch
- Last checked · Nov 19, 2026 : no change detected in the files linked by this install prompt
- Install prompt analysis
- 2026-10-13 : uses API keys or tokens
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Questions
How do I install a skill?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.