Prompt as Code | GPT-Image2 Industrial Prompt Engine & Template Library, 370+ Reverse-Engineered Cases, 20+ Industrial Templates
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.
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
- Full case gallery
- Gallery Part 1: cases 1-165
- Gallery Part 2: cases 166-393
- Industrial prompt templates and pitfalls guide
- MIT License
- Full disclaimer
Start with the case album to find a visual direction, then open the prompt template categories to turn that direction into reusable structure.
|
🧩 UI & Interfaces ![]() Apps, websites, dashboards, social screenshots, and product interfaces. View Cases |
📊 Charts & Infographics ![]() Infographics, knowledge maps, technical explainers, and structured diagrams. View Cases |
📰 Posters & Typography ![]() Event posters, covers, type-driven visuals, and strong layout compositions. View Cases |
|
🛍️ Products & E-commerce ![]() Product shots, detail pages, packaging, selling points, and ads. View Cases |
🏷️ Brand & Logos ![]() Logos, identity systems, brand touchpoints, and campaign visuals. View Cases |
🏛️ Architecture & Spaces ![]() Architecture renders, interiors, city maps, and spatial concepts. View Cases |
|
📷 Photography & Realism ![]() Portraits, phone photography, film texture, and commercial photography. View Cases |
🎨 Illustration & Art ![]() Illustration, art styles, material experiments, and decorative images. View Cases |
🧍 Characters & People ![]() Character design, pose references, cards, and 3D toys. View Cases |
|
🎬 Scenes & Storytelling ![]() Storyboards, narrative scenes, livestream frames, and worldbuilding. View Cases |
🏮 History & Classical Chinese Themes ![]() Classical scrolls, historical figures, traditional themes, and poetry visuals. View Cases |
📚 Documents & Publishing ![]() White papers, manuals, encyclopedic plates, and publishing layouts. View Cases |
|
🧪 Other Use Cases ![]() Creative experiments, special tasks, mixed workflows, and practical cases. View Cases |
![]() Browse all 393 cases by gallery part and category. Open Gallery |
![]() The newest X community cases and workflows collected in the repo. View Latest |
The prompt body remains in the original template document for now. This homepage only adds an English navigation layer.
Template Page 1 / 4: Design & Information
| 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 |
Template Page 2 / 4: Commerce & Space
| 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 |
Template Page 3 / 4: Imaging & Characters
| 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 |
Template Page 4 / 4: Narrative & Extensions
| 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 |
An engineering-whitepaper-style infographic case for studying modular structure, information hierarchy, and bilingual labels. View full case
A mixed "product interface + social content screenshot" case for controlling text blocks, UI frames, and content cards. View full case
A Japanese fantasy illustration example for studying atmosphere, color, and large-scene composition. View full case
A classic "structured breakdown + explanatory layout" case for product diagrams and poster-like technical explainers. View full case
A multi-card, unified-style case for studying batch generation and series design. View full case
A strong hybrid of brand narrative, structural breakdown, and commercial presentation. Useful as an "infographic + brand visual" reference. View full case
|
Case 330: Moonlit Livestream Scene ![]() A high-fidelity livestream screenshot reference for UI atmosphere, comments, and realistic people. View Case |
Case 334: RAG Technical Explainer ![]() A reference for technical concepts, process arrows, and Chinese explanation modules. View Case |
Case 338: Red Cliff Classical Scroll ![]() A complete example of scroll format, classical Chinese narrative, and full-text layout. View Case |
|
Case 331: Hand-Drawn Xi'an Watercolor Map ![]() A lightweight reference for city maps, hand-drawn routes, and landmark labels. View Case |
Case 332: Tea Pi Product Poster ![]() A beverage product image combining Chinese selling points and a clean commercial poster style. View Case |
Case 339: Apple-Style Nature Science Poster ![]() Minimal studio photography, a natural subject, and science-poster information layout. View Case |
Only the latest 24-hour collection run is shown here. Older X imports stay in the full gallery.
|
Case 386: Brand Envelope Product Ad ![]() Four-phase product insertion into a consistent brand world. View Case |
Case 387: Netflix Hero UI ![]() Reference-image driven title and hero still inside a streaming homepage. View Case |
Case 388: 1980s Claude Magazine Ad ![]() Retro computer ad layout with dense readable copy and negative constraints. View Case |
Case 389: Transparent Labs Hydrate Campaign ![]() Sports nutrition poster with product, model, and benefit callouts. View Case |
|
Case 390: Felt Country Miniature World ![]() Foreground, midground, and background guide a cohesive craft diorama. View Case |
Case 391: Cultural Anchor Fashion Grid ![]() Architecture, fashion, and food anchors blended into dress design. View Case |
Case 392: Micro City Hidden in Hair ![]() Macro realism, skin texture, and tiny urban scale in one shot. View Case |
Case 393: Y2K Golden-Hour Portrait ![]() Short portrait prompt with a clear Y2K fashion and light recipe. View Case |
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.
- Start from the featured cases and decide what output type you want to imitate.
- Open the full gallery and find nearby cases. Copy structure first, then style words.
- Return to the template page and fill your business variables into the general or JSON templates.
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.
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.
Search 苍何 on WeChat or scan the QR code below to follow Canghe's original WeChat official account. Reply with AI to get more AI prompt learning resources.
This project is open source under the MIT License. You can use, modify, distribute, and build on it freely while preserving the license notice.
































