Repository

awesome-gpt-image-2

Prompt as Code | GPT-Image2 工业级提示词引擎与模板库,470+ 个案例逆向工程,20+ 套工业级模板,并提炼出Skills,持续更新中

Category
Template Entry
🧩 UI & Interfaces
View Prompts
📊 Charts & Infographics
View Prompts
📰 Posters & Typography
View Prompts

Specs

  • CategoryTemplate Entry
  • 🧩 UI & InterfacesView Prompts
  • 📊 Charts & InfographicsView Prompts
  • 📰 Posters & TypographyView Prompts
  • CategoryTemplate Entry
  • 🛍️ Products & E-commerceView Prompts
  • 🏷️ Brand & LogosView Prompts
  • 🏛️ Architecture & SpacesView Prompts
  • CategoryTemplate Entry
  • 📷 Photography & RealismView Prompts
  • 🎨 Illustration & ArtView Prompts
  • 🧍 Characters & PeopleView Prompts
  • CategoryTemplate Entry
  • 🎬 Scenes & StorytellingView Prompts
  • 🏮 History & Classical Chinese ThemesView Prompts
  • 📚 Documents & PublishingView Prompts
  • 🧪 Other Use CasesView Prompts

README

GPT-Image2 Prompt System

<h3 align="center">Prompt as Code | GPT-Image2 Industrial Prompt Engine & Template Library, 400+ Reverse-Engineered Cases, 20+ Industrial Templates</h3>

Stars Forks Cases Original

English | 简体中文

Updated irregularly with new workflows. Stars are welcome.
This project is sponsored by Ciyuan API, an AI aggregation platform for cost-effective GPT Image 2 access.

🌐 Visual Website

Use the live site at gpt-image2.canghe.ai to browse the gallery as a product experience: open large previews, copy full prompts, filter by style or scenario, test generation after Google sign-in, and jump back to the source case on GitHub.

GPT-Image2 Gallery website preview

WeChat Official Account

Search 苍何 on WeChat or scan the QR card below. To join the GPT-Image2 community group, follow the account and reply with gpt-image-2交流群.

Canghe WeChat community QR card

<a name="section-vision"></a>

⚡️ Project Vision

After GPT-Image2 became widely available, AI image generation moved from "can it make an image?" to "can it make stable, controllable, reusable images?" This project turns scattered community examples into Prompt-as-Code assets that are easier for agents and automation workflows to reuse.

The core goal is simple: compress prose-style prompts into structured protocols. When you need batch generation, template systems, or production workflows, this structure is more valuable than a pile of isolated examples.

  • 🧱 Atomic schema: split subjects, lighting, materials, layout, and visual details into composable parts
  • ⚙️ Workflow friendly: designed for agents, scripts, and automation systems
  • 🧬 Structured control: improve controllability for layout, copy, and information hierarchy

🗂️ Category Overview

Start with the case album to find a visual direction, then open the prompt template categories to turn that direction into reusable structure.

🖼️ Case Album

<table>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>🧩 UI & Interfaces</strong><br><sub>73 cases</sub></p>
<a href="docs/gallery.md#cat-ui">

UI and interfaces

</a><br>
<sub>Apps, websites, dashboards, social screenshots, and product interfaces.</sub><br>
<a href="docs/gallery.md#cat-ui"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>📊 Charts & Infographics</strong><br><sub>51 cases</sub></p>
<a href="docs/gallery.md#cat-infographic">

Charts and infographics

</a><br>
<sub>Infographics, knowledge maps, technical explainers, and structured diagrams.</sub><br>
<a href="docs/gallery.md#cat-infographic"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>📰 Posters & Typography</strong><br><sub>76 cases</sub></p>
<a href="docs/gallery.md#cat-poster">

Posters and typography

</a><br>
<sub>Event posters, covers, type-driven visuals, and strong layout compositions.</sub><br>
<a href="docs/gallery.md#cat-poster"><strong>View Cases</strong></a>
</td>
</tr>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>🛍️ Products & E-commerce</strong><br><sub>37 cases</sub></p>
<a href="docs/gallery.md#cat-product">

Products and e-commerce

</a><br>
<sub>Product shots, detail pages, packaging, selling points, and ads.</sub><br>
<a href="docs/gallery.md#cat-product"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>🏷️ Brand & Logos</strong><br><sub>24 cases</sub></p>
<a href="docs/gallery.md#cat-brand">

Brand and logos

</a><br>
<sub>Logos, identity systems, brand touchpoints, and campaign visuals.</sub><br>
<a href="docs/gallery.md#cat-brand"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>🏛️ Architecture & Spaces</strong><br><sub>11 cases</sub></p>
<a href="docs/gallery.md#cat-architecture">

Architecture and spaces

</a><br>
<sub>Architecture renders, interiors, city maps, and spatial concepts.</sub><br>
<a href="docs/gallery.md#cat-architecture"><strong>View Cases</strong></a>
</td>
</tr>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>📷 Photography & Realism</strong><br><sub>64 cases</sub></p>
<a href="docs/gallery.md#cat-photo">

Photography and realism

</a><br>
<sub>Portraits, phone photography, film texture, and commercial photography.</sub><br>
<a href="docs/gallery.md#cat-photo"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>🎨 Illustration & Art</strong><br><sub>50 cases</sub></p>
<a href="docs/gallery.md#cat-illustration">

Illustration and art

</a><br>
<sub>Illustration, art styles, material experiments, and decorative images.</sub><br>
<a href="docs/gallery.md#cat-illustration"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>🧍 Characters & People</strong><br><sub>23 cases</sub></p>
<a href="docs/gallery.md#cat-character">

Characters and people

</a><br>
<sub>Character design, pose references, cards, and 3D toys.</sub><br>
<a href="docs/gallery.md#cat-character"><strong>View Cases</strong></a>
</td>
</tr>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>🎬 Scenes & Storytelling</strong><br><sub>18 cases</sub></p>
<a href="docs/gallery.md#cat-scene">

Scenes and storytelling

</a><br>
<sub>Storyboards, narrative scenes, livestream frames, and worldbuilding.</sub><br>
<a href="docs/gallery.md#cat-scene"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>🏮 History & Classical Chinese Themes</strong><br><sub>16 cases</sub></p>
<a href="docs/gallery.md#cat-history">

History and classical Chinese themes

</a><br>
<sub>Classical scrolls, historical figures, traditional themes, and poetry visuals.</sub><br>
<a href="docs/gallery.md#cat-history"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>📚 Documents & Publishing</strong><br><sub>10 cases</sub></p>
<a href="docs/gallery.md#cat-document">

Documents and publishing

</a><br>
<sub>White papers, manuals, encyclopedic plates, and publishing layouts.</sub><br>
<a href="docs/gallery.md#cat-document"><strong>View Cases</strong></a>
</td>
</tr>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>🧪 Other Use Cases</strong><br><sub>28 cases</sub></p>
<a href="docs/gallery.md#cat-other">

Other use cases

</a><br>
<sub>Creative experiments, special tasks, mixed workflows, and practical cases.</sub><br>
<a href="docs/gallery.md#cat-other"><strong>View Cases</strong></a>
</td>
<td width="33%" valign="top" align="center">
<h4>🖼️ Full Gallery</h4>
<a href="docs/gallery.md">

Full gallery

</a><br>
<sub>Browse all 484 cases by gallery part and category.</sub><br>
<a href="docs/gallery.md"><strong>Open Gallery</strong></a>
</td>
<td width="33%" valign="top" align="center">
<h4>⭐ Latest Additions</h4>
<a href="docs/gallery-part-2.md#case-484">

Latest additions

</a><br>
<sub>The newest community cases and workflows collected in the repo.</sub><br>
<a href="docs/gallery-part-2.md#case-484"><strong>View Latest</strong></a>
</td>
</tr>
</table>

🧩 Prompt Template Categories

The prompt body remains in the original template document for now. This homepage only adds an English navigation layer.

<details open>
<summary><strong>Template Page 1 / 4: Design & Information</strong></summary>

Category Template Entry Core Capability
🧩 UI & Interfaces View Prompts Components, page hierarchy, screenshot texture
📊 Charts & Infographics View Prompts Modules, arrows, data structure, readability
📰 Posters & Typography View Prompts Layout, headline systems, people, visual impact

</details>

<details>
<summary><strong>Template Page 2 / 4: Commerce & Space</strong></summary>

Category Template Entry Core Capability
🛍️ Products & E-commerce View Prompts Product selling points, packaging, detail-page structure
🏷️ Brand & Logos View Prompts Logos, identity, brand touchpoint systems
🏛️ Architecture & Spaces View Prompts Perspective, materials, indoor and outdoor lighting

</details>

<details>
<summary><strong>Template Page 3 / 4: Imaging & Characters</strong></summary>

Category Template Entry Core Capability
📷 Photography & Realism View Prompts Lenses, lighting, realistic textures
🎨 Illustration & Art View Prompts Brushwork, materials, art styles
🧍 Characters & People View Prompts Character design, pose sheets, consistency

</details>

<details>
<summary><strong>Template Page 4 / 4: Narrative & Extensions</strong></summary>

Category Template Entry Core Capability
🎬 Scenes & Storytelling View Prompts Storyboards, worldbuilding, emotional pacing
🏮 History & Classical Chinese Themes View Prompts Dynasties, clothing, scroll-style narrative
📚 Documents & Publishing View Prompts Page systems, tables of contents, layout rules
🧪 Other Use Cases View Prompts Mixed tasks, experimental workflows, special outputs

</details>

🤖 Agent Skill

This repository includes an agent skill for choosing GPT-Image2 styles, templates, categories, and scene tags from the same data used by the website.

Package links: npm / GitHub Packages

City life system map generated with the GPT-Image2 style library skill

Example output from a city-life-system-map request using the style library skill.

Quick Install for Agent Skills

Recommended for Claude Code, Codex, Cursor, and other tools supported by skills:

npx skills add freestylefly/awesome-gpt-image-2 --skill gpt-image-2-style-library --agent claude-code codex --global --yes --copy

Install to every supported local agent:

npx skills add freestylefly/awesome-gpt-image-2 --global --all --copy

Claude Code Plugin Marketplace

Run these commands inside Claude Code:

/plugin marketplace add freestylefly/awesome-gpt-image-2
/plugin install gpt-image-2-style-library@awesome-gpt-image-2

npm CLI

If you prefer npm, install the CLI and then sync the skill into local agent folders:

npm install -g gpt-image-2-style-library
gpt-image-2-style-library install all

You can also run it without a global install:

npx gpt-image-2-style-library install all

Install from GitHub Packages:

npm login --scope=@freestylefly --registry=https://npm.pkg.github.com
npm install -g @freestylefly/gpt-image-2-style-library --registry=https://npm.pkg.github.com
gpt-image-2-style-library install all

install all writes the skill to the common local folders used by Codex and Claude Code, including ~/.codex/skills, ~/.claude/skills, and ~/.agents/skills. Restart the agent session after installing.

Use it with a request like:

Use gpt-image-2-style-library to create an infographic prompt about Codex.

For local source development:

npm run generate:style-skill
npm run install:skill

The skill source lives at agents/skills/gpt-image-2-style-library. Its generated reference comes from data/style-library.json, so the website and Agent workflow share one style library.

🔐 Website Auth & Generation

The visual site includes login-gated case generation powered by Supabase Auth, Supabase Postgres, and a Vercel Function proxy for the GPT Image 2 API.

Required Vercel environment variables:

VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
[email protected],[email protected]
CIYUAN_API_KEY=
CIYUAN_BASE_URL=https://ciyuan.today
APP_URL=https://gpt-image2.canghe.ai
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
VITE_GA_MEASUREMENT_ID=
GA4_PROPERTY_ID=
GOOGLE_ANALYTICS_CLIENT_ID=
GOOGLE_ANALYTICS_CLIENT_SECRET=
GOOGLE_ANALYTICS_REFRESH_TOKEN=

Setup checklist:

  • Apply supabase/migrations/202605090001_user_credits.sql to the Supabase project.
  • Apply supabase/migrations/20260509090000_membership_billing.sql to add membership plans, credit packs, Stripe order records, and credit adjustment RPCs.
  • Apply supabase/migrations/20260512090000_google_account_center.sql to add account usage summaries and forced credit charging for super admins.
  • Apply supabase/migrations/20260512143000_pricing_admin_metrics.sql to update the $5 / 300 credits catalog and add admin dashboard metrics.
  • Apply supabase/migrations/20260515090000_case_favorites.sql to add per-user case favorites.
  • Add https://gpt-image2.canghe.ai and local dev URLs such as http://127.0.0.1:5173 to Supabase Auth redirect URLs.
  • Enable the Google Provider after adding Google OAuth credentials in the Supabase Dashboard.
  • To force Google-only sign-in, disable the Email Provider in Supabase Auth settings.
  • Keep SUPABASE_SERVICE_ROLE_KEY only in server-side environments such as Vercel Environment Variables.
  • Configure Stripe Checkout with the webhook URL https://gpt-image2.canghe.ai/api/billing/webhook.
  • Subscribe the Stripe webhook to checkout.session.completed, invoice.payment_succeeded, customer.subscription.updated, and customer.subscription.deleted.
  • Keep STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET only in server-side Vercel Environment Variables.
  • Create a GA4 property for gpt-image2.canghe.ai, add the measurement ID to VITE_GA_MEASUREMENT_ID, and copy the numeric property ID to GA4_PROPERTY_ID.
  • Create a Google OAuth Web Client with http://localhost:8080/oauth2callback as an authorized redirect URI, then add GOOGLE_ANALYTICS_CLIENT_ID and GOOGLE_ANALYTICS_CLIENT_SECRET to local .env.local.
  • Run npm run ga4:oauth, open the generated URL, approve the analytics.readonly permission, paste the callback URL into the terminal, then add the returned GOOGLE_ANALYTICS_REFRESH_TOKEN to Vercel as a Sensitive environment variable.

<a name="section-gallery"></a>

Case 1: Infographic Visualization

Urban Metabolism Atlas

An engineering-whitepaper-style infographic case for studying modular structure, information hierarchy, and bilingual labels.
View full case

Case 2: Social Media Interface Screenshot

Ailln AI

A mixed "product interface + social content screenshot" case for controlling text blocks, UI frames, and content cards.
View full case

Case 6: Illustration Art

Japanese fantasy illustration

A Japanese fantasy illustration example for studying atmosphere, color, and large-scene composition.
View full case

Case 17: Interaction Design Diagram

Interaction design diagram

A classic "structured breakdown + explanatory layout" case for product diagrams and poster-like technical explainers.
View full case

Case 166: Twelve Gold Saints Card Set

Twelve Gold Saints card set

A multi-card, unified-style case for studying batch generation and series design.
View full case

Case 310: Snack Brand Technical Breakdown

Snack brand technical breakdown

A strong hybrid of brand narrative, structural breakdown, and commercial presentation. Useful as an "infographic + brand visual" reference.
View full case

Canghe Original Tests

<table>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>Case 330: Moonlit Livestream Scene</strong></p>
<a href="docs/gallery-part-2.md#case-330">

Moonlit livestream scene

</a><br>
<sub>A high-fidelity livestream screenshot reference for UI atmosphere, comments, and realistic people.</sub><br>
<a href="docs/gallery-part-2.md#case-330"><strong>View Case</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>Case 334: RAG Technical Explainer</strong></p>
<a href="docs/gallery-part-2.md#case-334">

RAG technical explainer

</a><br>
<sub>A reference for technical concepts, process arrows, and Chinese explanation modules.</sub><br>
<a href="docs/gallery-part-2.md#case-334"><strong>View Case</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>Case 338: Red Cliff Classical Scroll</strong></p>
<a href="docs/gallery-part-2.md#case-338">

Red Cliff classical scroll

</a><br>
<sub>A complete example of scroll format, classical Chinese narrative, and full-text layout.</sub><br>
<a href="docs/gallery-part-2.md#case-338"><strong>View Case</strong></a>
</td>
</tr>
<tr>
<td width="33%" valign="top" align="center">
<p><strong>Case 331: Hand-Drawn Xi'an Watercolor Map</strong></p>
<a href="docs/gallery-part-2.md#case-331">

Hand-drawn Xi'an watercolor map

</a><br>
<sub>A lightweight reference for city maps, hand-drawn routes, and landmark labels.</sub><br>
<a href="docs/gallery-part-2.md#case-331"><strong>View Case</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>Case 332: Tea Pi Product Poster</strong></p>
<a href="docs/gallery-part-2.md#case-332">

Tea Pi product poster

</a><br>
<sub>A beverage product image combining Chinese selling points and a clean commercial poster style.</sub><br>
<a href="docs/gallery-part-2.md#case-332"><strong>View Case</strong></a>
</td>
<td width="33%" valign="top" align="center">
<p><strong>Case 339: Apple-Style Nature Science Poster</strong></p>
<a href="docs/gallery-part-2.md#case-339">

Apple-style nature science poster

</a><br>
<sub>Minimal studio photography, a natural subject, and science-poster information layout.</sub><br>
<a href="docs/gallery-part-2.md#case-339"><strong>View Case</strong></a>
</td>
</tr>
</table>

Latest Community Additions

Only the latest collection and import run is shown here. Older imports stay in the full gallery.

<table>
<tr>
<td width="25%" valign="top" align="center">
<p><strong>Case 477: Instagram Dining Table Concept</strong></p>
<a href="docs/gallery-part-2.md#case-477">

Instagram dining table concept

</a><br>
<sub>A physical social-post layout turned into a top-down dining-table scene with strict UI band and prop constraints.</sub><br>
<a href="docs/gallery-part-2.md#case-477"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 478: Layered Brand Editorial Poster</strong></p>
<a href="docs/gallery-part-2.md#case-478">

Layered brand editorial poster

</a><br>
<sub>A 2x2 brand poster system with geometric occlusion, muted palette, and embedded product logic.</sub><br>
<a href="docs/gallery-part-2.md#case-478"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 479: Magazine Paper Collage Rewrite</strong></p>
<a href="docs/gallery-part-2.md#case-479">

Magazine paper collage rewrite

</a><br>
<sub>A warm paper-cut collage prompt with texture, doodle accents, whitespace, and avoid rules.</sub><br>
<a href="docs/gallery-part-2.md#case-479"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 480: Fan Sketchbook Character Page</strong></p>
<a href="docs/gallery-part-2.md#case-480">

Fan sketchbook character page

</a><br>
<sub>A chaotic sketchbook page prompt for character poses, chibi doodles, close-ups, and expressive studies.</sub><br>
<a href="docs/gallery-part-2.md#case-480"><strong>View Case</strong></a>
</td>
</tr>
<tr>
<td width="25%" valign="top" align="center">
<p><strong>Case 481: Korean Spring Scrapbook Poster</strong></p>
<a href="docs/gallery-part-2.md#case-481">

Korean spring scrapbook poster

</a><br>
<sub>A spring fashion scrapbook poster with stickers, typography, pastel garden mood, and social-cover framing.</sub><br>
<a href="docs/gallery-part-2.md#case-481"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 482: Surreal Self-Reflection Campaign</strong></p>
<a href="docs/gallery-part-2.md#case-482">

Surreal self-reflection campaign

</a><br>
<sub>A minimal surreal portrait campaign using a giant self-head prop, background typography, and identity-driven mood.</sub><br>
<a href="docs/gallery-part-2.md#case-482"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 483: Urban Birds Street Portrait</strong></p>
<a href="docs/gallery-part-2.md#case-483">

Urban birds street portrait

</a><br>
<sub>A cinematic street portrait with flying birds, graffiti silhouettes, natural daylight, and editorial polish.</sub><br>
<a href="docs/gallery-part-2.md#case-483"><strong>View Case</strong></a>
</td>
<td width="25%" valign="top" align="center">
<p><strong>Case 484: Neon Graffiti Monochrome Portrait</strong></p>
<a href="docs/gallery-part-2.md#case-484">

Neon graffiti monochrome portrait

</a><br>
<sub>A high-contrast portrait upgraded with neon eyes, paint splashes, doodles, and street-poster energy.</sub><br>
<a href="docs/gallery-part-2.md#case-484"><strong>View Case</strong></a>
</td>
</tr>
</table>

<a name="section-templates"></a>

🧩 Template Entry

The full template library lives in docs/templates.md. Use the Prompt Template Categories above for quick category jumps, or open Industrial prompt templates and pitfalls guide for the complete template text.

🚀 How To Use This Repository

  1. Start from the featured cases and decide what output type you want to imitate.
  2. Open the full gallery and find nearby cases. Copy structure first, then style words.
  3. Return to the template page and fill your business variables into the general or JSON templates.

<a name="section-disclaimer"></a>

📄 Notes & Disclaimer

Acknowledgements & Sources

During collection and research, this project references public prompt-library content from YouMind and OpenNana for learning, summarization, and methodology research. Copyright belongs to the original authors or platforms. If any content is infringing or inappropriate, please contact us and we will correct or remove it promptly.

Disclaimer

This project only organizes publicly accessible community prompts and example images for learning and research. It does not claim ownership of any third-party original content.

All prompt cases and generated images in this repository were initially inspired by public community sources, especially YouMind and OpenNana. The project aims to break down strong examples into reusable structured protocols for learning, summarization, and automated testing with large-model agents.

  • We make every effort to preserve original sources, including author profiles, original post links, and source repository links.
  • For third-party content, we follow source repository statements, licenses such as CC BY 4.0, and the relevant platform rules.
  • If you are the original author or rights holder and believe an entry should not be displayed, please open an Issue with the entry link. We will review it and remove it quickly when appropriate.
  • This repository does not guarantee that third-party content can be used commercially. Please obtain authorization from the original rights holder before commercial use.

If this library helps you, please star the repository.

Star History

Star History Chart

📜 License

This project is open source under the MIT License. You can use, modify, distribute, and build on it freely while preserving the license notice.