gpt-image-2
Skill3 starsChanged 4 months agoMITView on GitHub
Generate and edit images with OpenAI GPT Image 2 (openai/gpt-image-2) on Replicate. Excels at precise instruction-following, in-image text, photorealism, and character consistency across images using reference pictures. Use to generate images with gpt-image-2, edit/compose images from references, build character reference sheets / turnarounds from 1-3 reference pictures, build product reference sheets (4-view) from a product or product photo, or produce multi-panel storyboard sheets from a story. Defaults to high quality (the model's native maximum resolution) and 16:9. Trigger when the user mentions gpt-image-2, gpt image 2, a character sheet, character turnaround, a product sheet / product reference sheet, or a storyboard sheet, or asks to generate/edit images via Replicate.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- JustinPerea/nebula-nodestheir own version, first seen Nov 5, 2026
- lanlanbulanduo/agent-skillstheir own version, first seen Nov 1, 2026
- kudeerliu48-web/CloseCodetheir own version, first seen Nov 1, 2026
- luckysunzk/skillstheir own version, first seen Oct 20, 2026
- ConardLi/garden-skillstheir own version, first seen Oct 13, 2026
- asrul10/skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use flux-2-klein, flux-kontext and 10 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.
agentspace-soSkillflux-2-klein
Generate images with Flux 2 Klein (Black Forest Labs' distilled fast variant of Flux 2) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Flux 2 Klein's strengths (sub-second latency, multi-reference brand styling, declarative subject-first prompts), the step-count strategy (4–8 for fast iteration, ~25 for polish), the 9B vs 4B variant trade-off, and when to route to Flux 2 Pro / Seedream 5 / GPT Image 2 instead. Calls `runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image` (or `/4b/`) through the local RunComfy CLI. Triggers on "flux 2 klein", "flux-2-klein", "flux klein", "BFL flux 2", or any explicit ask to generate with this model.
Also in 4 projects that use this
agentspace-soSkillflux-kontext
Edit images with Flux 1 Kontext Pro (Black Forest Labs' precise local image-edit model) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Flux Kontext's strengths (single-reference precise local edits, strong prompt control, consistent high-fidelity outputs), the schema (single image + prompt), and when to route to Nano Banana Edit / GPT Image 2 edit / Flux 2 Klein instead. Calls `runcomfy run blackforestlabs/flux-1-kontext/pro/edit` through the local RunComfy CLI. Triggers on "flux kontext", "flux-kontext", "flux 1 kontext", "kontext", "BFL kontext", or any explicit ask to edit with this model.
Also in 4 projects that use this
prime-skillsSkillimage-inpainting
Mask-driven image inpainting on RunComfy via the `runcomfy` CLI. Routes to Tongyi MAI Z-Image Turbo Inpainting (the dedicated inpainting endpoint with mask, strength, and control-scale) and to identity-preserving edit models (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when a mask isn't available and the region must be described instead. Use for object removal, watermark removal, region replacement, blemish cleanup, and any controlled local edit where a binary mask defines the target area. Triggers on "inpaint", "inpainting", "image inpaint", "remove from image", "fill region", "mask-driven edit", "remove watermark", "remove object", "patch the photo", "fill the hole", or any explicit ask to edit a specific masked region of a still.
Also in 4 projects that use this
ConardLiSkillbeautiful-article
把用户提供的素材(网页 URL / PDF / DOCX / Markdown / 纯文本 / 截图 / 粘贴材料)编辑、设计成一篇美丽的、可离线打开和分享的**单文件 HTML 网页文章**。基于 reacticle 组件协议:不手写裸 HTML/CSS,而用语义组件 + 受主题约束的 Raw 自由层;按 source→规划→双确认→生成→终审→修复的小型 harness 流程推进,默认 100% 信息保留的长文。触发场景:把 URL/PDF/DOCX/文章做成网页文章 / 长文 / briefing / 解释文 / 视觉文章 / 教程 / 审阅复盘 / 方案分析,'render this as a beautiful web article / 把这篇做成网页文章 / 生成一篇可分享的 HTML 长文 / reacticle 文章'。只生成文章,不生成后台、表单、dashboard、产品原型或通用 Web App。
Also in 3 projects that use this
prime-skillsSkillace-step
Generate, inpaint, and outpaint music with ACE Step on RunComfy via the `runcomfy` CLI. ACE Step is StepFun-AI's open-weights music foundation model — tag-driven composition (genre, mood, instruments), multilingual lyrics with section markers, 5 s to 4 min stereo output, $0.0002–0.0003 per second (≈ 27× cheaper than ElevenLabs Music). Four endpoints: ACE Step text-to-audio (the default), ACE Step 1.5 text-to-audio (50+ language lyrics, refined structured-lyric handling), ACE Step audio-inpaint (regenerate a time range inside an existing track), ACE Step audio-outpaint (extend an existing track before or after). Triggers on "ace step", "ace-step", "acestep", "ACE music", "open music model", "cheap AI music", "inpaint audio", "audio inpaint", "extend music", "audio outpaint", "lengthen track", "music with tags", or any explicit ask to generate or edit music with ACE Step.
Also in 3 projects that use this
- +3 more from agentspace-so
- +4 more from prime-skills
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- ConardLi/web-design-skill★ 15ksame name
- ConardLi/garden-skills★ 13ksame name
- glebis/claude-skills★ 410same name
- jiangmuran/claude-image★ 88same name
- robonuggets/gpt-image-2-skill★ 69same name
- pilioai/skills★ 43same name
- prime-skills/runcomfy-agent-skills★ 41same name
- genmedia-labs/skills★ 26same name
- JustinPerea/nebula-nodes★ 23same name
- AceDataCloud/Skills★ 17same name
15 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.
In this repository45 other files it gives its agents.
- asset-generatorSkill
- audio-theaterSkill
- avatar-ambient-sfxSkill
- avatar-camera-anglesSkill
- avatar-framesSkill
- avatar-inventSkill
- avatar-locationSkill
- avatar-reel-composerSkill
- avatar-talking-videoSkill
- bg-music-hqSkill
- bg-musicSkill
- brand-content-strategySkill
- broll-actor-copySkill
- broll-avatar-cameraSkill
- broll-browser-recorderSkill
- broll-coreSkill
- broll-cursorSkill
- broll-finderSkill
- broll-generatorSkill
- broll-storySkill
- broll-terminalSkill
- broll-web-captureSkill
- caption-word-revealSkill
- carousel-generatorSkill
- cuento-reelSkill
- facebook-videosSkill
- instagram-videosSkill
- luxury-hnwi-salesSkill
- onboarding-scriptSkill
- pdf-remixSkill
- reel-discoverySkill
- reel-restyleSkill
- rule-of-six-editSkill
- seedance-2Skill
- sound-effectsSkill
- tiktok-videosSkill
- video-bg-replaceSkill
- video-composeSkill
- video-remixSkill
- video-scene-analysisSkill
- video-transcribeSkill
- viral-video-scriptSkill
- voice-cloneSkill
- voice-isolateSkill
- youtube-videosSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Every script prints a JSON object to stdout ending with "files": [...] listing the saved paths.
- Very specific: line 68
Always pass the reference picture(s) with --ref (repeatable, 1-3).
- Very specific: line 69
Look at the references and write --subject (a short noun phrase) and --description (build, face, hair, costume, personality).
- Very specific: line 92
Write --product (a noun phrase incl.
- Distinctive: line 105
Read prompts/storyboard_framework.md and build the Phase 1 storyboard image prompt for the story (adapt the framework — title/format …
- Very specific: line 116
After the user approves the storyboard, hand off to the seedance-2 skill, which builds the framework's Phase 2 cinematic video prompt and …
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GPT Image 2 (Replicate)
Generate and edit images with OpenAI GPT Image 2 (openai/gpt-image-2) on Replicate. Strengths: precise instruction-following, accurate in-image text, photorealism, and character consistency — it preserves the identity of reference images at high fidelity, which is ideal for character sheets and storyboards.
Setup
Install dependencies (one-time, usually already present from sibling skills):
pip3 install -r ~/.cursor/skills/gpt-image-2/scripts/requirements.txtThe Replicate API token is shared with the other Replicate skills (avatar-video-reel, brand-asset-studio, bg-music, sound-effects, ...). It is auto-discovered from REPLICATE_API_TOKEN, this skill's config.json, or any sibling skill's config. Only run setup if no valid token is found:
python3 ~/.cursor/skills/gpt-image-2/scripts/setup_key.py YOUR_REPLICATE_API_TOKEN
python3 ~/.cursor/skills/gpt-image-2/scripts/setup_key.py --show # check current tokenDefaults
This skill defaults to --quality high (the model's native maximum — gpt-image-2 has no resolution control, so nothing is ever upscaled) and --aspect-ratio 16:9, matching the intended use for character sheets and storyboards.
Quick Reference
# Text -> image (16:9, highest native quality)
python3 ~/.cursor/skills/gpt-image-2/scripts/generate_image.py \
"a red origami crane on a weathered wooden table, soft window light" \
--aspect-ratio 16:9 --quality high -o crane.png
# Edit / compose with reference images (identity preserved automatically)
python3 ~/.cursor/skills/gpt-image-2/scripts/generate_image.py \
"the same character sitting in a Parisian cafe, reading a book" \
--ref hero.png -o cafe.png
# Long prompt from a file (best for storyboards)
python3 ~/.cursor/skills/gpt-image-2/scripts/generate_image.py \
--prompt-file board.txt --aspect-ratio 16:9 -o storyboard.png
# Several variations
python3 ~/.cursor/skills/gpt-image-2/scripts/generate_image.py \
"logo for a coffee brand called \"EMBER\", bold sans-serif" \
--aspect-ratio 1:1 --count 4 -o ember.pngEvery script prints a JSON object to stdout ending with "files": [...] listing the saved paths.
Workflow 1: Character Reference Sheet
Generate a clean 4-view reference sheet — full-body front (three-quarter), full-body rear, a front head-and-shoulders close-up, and a 90° profile close-up — with locked facial identity and costume, from 1-3 reference pictures of the same character. (Exactly four views: no expression sheet or eye-direction studies, so the canvas isn't flooded with extra faces.)
python3 ~/.cursor/skills/gpt-image-2/scripts/character_sheet.py \
--ref ref1.png --ref ref2.png \
--subject "young magician boy, around 10 years old" \
--description "Slim build, large observant eyes, messy dark-brown hair. Deep midnight-blue robe covered in gold stars, matching pointed wizard hat. Curious, gentle, imaginative." \
--style "Premium illustrated storybook, hand-painted fairy-tale art, warm magical realism" \
-o magician_sheet.pngHow to use it well:
- Always pass the reference picture(s) with
--ref(repeatable, 1-3). GPT Image 2 preserves their identity automatically. - Look at the references and write
--subject(a short noun phrase) and--description(build, face, hair, costume, personality). For non-default looks, set--style. - The script reproduces the fixed 4-view frame (the four views, lighting, no-text / no-extra-figures rules, consistency mandate). See prompts/character_sheet_framework.md for the full framework and the worked magician example.
- Defaults are
--quality high --aspect-ratio 16:9(native maximum resolution; nothing is upscaled). Inspect the assembled prompt first with--print-promptif you want to review/tweak it. - To use a completely custom prompt instead of the scaffold, pass
--prompt-file path.txt.
character_sheet.py options: --ref (repeatable), --subject, --description / --description-file, --style / --style-file, --bg, --prompt-file, --aspect-ratio (16:9), --quality (high), --count, --pad-color, --output, --print-prompt.
Workflow 2: Product Reference Sheet
Generate a clean 4-view product sheet — front three-quarter, rear straight-on, a front close-up, and a left-side profile close-up — in photorealistic product-photography style, with consistent identity/colour/materials/details across all four views. Optionally pass a product photo with --ref to lock the exact look.
python3 ~/.cursor/skills/gpt-image-2/scripts/product_sheet.py \
--ref iphone.png \
--product "iPhone 17 Pro Max in Cosmic Orange" \
--front "6.9-inch Super Retina XDR display, Dynamic Island, anodized aluminum unibody, Camera Control on the right edge, USB-C on the bottom." \
--rear "Full-width camera plateau, three 48MP lenses in a triangular pattern, LiDAR + LED flash, recessed Ceramic Shield glass panel, centred Apple logo." \
--closeup "Dynamic Island housing the front camera, Ceramic Shield 2 glass, precision-machined frame edges, Action + volume buttons on the left." \
--profile "Camera plateau tapering into the unibody, 8.75mm body, seamless matte aluminum to glass transitions." \
-o iphone_sheet.pngHow to use it well:
- Write
--product(a noun phrase incl. colour/finish) and adapt the four per-view slots (--front/--rear/--closeup/--profile) to what's actually visible in each view. Anything you omit falls back to the generic view instruction. - Pass a product photo with
--ref(repeatable) to lock the exact look; without it the product is rendered from your description. - Set
--styleto override the defaultPhotorealistic product photography style.(e.g. a clean 3D render or minimalist e-commerce look). - The script reproduces the fixed 4-view frame (the four views, lighting, no-text / no-extra-objects rules, consistency mandate). See prompts/product_sheet_framework.md for the full framework and the worked iPhone example.
- Defaults
--quality high --aspect-ratio 16:9. Review with--print-prompt; use--prompt-filefor a fully custom prompt.
product_sheet.py options: --ref (repeatable), --product, --front, --rear, --closeup, --profile, --style / --style-file, --bg, --prompt-file, --aspect-ratio (16:9), --quality (high), --count, --pad-color, --output, --print-prompt.
Workflow 3: Storyboard Sheet
Produce a professional multi-panel storyboard sheet (numbered panels with timecodes and shot notes) as one composite image. The prompt is authored per story using the storyboard framework; the script just generates it.
Steps:
- Read prompts/storyboard_framework.md and build the Phase 1 storyboard image prompt for the story (adapt the framework — title/format header, style, character DNA, visual tone, layout, per-panel scene breakdown, art-direction + format footers). Use the user's exact prompt instead if they provide one.
- Save the prompt to a file (it is long — 1,200-2,000 words for 15 panels).
- Generate, passing any character reference sheet with
--refto keep characters consistent across panels:
python3 ~/.cursor/skills/gpt-image-2/scripts/generate_image.py \
--prompt-file storyboard_prompt.txt \
--ref magician_sheet.png \
--aspect-ratio 16:9 --quality high -o storyboard.png- After the user approves the storyboard, hand off to the
seedance-2skill, which builds the framework's Phase 2 cinematic video prompt and animates the storyboard sheet into video (passing the sheet as a reference). This skill only produces the Phase 1 image.
Grid layout maps to panel count in the prompt text: 9→3×3, 12→3×4, 15→3×5 (default), 20→4×5. For 9:16 vertical, flip the grid (e.g. 15→5×3) and pass --aspect-ratio 9:16.
Model Capabilities & Constraints
| Capability | Detail |
| Strengths | Instruction-following, in-image text, photorealism, character consistency, precise editing |
| Reference images | One or more via --ref (input_images); identity preserved at high fidelity, no knob needed |
| Quality | low / medium / high / auto (we default high). Affects fidelity only, not pixel count. |
| Output size | Fixed by aspect ratio: ~1024² (1:1), 1536×1024 (3:2), 1024×1536 (2:3). No size/resolution input — this is the native maximum. |
| Native aspect ratios | 1:1, 3:2, 2:3 only |
| Transparency | Limited — --background transparent is accepted by the API but unreliable; use openai/gpt-image-1.5 for dependable transparent PNGs |
The model has no resolution control, so this skill never upscales — --quality high already gives the maximum resolution gpt-image-2 produces. The only post-processing is:
- 16:9 / 9:16 / 4:3 / 3:4: generated at the nearest native ratio, then the canvas is seamlessly extended to the exact target using the sampled background color (no letterbox bars, no cropping, no upscaling — the content keeps its native resolution; the frame just gains matching-color margin).
generate_image.py Options
| Option | Default | Description |
prompt / --prompt-file | — | Prompt text, or read a long prompt from a file |
--ref PATH | — | Reference image (repeatable) → input_images |
--aspect-ratio, -ar | 3:2 | 1:1,3:2,2:3 (native) or 16:9,9:16,4:3,3:4 (canvas-reframed at native resolution) |
--quality, -q | high | low,medium,high,auto — fidelity only; high = native maximum |
--format, -f | png | png,webp,jpeg |
--compression | 90 | 0-100; affects webp/jpeg, png stays lossless |
--background | auto | auto,opaque,transparent (transparency unreliable) |
--moderation | auto | auto,low |
--pad-color | auto | Canvas-extension fill: auto (sample border) or hex #1a1a1a |
--count, -n | 1 | 1-10 images per call |
--output, -o | slug | Output path |
--openai-key | — | Optional: bring your own OpenAI key (pay OpenAI directly) |
Note: generate_image.py defaults --aspect-ratio to 3:2; the character_sheet.py, product_sheet.py, and storyboard flows pass 16:9 explicitly. There is no resolution flag — output is always the model's native maximum.
Prompting Tips (from the model's guidance)
- Be specific: "add soft coastal daylight" beats "make it better".
- Photo language for realism: lens, lighting quality, framing ("shot with a 50mm lens, soft daylight, shallow depth of field").
- Lock what shouldn't change when editing: "change only the lighting; preserve the subject's face, pose, and clothing".
- Put in-image text in "quotes" and describe the typography ("bold sans-serif, centered, high contrast").
- Iterate with small changes rather than rewriting everything.
- Reference multiple images by number: "apply the style from image 1 to the subject in image 2".
Additional Resources
- Character sheet framework + worked example: prompts/character_sheet_framework.md
- Product sheet framework + worked example: prompts/product_sheet_framework.md
- Storyboard (two-phase) framework: prompts/storyboard_framework.md
- Full API details, schema, and post-processing internals: REFERENCE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

