← 返回
未分类 Key

gpt-image-2-enhanced

Enhanced GPT Image 2 skill with 17 categories, 99+ templates, Gemini-style API support, and scenario-based template lookup. Use when the user wants to generate images using the gpt-image-2 model via OpenAI-compatible or Gemini-style APIs, needs to find the right template for their image generation task, wants to batch generate images, or needs to understand the complete gpt-image-2 template ecosystem. Covers infographics, posters, UI mockups, academic figures, branding, product visuals, maps, po
Enhanced GPT Image 2 skill with 17 categories, 99+ templates, Gemini-style API support, and scenario-based template lookup. Use when the user wants to generate images using the gpt-image-2 model via OpenAI-compatible or Gemini-style APIs, needs to find the right template for their image generation task, wants to batch generate images, or needs to understand the complete gpt-image-2 template ecosystem. Covers infographics, posters, UI mockups, academic figures, branding, product visuals, maps, portraits, comics, technical diagrams, and editing workflows.
user_5724919f
未分类 community v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 90
下载
💾 0
安装
1
版本
#latest

概述

GPT Image 2 Enhanced

This skill documents all enhancements made to the base gpt-image-2 skill. It provides:

  • Dual API support (OpenAI + Gemini style)
  • 3 new custom templates
  • Complete template catalog (17 categories / 99 templates)
  • Scenario-based quick lookup
  • Correct API calling format for Gemini-style endpoints

API Support

Gemini-Style API (e.g., nn.147ai.com)

The enhanced generate.js auto-detects Gemini-style APIs via isGeminiApi() in shared.js. Detection triggers when OPENAI_BASE_URL contains nn.147ai.com or API_STYLE=gemini env var is set.

Endpoint:

POST https://nn.147ai.com/v1beta/models/gpt-image-2:generateContent

Request format:

{
  "contents": [{
    "parts": [{"text": "your image prompt here"}]
  }],
  "config": {
    "responseModalities": ["TEXT", "IMAGE"],
    "imageConfig": {
      "aspectRatio": "16:9",
      "imageSize": "2K"
    }
  }
}

Headers:

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Response format: Image embedded as data:image/png;base64,... text in JSON. Extracted via regex data:image/(\w+);base64,([A-Za-z0-9+/=]+).

Aspect ratios: 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9

Image sizes: 1K, 2K, 4K

OpenAI-Style API

Standard /v1/images/generations endpoint. Used when OPENAI_BASE_URL is a standard OpenAI-compatible endpoint.

Modified Scripts

shared.js additions:

  • isGeminiApi() — detects if current API is Gemini-style
  • buildGeminiPayload(prompt, cfg) — builds Gemini-format request body
  • buildGeminiUrl() — builds Gemini endpoint URL
  • postGeminiJson(url, payload) — POSTs to Gemini endpoint
  • extractGeneratedBytes(json) — updated to parse both OpenAI and Gemini responses

generate.js changes:

  • Auto-routes between Gemini and OpenAI API styles
  • --size maps to Gemini aspectRatio values
  • --quality maps to Gemini imageSize (high→2K, default→1K)

Environment variables:

OPENAI_API_KEY=your_key
OPENAI_BASE_URL=https://nn.147ai.com/v1
ENABLE_GARDEN_IMAGEGEN=1

New Templates

1. knowledge-card (知识卡片)

Path: references/infographics/knowledge-card.md

Purpose: Upload a document/article, auto-extract key points into visual knowledge cards.

Variants:

  • Standard: warm white bg + blue/orange accents, 4 key points
  • Tech docs: dark background + cyan/green, code snippets
  • WeChat style: Morandi palette, literary, WeChat-optimized

2. article-illustration (新媒体配图)

Path: references/slides-and-visual-docs/article-illustration.md

Purpose: Generate social media illustrations from text content.

Variants:

  • WeChat cover: 16:9, bold title, simple visual
  • Xiaohongshu: 3:4, lifestyle aesthetic, warm tones
  • Tech blog: dark bg, code/green accents

3. style-transfer-poster (风格迁移海报)

Path: references/poster-and-campaigns/style-transfer-poster.md

Purpose: Reference one image's visual style to create new theme posters.

Variants:

  • Brand extension: extend main visual across materials
  • Style copy + theme replace: 95%+ style fidelity
  • Cross-medium: apply paint style to UI, or illustration to poster

Complete Template Catalog

01. Academic Figures (9 templates)

references/academic-figures/

TemplateUse Case
-------------------
method-pipeline-overviewPaper pipeline figure (CS/CV/ML)
neural-network-architectureNeural network layer diagram
qualitative-comparison-gridMulti-method comparison grid
scientific-schematicExperimental setup schematic
mechanism-diagramCausal mechanism / pathway
multi-condition-comparisonSide-by-side condition results
publication-chartPublication-ready data charts
graphical-abstractJournal Graphical Abstract
research-overview-posterThesis defense overview

02. Assets & Props (2)

references/assets-and-props/

TemplateUse Case
-------------------
retro-skeuomorphic-iconsIcon sets (skeuomorphic/Y2K/pixel)
game-screenshot-mockupIn-game screenshot with HUD

03. Avatars & Profile (5)

references/avatars-and-profile/

TemplateUse Case
-------------------
style-transfer-selfieStyle transfer portrait 2x2
character-grid-portraitSame character N×N variations
themed-3d-icon3D app icon avatar
sticker-setSticker pack / emoji set
cultural-portrait-seriesHistorical dynasty portraits

04. Branding & Packaging (6)

references/branding-and-packaging/

TemplateUse Case
-------------------
brand-identity-boardFull brand identity system
mascot-brand-kitMascot brand kit
full-mascot-brand-doc18+ module mascot document
cosmetic-packagingSkincare/cosmetic packaging
beverage-label-designDrink/food label design
character-merch-boardIP character merchandise

05. Editing Workflows (5)

references/editing-workflows/

TemplateUse Case
-------------------
background-replacementBefore/after bg swap
local-object-replacementReplace specific object
object-removalRemove people/clutter
product-retouchingProduct polish/retouching
portrait-local-editPortrait hair/outfit/clothes

06. Grids & Collages (5)

references/grids-and-collages/

TemplateUse Case
-------------------
banner-grid-2x24-banner marketing set
lookbook-grid9-grid fashion lookbook
mixed-style-multi-panelSame subject, different styles
anime-pitch-boardAnime project pitch board
ad-banner-multi-gridCross-industry banner grid

07. Infographics (7)

references/infographics/

TemplateUse Case
-------------------
bento-grid-infographicModular widget infographic
comparison-infographicA vs B comparison
hand-drawn-infographicHand-drawn/chalkboard style
step-by-step-infographicStep-by-step tutorial
kpi-dashboard-infographicKPI dashboard / annual review
legend-heavy-infographicBilingual high-density infographic
knowledge-card 🆕Document → knowledge card

08. Maps (5)

references/maps/

TemplateUse Case
-------------------
food-mapCity food guide map
travel-route-mapMulti-day travel route
illustrated-city-mapCity landmark illustration
store-distribution-mapStore/outlet distribution
itinerary-day-trip-mapOne-day itinerary split view

09. Portraits & Characters (5)

references/portraits-and-characters/

TemplateUse Case
-------------------
professional-portraitCorporate headshot
founder-portraitDramatic founder portrait
virtual-hostVTuber character card
character-sheetRPG character design sheet
pose-reference-sheetAction pose reference N×N

10. Poster & Campaigns (9)

references/poster-and-campaigns/

TemplateUse Case
-------------------
brand-posterMain brand poster
campaign-kvCampaign Key Visual
banner-heroWeb banner / hero
editorial-coverMagazine cover
biomimetic-concept-posterBiomimetic concept design
vintage-editorial-infographicVintage infographic poster
character-catalog-posterCharacter series catalog
lineup-comparison-posterProduct lineup comparison
style-transfer-poster 🆕Style transfer poster

11. Product Visuals (6)

references/product-visuals/

TemplateUse Case
-------------------
exploded-view-posterProduct exploded view
white-background-productE-commerce white bg
premium-studio-productStudio luxury product
packaging-showcaseGift box / packaging
lifestyle-product-sceneProduct in real life
ecommerce-marketing-boardChinese e-commerce board

12. Scenes & Illustrations (4)

references/scenes-and-illustrations/

TemplateUse Case
-------------------
healing-sceneCozy daily life scene
concept-sceneCinematic epic concept
picture-book-sceneChildren's book illustration
minimalist-mood-sceneMinimalist mood/atmosphere

13. Slides & Visual Docs (5)

references/slides-and-visual-docs/

TemplateUse Case
-------------------
dense-explainer-slidesHigh-density explainer
policy-style-slideGovernment/policy slide
educational-diagram-slideTextbook style diagram
visual-report-pageBusiness executive summary
article-illustration 🆕Social media article illustration

14. Storyboards & Sequences (8)

references/storyboards-and-sequences/

TemplateUse Case
-------------------
four-panel-comic4-panel comic strip
manga-spread-pageManga spread layout
anime-key-visualAnime key visual
character-relationship-diagramCharacter relationship map
recipe-process-flowchartRecipe/cooking guide
product-tvc-storyboardTV commercial storyboard
cinematic-storyboard-gridFilm storyboard contact sheet
process-photo-boardPhoto process board

15. Technical Diagrams (7)

references/technical-diagrams/

TemplateUse Case
-------------------
system-architectureSystem architecture diagram
flowchart-decisionFlowchart / decision tree
sequence-diagramSequence diagram
state-machineState machine / lifecycle
er-diagramER diagram
mind-map-techTech mind map
network-topologyNetwork topology

16. Typography & Text Layout (2)

references/typography-and-text-layout/

TemplateUse Case
-------------------
title-safe-posterBold typography poster
bilingual-layout-visualBilingual layout design

17. UI Mockups (6)

references/ui-mockups/

TemplateUse Case
-------------------
live-commerce-uiLive streaming UI
social-interface-mockupSocial media post UI
product-card-overlayProduct card overlay
chat-interface-sceneChat interface
short-video-cover-uiShort video cover
landing-page-case-studySaaS landing page

Scenario-Based Quick Lookup

Academia / Education

  • Method pipeline → method-pipeline-overview
  • Neural network diagram → neural-network-architecture
  • Experimental setup → scientific-schematic
  • Journal Graphical Abstract → graphical-abstract
  • Thesis defense poster → research-overview-poster
  • Textbook diagram → educational-diagram-slide

Branding / Marketing

  • Brand identity system → brand-identity-board
  • Campaign Key Visual → campaign-kv
  • Web banner / hero → banner-hero
  • Magazine cover → editorial-cover
  • KPI dashboard → kpi-dashboard-infographic
  • Style transfer → style-transfer-poster

E-commerce / Products

  • Product exploded view → exploded-view-poster
  • White background product → white-background-product
  • Premium studio shot → premium-studio-product
  • Lifestyle scene → lifestyle-product-scene
  • E-commerce board → ecommerce-marketing-board
  • Background replacement → background-replacement

Social Media / Content

  • Article cover image → article-illustration
  • Knowledge card → knowledge-card
  • Hand-drawn infographic → hand-drawn-infographic
  • Step-by-step tutorial → step-by-step-infographic
  • Professional headshot → professional-portrait
  • Sticker pack → sticker-set

Travel / Maps

  • Food map → food-map
  • Travel route → travel-route-map
  • City illustration → illustrated-city-map
  • Store distribution → store-distribution-map
  • Day trip itinerary → itinerary-day-trip-map

Film / Animation / Comics

  • 4-panel comic → four-panel-comic
  • Manga spread → manga-spread-page
  • Anime Key Visual → anime-key-visual
  • TVC storyboard → product-tvc-storyboard
  • Cinematic storyboard → cinematic-storyboard-grid
  • Healing scene → healing-scene

Technology / Development

  • System architecture → system-architecture
  • Flowchart / decision → flowchart-decision
  • Sequence diagram → sequence-diagram
  • State machine → state-machine
  • ER diagram → er-diagram
  • Mind map → mind-map-tech
  • Network topology → network-topology

Design / IP / Creative

  • Mascot brand kit → mascot-brand-kit
  • Character design sheet → character-sheet
  • Pose reference → pose-reference-sheet
  • Character grid portrait → character-grid-portrait
  • Anime pitch board → anime-pitch-board
  • Icon set → retro-skeuomorphic-icons

Image Editing

  • Background swap → background-replacement
  • Object replacement → local-object-replacement
  • Remove clutter → object-removal
  • Product retouching → product-retouching
  • Portrait edit → portrait-local-edit

Batch Generation

To batch generate images, create a JSON array and use the Node.js script pattern:

import { readFile, writeFile, mkdir } from 'node:fs/promises';

const API = 'https://nn.147ai.com/v1beta/models/gpt-image-2:generateContent';
const KEY = process.env.OPENAI_API_KEY;

const entries = [
  { cat: "category", tmpl: "template-name", prompt: "your prompt" },
  // ...
];

for (const e of entries) {
  const body = {
    contents: [{ parts: [{ text: e.prompt }] }],
    config: { responseModalities: ["TEXT", "IMAGE"], imageConfig: { aspectRatio: "16:9", imageSize: "1K" } }
  };
  // ... fetch, extract base64, save
}

Quick Reference

When user says...Use template...
------
"做张知识卡片"knowledge-card
"公众号配图"article-illustration
"参考这个风格做一张"style-transfer-poster
"画个系统架构图"system-architecture
"做个产品海报"brand-poster
"信息图"bento-grid-infographic
"漫画"four-panel-comic
"地图"food-map / travel-route-map
"头像"professional-portrait
"电商主图"white-background-product

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-04-30 21:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 217 📥 47,616
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 331 📥 93,813
content-creation

humanizer-zh-enhanced

user_5724919f
去除文本中的AI生成痕迹,使文字听起来更自然、更像人类书写——中文专精增强版。 基于维基百科的"AI写作特征"综合指南,覆盖27种AI写作模式。 当用户要求"去AI味""改写得更自然""太像AI了""人性化""去掉模板感"时使用。 适用于论
★ 1 📥 465