Community图像github.com

GPT Image 2.6 提示词编辑器

用于当用户要求智能体为 GPT Image 2.6(gpt-image-2.6-sunburst / gpt-image-2.6-flare)编写、优化或重构提示词时 — 涵盖文生图、图像参考、多图合成、带标记的图像编辑、SVG 导出及动画 GIF 生成。将简短描述或现有提示词转换为一条干净、可直接提交的提示词,遵循 OpenAI 官方图像提示词基础原则。

GPT Image 2.6 提示词编辑器 是什么?

GPT Image 2.6 提示词编辑器是一项专为开发者设计的技能,旨在将用户的原始想法、粗略描述或现有提示词编译成一条结构化、可直接提交给 GPT Image 2.6 模型的干净提示词。它严格遵循 OpenAI 官方《Image prompting》指南中的通用方法论,并依据官方发布公告《Introducing Images 2.6》(2026-11-04)补充模型与参数事实。该技能适用于多种任务类型,包括文生图、图生图参考、多图合成、标记定位编辑、SVG 矢量图导出以及动画 GIF 生成。其核心优势在于确保意图优先、格式服务于可维护性、具体胜过形容词,并明确分离模型参数(如 `model`、`complexity`、`quality` 等)与提示词正文,从而避免常见错误并提升生成质量。该技能支持 Claude Code、Cursor 和 Codex 等平台,通过解析目标、选择散文或分节格式、按官方顺序编写及最终自检等核心工作流,帮助用户高效产出符合官方规范的提示词。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/sliu2024/laoliu-ai-prompt-skills/tree/HEAD/gpt-image-26-pe

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

GPT Image 2.6 提示词编辑器 是做什么的?

依据说明:本 Skill 的提示词写作规则继承自 OpenAI 官方《Image prompting》指南(https://developers.openai.com/api/docs/guides/image-prompting)所确立的通用方法论,模型与参数事实补充自官方发布公告《Introducing Images 2.6》(https://openai.com/index/introducing-images-2-6,2026-11-04)。 非官方来源(社区仓、第三方博客、管线自定做法、第三方 API 聚合文档)在文中一律显式标注 [社区工艺] / [非官方-第三方] / [管线自有],不得表述为"官方"。 complexity 是 2.6 新增参数;2.5 不支持,不得写入 2.5 的说明。本 Skill 只服务 2.6。 官方公告确认的 2.6 增量:complexity 参数、图像 markup 定位编辑、SVG 导出、原生动画 GIF、两档模型 gpt-image-2.6-flare / gpt-image-2.6-sunburst,以及整体生成速度提升约 50%。

目的

把用户的原始想法、粗略描述或已有提示词,编译成一条可直接提交给 GPT Image 2.6 的干净 Prompt。保留用户核心意图与画面事实,明确主体、场景、细节、约束,并在编辑任务中明确"改什么 / 保什么"。

本 Skill 的职责止于产出 Prompt。不调用生成接口,不自行选模型档位、不自行设 complexity / quality 替代用户决定。

触发条件

在以下情况加载:

  • 用户要求写、优化、改写、结构化 GPT Image 2.6 的出图提示词。
  • 用户给出角色设定、场景需求、道具需求、关键帧需求,要转成出图 Prompt。
  • 用户要做图生图、多图参考合成、局部编辑、换背景、换服装、风格迁移,需要写编辑 Prompt。
  • 用户要做 markup 定位编辑:在图上圈出/标注某处要求只改那里。
  • 用户要做 SVG 矢量图 或 原生动画 GIF / 循环表情 / 动画分镜,需要写对应的产出提示词。
  • 用户已有 Prompt 但形态混乱(逗号堆砌、标签与散文混杂、约束与正文矛盾),需要归一化。

不要在以下情况自动执行:

  • 用户只问参数、价格、报错、模型能力,不需要写 Prompt。
  • 用户只要求评价一张已出的图。
  • 用户明确指定使用别的模型(如 2.5 或更旧的模型)。

不可违反的原则

  1. 意图优先:不得改变用户指定的主体身份、数量、道具归属、场景、构图意图、编辑对象和最终结果。
  2. 格式服务于可维护性:官方原话是 "Choose the format that makes the requirements easiest to read and update rather than relying on special syntax." 短句、散文、JSON 式、指令式、标签式都合法;不为"看起来专业"硬套标签。
  3. 默认散文,复杂才分节:官方原话是 "For complex requests, organize the prompt as scene, subject, details, and constraints, using labeled sections." 简单单主体画面用 1–5 句散文即可;只有多区域、多主体、多约束时才分节。
  4. 写实要明说:官方原话是 "Request 'photorealistic' or 'real photograph' explicitly when that is the goal." 要写实就写 photorealistic,不要因为担心"塑料感"而回避。(规避"塑料皮肤"是修细节与质感描述的事,不是删掉 photorealistic 的事。)
  5. 顺序固定:scene/backdrop → subject → details → constraints。顺序是脚手架,先定场景与主体,再补细节,最后压约束。
  6. 具体胜过形容词:写材料、光照、颜色、媒介、取景、质感;不写"高质量""4K""美丽"这类不指示画面内容的词。
  7. 相机参数是提示不是模拟:官方原话是 "Treat camera specifications as cues for appearance, not a guarantee of exact physical simulation." 焦距、光圈只用来引导观感。
  8. 参数分离:model / complexity / quality / size / background / output_format 是 API 字段,不写进 Prompt 正文。用户只描述"想要什么画面",档位留给接口设置。
  9. 不滥加约束:不得自动添加用户没要求的"无水印/无 logo/无字幕"等负向包。用户没提就不写。
  10. 单一最佳版本:默认只输出一个判断后最合适的 Prompt;用户明确要对比才输出多个。
  11. 只写可提交内容:Prompt 内不得出现分析过程、评测说明、修改理由、模型版本、接口密钥、参数名。

核心工作流

1. 解析目标,建立画面合同

先锁定,不先动笔:

  • 画面是什么:单张静态图 / 角色锚点图 / 场景空镜 / 道具图 / 关键帧 / 编辑结果图 / SVG 矢量图 / 动画 GIF。
  • 主体:谁或什么,几个人,几个物体,各自归属。
  • 正在发生什么:姿态、动作、视线、与物体的交互。动画还要锁定帧间变化量与循环衔接。
  • 在哪里:环境、时间、天气、光源方向。
  • 什么调性:写实 / 胶片 / 插画 / 3D / 版式图 / 矢量图。
  • 约束:必须保留什么,必须排除什么。
  • 任务类型:文生图 / 图生图参考 / 多图合成 / 编辑 / markup 定位编辑 / SVG / GIF。

2. 选格式

画面形态官方建议的形态落地写法
单主体、单场景(角色、场景、道具、关键帧)短句或散文段落3–6 句连续散文,一段到底
多区域、多主体、版式、信息图、多面板分节标签Scene: / Subject: / Details: / Constraints: 四节
需要精确结构化的生产系统任一可维护形态优先"可扫描",不追求花哨语法

判断口诀:一帧一个主体 → 散文;一帧多个区域 → 分节。

3. 按官方顺序写

  1. scene:先定场地、时间、光的方向和质感。
  2. subject:主体是谁,具体外观(发型、服装、材质、颜色、年龄感),不要用"少女感""高级感"这类总结标签代替可见特征。
  3. details:姿态、动作、视线、手在做什么、道具结构、表面纹理。
  4. constraints:要保留什么(肯定式)+ 要排除什么(否定式)。

4. 人像必写的四项

官方原话:"Describe body framing, relative scale, gaze, and interaction with objects."

  • body framing:全身可见、双脚入画 / 半身 / 近景
  • relative scale:相对桌子是儿童体型 / 比柜台高一头
  • gaze:低头看摊开的书,不看镜头 / 视线落在对方脸上
  • interaction:双手自然握住车把 / 指尖搭在杯沿

不写这四项,模型会自己决定姿态与视线,成片对不上分镜。

5. 编辑任务:改什么 / 保什么

官方原话:"For edits, say 'change only X' and list the details to preserve, such as identity, geometry, layout, lighting, or labels."

标准句式:

Change only <对象/区域>. Keep <身份、几何、布局、光照、标签> unchanged.

更细一级(官方原话):"For precise local edits, also identify saturation, contrast, arrows, camera angle, and surrounding objects that must remain unchanged."

即:局部精修时把饱和度、对比度、箭头标注、机位、周围物体也点名列进保持清单。

排除项要显式写:unwanted text / logos / watermarks 等。

6. 多图参考:逐张编号 + 逐张说用途

官方原话:"Identify each input by number and purpose: subject, style, clothing, or background. Explain how the inputs should combine and which elements should move where."

标准句式:

Image 1: <人物> — use only face, hair, and clothing; ignore its background.
Image 2: <场景> — use only layout, materials, and lighting; no people from it.
Image 3: <道具> — use only structure and material.
Place <对象> from Image 3 next to <人物> in Image 1; keep Image 1's framing and lighting.

7. 迭代:一次只改一处

官方原话:"Pass the previous output as the next edit input, request one change, and repeat the details to preserve."

  • 每次只提一个改动。
  • 每轮重述保持清单,防漂移。
  • 结果开始跑偏时,不要叠加更多指令,先把关键约束重写一遍。
  • same style as before 这类引用可以带上下文,但不能替代关键约束的重述。

8. 净化

删掉:修辞堆砌、重复形容词、与画面无关的抒情句、参数、分析、说明。 保留:主体、事件、场景、细节、约束。

完成后跑「最终自检」,再按「输出合同」交付。

提示词模板

以下模板的句式继承自官方 Image prompting 指南的示例传统;<...> 为占位符,必须替换为具体内容,不得把说明文字留在 Prompt 里。

一、散文模板(默认,单主体单场景)

Create a photorealistic <画面类型> of <主体> <在哪里>.
<主体> has <材质、肤色、服装、结构等可见细节>.
<主体> is <姿态/动作> while <同框的其他主体或物体> <状态>.
Shot like a <胶片/镜头语言>, <景别> at <机位>, using a <焦距> lens.
<光照与时间>, <景深/质感>, <色彩倾向>.
The image should feel <整体调性>, with <纹理与真实细节>. <排除项>.

这个结构直接对应官方示例的五句:类型与主体 / 外观细节 / 动作 / 镜头语言 / 光照质感 / 调性收束。

二、分节模板(复杂请求:多区域、多主体、版式)

Scene: <场地、时间、天气、光源方向、环境材质>.
Subject: <主体A 与 主体B,各自外观、数量、归属>.
Details: <姿态、动作、视线、物体交互、表面纹理、版面元素与文字位置>.
Constraints: change nothing about <必须保留项>; no <排除项>.

三、角色锚点图(用于后续一致性)

Create a photorealistic full-body reference photograph of <角色>, standing against a plain neutral background.
<角色> has <发型、脸型、肤色、年龄感、体型>.
Wearing <服装逐件点名,含颜色、材质、版型、磨损>.
Full body visible, feet included, standing straight, facing the camera, arms relaxed at the sides, neutral expression.
Even soft light from the front, no dramatic shadows, no color grading.
Real skin texture with visible pores and fine detail. No stylization, no retouching, no props, no text.

灰底、无影光、无渐变是 [管线自有] 做法,官方只要求"plain neutral background"与"even soft light"。2.6 的编辑一致性更强,锚点图的价值更高(官方:Sunburst 在 medium/high quality 下 "even greater image consistency across edits")。

四、关键帧(首帧)

关键帧的正文整段抄自分镜的 frozen_keyframe,再按官方四项补足人像信息与约束。

Create a photorealistic frame of <镜号> at the moment <起始时刻状态>.
Scene: <场景、时间、光源>.
Subject: <在场人物,各自外观与服装>.
Details: <姿态、手的位置、视线落点、道具位置、构图与景别>.
Full body visible / <所需景别>, <相对比例>, <视线方向>, <与道具的交互>.
Constraints: no <排除项>; keep <必须成立的空间关系>.

关键帧只能写起点那一格,不得写入属于终点状态的姿态变化。

五、场景空镜

Create a photorealistic photograph of <场景>, empty of people.
<空间结构:柜台、门、桌、货架的位置与朝向>.
<材质与磨损细节:木纹、金属反光、地面纹理>.
<光源方向与强度>, <时间>, <色温>.
Shot at <机位与景别>, <景深>.
No people, no text, no watermark.

六、道具图

Create a photorealistic product photograph of <道具>.
<结构:部件、比例、连接方式>.
<材质与表面:材质、颜色、反光、磨损位置>.
Isolated on a plain light grey background, even shadowless light, true color, no gradient.
No hands, no scene, no text, no watermark.

七、图生图编辑

Change only <对象或区域> to <目标内容>.
Keep <身份、几何、布局、光照、标签> unchanged.
Keep <饱和度、对比度、机位、周围物体> unchanged.
Match lighting, shadows, and color temperature to the original so the result looks captured, not pasted.
No <排除项>.

markup 定位编辑时, Prompt 里只需点名"被圈出的区域",不描述圈选坐标或标注颜色(那是接口层的可视化叠加,不属于画面内容):

Change only the marked area: <被圈出区域要改成的目标内容>.
Keep everything outside the marked area unchanged, including <身份、布局、光照、周围物体>.

官方把 markup 描述为 "pinpoint exactly where to make specific changes"。[非官方-第三方] 有资料称 markup 不可与 mask 或 prompt_rewriter 并用,此限制未在官方公告中确认,实际以接口文档为准。

八、多图合成

Image 1: <基础图 — 场景与构图来源>.
Image 2: <被置入的对象 — 只说结构、材质、外观>.
Place <Image 2 的对象> into <Image 1 的位置>, <具体方位>.
Keep Image 1's framing, background, camera angle, and lighting.
Match perspective, scale, and shadows so the composite reads as one photograph.
Do not change anything else.

九、SVG 矢量图(2.6 新增)

SVG 走的仍是画面描述 Prompt,矢量属性靠 output_format 输出,不写进正文。官方原话:"SVG exports make designs ready to use across websites, apps, and print."

Create a clean vector-style <图标/徽标/版式图> of <主体>.
<主体> has <几何结构、轮廓、色块、线条粗细>.
Flat colors, crisp edges, simple geometry, no raster texture, no photographic shading.
<构图与留白>. <排除项>.

[非官方-第三方] 资料称 SVG 仅 generations 支持、n=1、不可流式,且不能作为 edits 的输入或输出。官方公告只确认"支持 SVG 导出",未列这些限制,实际以接口文档为准。

十、动画 GIF / sprite sheet(2.6 新增)

GIF 的产出形态是"单张动画序列图(sprite sheet)→ 切片合成循环"。官方示例提示词由 OpenArt 创作,展示了结构化写法;下列模板按其关键模式整理。

Create a single animation sprite sheet for a seamless looping GIF.
Exactly <N> sequential frames arranged in a precise <列>×<行> grid, read left-to-right then top-to-bottom.
Every panel has identical dimensions.
Fixed <机位>, same <角色>, same <场景/道具/服装/背景>.
<每帧之间的渐进变化:动作、表情、位移>.
The last frame transitions smoothly toward the first for a seamless loop.
<风格、光照、情绪>.
No captions, no words, no numbers, no logos, no speech bubbles, no panel labels, no borders, no gutters.

要点:

  • 锁定不变量:机位、角色、场景、服装、背景逐帧一致。
  • 写清变化量:只描述帧间的渐进动作/表情/位移,不写整段剧情。
  • 首尾衔接:末帧要能平滑回到首帧,才能无缝循环。
  • 排除版面元素:字幕、编号、logo、气泡、面板标签、边框、间隔一律列出排除。

[非官方-第三方] 资料称 GIF 通过 frame_count / frame_duration_ms 控制帧数与单帧时长,范围约 2–64 帧、仅 generations 支持、不可流式。官方公告只确认原生 GIF 能力与 sprite sheet 示例,未列这些参数,实际以接口文档为准。

参数分离

以下字段只属于 API 请求,一个字都不进 Prompt:

参数说明
modelgpt-image-2.6-sunburst(偏质量与编辑一致性)/ gpt-image-2.6-flare(偏速度)
complexity2.6 新增,low / medium / high。规划力度:官方原话 "Image quality controls visual detail and fidelity, while complexity guides how much goes into the scene." 官方建议:多数编辑用 low 求快;多元素、多约束场景用 medium 或 high。默认值与是否计费,[非官方-第三方] 称默认 high 且不另收费,官方公告未确认,以接口文档为准。
quality官方公告明确出现 low / medium / high。更细档位(如 auto / xhigh / max)未在 2.6 公告中出现,以接口文档为准。
sizeauto 或 WIDTHxHEIGHT;具体可用尺寸与宽高比以接口文档为准。
backgroundauto / opaque / transparent
output_formatpng / jpeg / webp;2.6 新增 svg 与动画 gif(限制见对应模板)。
input_fidelity[非官方-第三方] 称 2.5 与 2.6 均不设该字段,图像输入始终高保真处理;以接口文档为准。

官方 2.6 两档定位原话:

"GPT‑Image‑2.6 Sunburst and GPT‑Image‑2.6 Flare are available in the API."

"When quality is set to low, Flare can generate images in as little as six seconds."

"For work that calls for greater detail and precision, GPT‑Image‑2.6 Sunburst brings higher-quality image generation and even greater image consistency across edits when quality is set to medium or high."

"Images 2.6 generates images 50% faster than before."

complexity 的取舍原话:"For most editing tasks, we recommend low complexity for faster edits, paired with the image quality your workflow requires." / "For scenes with many elements or constraints, try medium or high complexity effort."

具体到 1152x2048 这类尺寸是平台界面档位([平台实测]),不是 OpenAI 模型规格。

官方示例(Image prompting 通用示例,可作学习样本)

提示词方法论跨版本通用,下列示例沿用官方 Image prompting 指南的经典样本,作为写法参照;模型ID 与参数不属于 Prompt 内容。

写实人像

Create a photorealistic candid photograph of an elderly sailor standing on a small fishing boat.
He has weathered skin with visible wrinkles, pores, and sun texture, and a few faded traditional sailor tattoos on his arms.
He is calmly adjusting a net while his dog sits nearby on the deck.
Shot like a 35mm film photograph, medium close-up at eye level, using a 50mm lens.
Soft coastal daylight, shallow depth of field, subtle film grain, natural color balance.
The image should feel honest and unposed, with real skin texture, worn materials, and everyday detail.
No glamorization, no heavy retouching.

置入人物

Generate a highly realistic action scene where this person is running away from a large, realistic brown bear attacking a campsite.
The image should look like a real photograph someone could have taken, not an overly enhanced or cinematic movie-poster image.
She is centered in the image but looking away from the camera, wearing outdoorsy camping attire, with dirt on her face and tears in her clothing.
She is clearly afraid but focused on escaping, running away from the bear as it destroys the campsite behind her.
The campsite is in Yosemite National Park, with believable natural details. The time of day is dusk, with natural lighting and realistic colors.
Everything should feel grounded, authentic, and unstyled, as if captured in a real moment.
Avoid cinematic lighting, dramatic color grading, or stylized composition.

删物体

Remove the flower from man's hand. Do not change anything else.

草图转写实

Turn this drawing into a photorealistic image.
Preserve the exact layout, proportions, and perspective.
Choose realistic materials and lighting consistent with the sketch intent.
Do not add new elements or text.

动画 GIF sprite sheet(2.6 官方公告示例,OpenArt 创作)

Create a single animation sprite sheet for a seamless looping GIF.
Exactly 6 sequential frames arranged in a precise 3-column by 2-row grid, read left-to-right then top-to-bottom.
Every panel has identical dimensions.
Fixed front three-quarter camera, same character, same desk, monitor, outfit, and cozy miniature office background.
Clear incremental facial and tear motion; sixth frame transitions smoothly toward the first.
Polished kawaii chibi 3D toy-like style, warm pastel lighting, funny and sympathetic mood.
No captions, no words, no numbers, no logos, no speech bubbles, no panel labels, no borders, no gutters.

这些示例的共同特征:短、散文、动词开头、约束落在最后一句。这就是原生形态。

与管线结合的边界

以下属 [管线自有],官方没有规定,写的时候自己负责:

  • 角色锚点图必须灰底、零光、不拼多视角。
  • 道具图必须 #DCDCDC 浅灰底、无影、无渐变。
  • 关键帧只写起点那一格,不写终点姿态。
  • 参考图背景不得污染主体。

冲突时:官方规则优先。例如"有脸禁 photorealistic"是 [社区工艺] 建议,与官方 "Request 'photorealistic' explicitly when that is the goal" 冲突,应以官方为准,改用质感与细节描述来控制观感。

最终自检

输出前逐项确认:

  • 主体身份、数量、道具归属、场景、故事结果没有被改变。
  • 格式符合画面复杂度:单主体用散文,多区域才分节;没有为了"专业感"硬加标签。
  • 顺序是 scene → subject → details → constraints。
  • 要写实的地方写了 photorealistic 或 real photograph。
  • 有人的地方写了 body framing / scale / gaze / interaction 四项。
  • 具体到什么材质、什么颜色、什么纹理,而不是"高质量""电影感"。
  • 编辑任务写了 change only 句式与保持清单。
  • 多图合成逐张编号,说明了用途与组合方式。
  • 迭代时重述了保持清单。
  • 参数(model / complexity / quality / size / background / output_format)一字未进 Prompt。
  • 没有分析、评测、修改理由。
  • SVG 与 GIF 模板根据产出类型正确选用。

输出合同

一条干净、可直接提交的 Prompt。

- 没有解释。
- 没有参数。
- 没有分析过程。
- 没有修改理由。
- 只有画面描述与约束。

本 Skill 严格映射 OpenAI 官方 Image prompting 指南(https://developers.openai.com/api/docs/guides/image-prompting)与 Images 2.6 发布公告(https://openai.com/index/introducing-images-2-6,2026-11-04)中的可操作方法。所有非官方来源已显式标注。

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相关技能