freestylefly/awesome-gpt-image-2

awesome-gpt-image-2

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

待分类agentsai-image-generationchatgpt

Prompt as Code | GPT-Image2 Industrial Prompt Engine & Template Library, 500+ Reverse-Engineered Cases, 20+ Industrial Templates

English | 简体中文 | 日本語

GPT Image 2.5 Spotlight

Explore the 2.5 spotlight: learn about Sunburst and Flare, then explore a shared-prompt comparison with a draggable divider, side-by-side view, image enlargement, and generation settings.

  • Sunburst: image generation and precise editing.
  • Flare: fast, high-quality everyday image generation.
  • 4 real recreations: #532 lemon campaign, #527 Rio diorama, #523 Manhattan watercolor, and #510 Bichon Shop icon. Each preserves its original gallery image and uses the full gallery prompt for one new built-in image generation, without a reference image. A case selector opens any example directly. Images, prompts and generation records. Original generation conditions and exact tool model IDs remain unverified; demonstration examples are labeled separately.

The spotlight runs independently. Existing GPT-Image2 cases, templates, Skill, and generation tools remain available. This update does not add live 2.5 image generation.

🌐 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.

Community 交流群

Join the GPT-Image2 discussion group to exchange prompts, workflows, and creative ideas with other users. Visit the community page to join.

Follow the WeChat official account 苍何 or scan the QR code below to receive project updates, new cases, and practical tutorials.

❤️ Sponsors

Want to appear here? 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 to get started. · Thanks to HiAPI for sponsoring this project! HiAPI brings GPT Image 2.5 Flare and Sunburst alongside other image, video, and audio models into one API platform. Choose Flare for fast everyday creation or Sunburst for detailed generation and editing; both support 1K, 2K, and 4K outputs. Try them in the Playground before integrating. Media generation uses an async task API; each model's input parameters are documented separately. Results are delivered through HiAPI's CDN, with optional paid persistent storage when you need to keep an output long-term. Remote MCP and Agent Skills also connect HiAPI to coding agents. New users receive 200 Credits on signup; check Billing for current top-up bonuses. Sign up here. · 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 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 to get started. · One gateway to access and manage the world's leading AI modelsSidrune AI serves individual developers, engineering teams, and enterprises with a unified API for accessing and managing the world's leading AI models. Multi-route dynamic scheduling improves availability, while model performance, response time, and cost remain transparent and verifiable. Depending on the model and route, API call costs can be 40%–98% lower than official or baseline prices.Visit and register now to receive $3 in API credits.

⚡️ 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
  • Gallery Part 1: cases 1-165
  • Gallery Part 2: cases 166-544
  • Industrial prompt templates and pitfalls guide
  • Agent skill: GPT-Image2 Style Library
  • MIT License
  • Full 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 & Interfaces73 cases Apps, websites, dashboards, social screenshots, and product interfaces. View Cases 📊 Charts & Infographics53 cases Infographics, knowledge maps, technical explainers, and structured diagrams. View Cases 📰 Posters & Typography90 cases Event posters, covers, type-driven visuals, and strong layout compositions. View Cases 🛍️ Products & E-commerce42 cases Product shots, detail pages, packaging, selling points, and ads. View Cases 🏷️ Brand & Logos27 cases Logos, identity systems, brand touchpoints, and campaign visuals. View Cases 🏛️ Architecture & Spaces12 cases Architecture renders, interiors, city maps, and spatial concepts. View Cases 📷 Photography & Realism78 cases Portraits, phone photography, film texture, and commercial photography. View Cases 🎨 Illustration & Art59 cases Illustration, art styles, material experiments, and decorative images. View Cases 🧍 Characters & People31 cases Character design, pose references, cards, and 3D toys. View Cases 🎬 Scenes & Storytelling21 cases Storyboards, narrative scenes, livestream frames, and worldbuilding. View Cases 🏮 History & Classical Chinese Themes16 cases Classical scrolls, historical figures, traditional themes, and poetry visuals. View Cases 📚 Documents & Publishing11 cases White papers, manuals, encyclopedic plates, and publishing layouts. View Cases 🧪 Other Use Cases28 cases Creative experiments, special tasks, mixed workflows, and practical cases. View Cases 🖼️ Full Gallery Browse all 544 cases by gallery part and category. Open Gallery ⭐ Latest Additions The newest community cases and workflows collected in the repo. View Latest

🧩 Prompt Template Categories

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

🤖 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

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 supports direct APIMart generation with a personal browser-only API key. Without a personal key, signed-in users continue through Supabase Auth, platform credits, and the server-side APIMart key.

Required Vercel environment variables:

VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
SUPER_ADMIN_EMAILS=2689458656@qq.com,canghe0818@gmail.com
APIMART_API_KEY=
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/20260721090000_alipay_webpay.sql before enabling Alipay website payments, then configure each credit pack's reviewed CNY price. See Alipay website payment setup.
  • Apply supabase/migrations/20260722090000_paid_community.sql before enabling the paid community. Keep COMMUNITY_PAYMENT_ENABLED=false until the protected QR, Alipay onboarding, and production payment/refund checks are complete. See the paid community runbook.
  • 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.
  • Apply supabase/migrations/20260828090000_apimart_generation_tasks.sql to add APIMart task IDs, actual USD costs, expiring result URLs, and provider indexes.
  • 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 Googl