Prompt as Code | GPT-Image2 工业级提示词引擎与模板库,470+ 个案例逆向工程,20+ 套工业级模板,并提炼出Skills,持续更新中
Prompt as Code | GPT-Image2 工业级提示词引擎与模板库,470+ 个案例逆向工程,20+ 套工业级模板,并提炼出Skills,持续更新中
## ❤️ Sponsors > [Want to appear here?](data/images/sponsors/wechat-personal.jpg) Support the project through GitHub Sponsors, or search 苍何 on WeChat and send your product name plus a short sponsorship note. | Sponsor | Description | | ------- | ----------- | | | Thanks to APIMart for sponsoring this project! APIMart is a low-cost API platform for AI image & video generation — GPT-Image-2 from `$0.006/image`, 160+ images per dollar. One async API covers both image and video: submit a task, get an ID, fetch results via polling or callback. Batch tens of thousands of images without timeouts, switch models without changing code. Pay-as-you-go with no monthly fee — [sign up here](https://apimart.ai/register?aff=oQgzUQ) to get started. | | | Thanks to hiapi for sponsoring this project! hiapi is an AI image & video generation API platform — GPT-Image-2 (text-to-image, image edit, 1K–4K) alongside video models like Seedance, Kling and Wan, all through one unified async API: submit a task, get a `task_id`, fetch results by polling or callback, batch without timeouts, switch models without code changes. Every result is stored on hiapi's own CDN with **persistent storage**, so your image/video URLs stay available long-term and can be fetched anytime — no rushing to download and back them up yourself. Native Remote MCP and Agent Skills plug straight into Claude Code & Cursor. Chinese UI & docs, WeChat Pay, pay-as-you-go with no monthly fee — new users get $1 free credit (~50 images). [Sign up here](https://www.hiapi.ai/en/register?aff=DzuH&utm_source=github&utm_medium=sponsor&utm_campaign=awesome-gpt-image-2). | | | Thanks to PackyCode for sponsoring this project! PackyCode is a stable, high-performance API relay provider for Claude Code, Codex, Gemini, and more. Automatic failover, smart routing, and unlimited concurrency help turn AI coding into a reliable productivity tool. [Register here](https://www.packyapi.ai/register?aff=CV0c) to get started. | | | Project sponsor. PPToken provides API relay and key distribution for ChatGPT, Claude, Gemini, and other mainstream AI models, with low-latency access, high availability, pay-as-you-go billing, and flexible subscription plans. | | | Thanks to Liqiu API for sponsoring this project! Liqiu API is a stable, transparent, dedicated AI API relay offering access to ChatGPT, Claude, Grok, Gemini, and more. It uses pay-as-you-go billing, with multipliers starting at 0.1x, and emphasizes reliable service with around-the-clock maintenance for developers. [Register here](https://onliqiu.com/r/agi2) to get started. | ## ⚡️ 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 ## Quick Links - [Full case gallery](docs/gallery.md) - [Gallery Part 1: cases 1-165](docs/gallery-part-1.md) - [Gallery Part 2: cases 166-544](docs/gallery-part-2.md) - [Industrial prompt templates and pitfalls guide](docs/templates.md) - [Agent skill: GPT-Image2 Style Library](agents/skills/gpt-image-2-style-library/SKILL.md) - [MIT License](LICENSE) - [Full disclaimer](docs/disclaimer.md#section-disclaimer) ## ️ 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
|
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 |
No open issues yet, or sync has not completed.