OpenAI 图像提示词

2026-11-06 11:49 更新

GPT Image 2.6提示词指南

选择模型、调节复杂度,并引导图像编辑。

概述

先明确需要怎样的图像,再描述主体、构图、风格和约束。编辑时,区分要改变与必须保持的内容;一次只调整一项并检查结果。

GPT Image 2.6 Flare是适合重视速度的工作流的小型模型;GPT Image 2.6 Sunburst是适合更多细节或精确编辑要求的基础模型。两者都支持生成、编辑和透明背景。API配置与示例见图像生成指南。

选择模型

新工作流重视响应时间时,从GPT Image 2.6 Flare开始;对细节、布局或编辑准确度有严格要求时,从GPT Image 2.6 Sunburst开始。

当前工作流 优先测试
GPT Image 2已满足要求,或正在使用2.5 Flare gpt-image-2.6-flare,用已有提示比较质量和响应时间
GPT Image 2无法满足复杂任务,或正在使用2.5 Sunburst gpt-image-2.6-sunburst,检查决定图像能否使用的关键细节

Sunburst满足要求后,使用相同提示、参考图、尺寸和质量设置测试Flare,按实际工作负载比较结果与响应时间。

模型参数

在API请求中设置这些字段,提示词负责描述所需图像。

参数 GPT Image 2.6设置
model gpt-image-2.6-flare或gpt-image-2.6-sunburst
quality 控制纹理、小文字等可渲染细节;auto、low、medium、high、xhigh或max
complexity 控制渲染前的规划量;low、medium或high,两款模型省略时均使用high
size 输出像素尺寸,auto或受支持尺寸,如1024x1024、1536x1024、1024x1536
background auto、opaque或transparent;透明PNG/WebP应检查解码后的alpha通道,SVG也支持透明
output_format png、jpeg或webp;生成还支持svg和gif;仅JPEG/WebP支持output_compression
markup 编辑时上传透明PNG标注层,像素尺寸与第一张输入一致,见下方标注引导编辑

复杂布局先使用默认值,检查标签和连接关系。比较复杂度时固定quality;布局正确但小字难读时,在相同复杂度下比较质量。

自定义size的两边均为16的倍数,宽高比在1:3到3:1之间。横向幻灯片示例使用1536x864。

图像编辑时省略input_fidelity。GPT Image 2.6不支持reasoning.summary。

迁移已有工作流

  1. 保存基线。 收集当前模型的代表性提示、参考图与输出,包含困难编辑、准确文字、产品几何和透明素材。
  2. 测试对应模型。 2.5 Flare先试2.6 Flare;2.5 Sunburst先试2.6 Sunburst;GPT Image 2按上方模型选择表决定。
  3. 首次比较保持一致。 使用相同提示、参考图、尺寸、质量与输出格式,复杂度保留模型默认值。
  4. 检查结果。 核对文字、布局、身份及编辑应保留的细节。多轮编辑既要看中间结果,也要看最终图。
  5. 一次只调一项。 修改质量或复杂度中的一项,重复请求,比较达标频率和耗时。
  6. 按工作流推广。 达到要求后先迁移少量流量,扩展前持续观察响应时间、失败、重试与每张合格图像的费用。

从GPT Image 1或1.5迁移时,查看对应参考部分的参数差异和关闭日期。某区域必须逐像素一致时,应将已确认的编辑结果合成回原图。

提示词基础

  1. 定义结果:写明主体和用途,如产品照、广告或图解;指定构图、宽高比、位置限制。复杂请求可按场景、主体、细节、约束分段。
  2. 选择易维护的格式:短提示、描述段落、类JSON结构、指令、标签都可表达同一意图;选择便于阅读更新的形式,不依赖特殊语法。
  3. 描述可见细节:说明材质、光线、色彩、媒介。需要写实时明确说“照片级真实”或“真实照片”,并描述取景与纹理。相机参数是外观提示,不保证精确物理仿真。宽幅、电影感、低照、雨景、霓虹场景应写清尺度、氛围和颜色,不只用情绪词。
  4. 说明人物与动作:定义身体取景、相对大小、目光和与物体的互动。例如全身可见且含双脚、低头看打开的书、双手自然握住车把。
  5. 指定准确文字:要求的文案加引号,说明位置和字体;不常见词或品牌名必要时逐字母拼写。要求不加额外文字,再检查拼写与可读性。小字、密集信息、多字体可比较medium与high。
  6. 分清变化与约束:编辑时写“只改变X”,列出身份、几何、布局、光线、标签等不变项,并排除多余文字、标志、水印。精确局部编辑还要限定饱和度、对比度、箭头、相机角度和周围物体。
  7. 给参考图分配角色:按编号说明主体、风格、服装、背景等用途,解释如何组合和移动元素。
  8. 有控制地迭代:把上一轮输出作为下一轮输入,只要求一项改变,重申不变细节。“与之前同风格”可沿用上下文,但偏离时需重申关键限制,比较结果后再加要求。

多数示例省略complexity并使用模型默认值;请根据自己的图像和要求调整提示。

生成图像

比较复杂度

提示词给设计留下空间时,可以尝试high复杂度,让模型有更多构图规划空间。以下提示只说明场景与材质,奖杯、队服和文字布局由模型决定:

制作一幅精致的手工分层剪纸插画:足球队在座无虚席的体育场内庆祝夺冠。

Sunburst使用相同提示、1024x1536、medium质量与PNG输出,分别测试三种复杂度,比较奖杯与“CHAMPIONS”的位置。

低复杂度:皇冠奖杯与前景横幅

中复杂度:月桂奖杯与带队徽的红衫

高复杂度:蓝色折纸队服与看台标牌

low的奖杯顶部有皇冠;medium使用月桂花环,队服增加队徽。两者都有队伍前的大横幅。high把标牌移到看台,前景突出球员与蓝色纸队服的折痕。

  • 设计已明确规定布局、文字和风格时,提高复杂度可能几乎没有可见差异。
  • 只改一个细节时先从low开始,检查周围细节保持不变。

生成SVG输出

要通过路径缩放或改色的标志,可把下方Field & Flour烘焙店提示发送到生成端点,设置output_format="svg"和n=1。SVG支持background="transparent",空白区域可显示承载面的颜色。

省略stream、partial_images、output_compression和prompt_rewriter;解码data[0].b64_json,把XML保存为.svg。

Flare矢量标志:金色面包与奶油色文字

Sunburst矢量标志:麦穗、面包与擀面杖

打开Flare SVG或Sunburst SVG查看矢量作品。

生成循环GIF

让动画平滑循环,应给主体设定要返回的起始姿势,并说明相机是否移动。

傍晚雪松林里,一只穿橄榄绿连帽外套的小猴子站在发光木屋前,双手把琥珀色纸灯笼持在胸前,缓缓提起,抬头眨眼,再放回起始位置。灯笼始终在手里,相机固定,动作平滑循环。

小猴子提灯、眨眼并回到起始姿势的循环动画

向生成端点发送提示,设置output_format="gif"。本例使用2.6 Sunburst、512x512、high质量和默认high复杂度;9帧、每帧200毫秒,循环长1.8秒。设置与限制见GIF输出。

控制风格与光线

通过主体、取景、光线、纹理描述照片。本例指定自然抓拍构图,明确排除过度修图。生成设置:size=1024x1536,quality=medium。

来源示例1(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1001:

创建一张写实自然抓拍照:一位年老水手站在小渔船上。皮肤饱经风霜,可见皱纹、毛孔、日晒纹理,手臂有几处褪色传统水手纹身。他平静地整理渔网,狗坐在旁边甲板上。呈现35毫米胶片摄影质感,平视中近景,50毫米镜头。柔和海岸日光、浅景深、细腻胶片颗粒、自然色彩平衡。真实不摆拍,保留皮肤、磨损材质与日常细节;不美化,不重度修图。

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.

GPT Image 2.6 Flare

修补渔网的水手写实肖像 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

修补渔网的水手写实肖像 — GPT Image 2.6 Sunburst

用图解说明过程

说明流程、受众和需要传达的信息。信息图除外观,还要核对标签及事实关系。生成设置:1024x1536,medium。

来源示例2(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1002:

创建详细信息图,解释类似Jura自动咖啡机的工作与流程:从咖啡豆仓、研磨、称量、水箱、锅炉等环节展开,让人从技术和视觉上理解流程。

Create a detailed Infographic of the functioning and flow of an automatic coffee machine like a Jura.
From bean basket, to grinding, to scale, water tank, boiler, etc.
I'd like to understand technically and visually the flow.

GPT Image 2.6 Flare

自动咖啡机流程图 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

自动咖啡机流程图 — GPT Image 2.6 Sunburst

渲染准确文字

把必要文案放在引号中,说明出现次数、受众和视觉处理,不加入无关要求。生成设置:1024x1536,medium。

来源示例3(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1003:

为名为Thread的潮流年轻街头品牌拍摄一幅时尚广告:朋友们聚在一起,文案为“Yours to Create.”。成片面向年轻街头服饰受众,精致、现代、充满活力且有品位。构图干净、配色有明确方向、姿态自然,具有高级时尚摄影质感。指定英文文案只出现一次,清楚可读并融入版式。不加额外文字、水印或无关标志。文案含义是“由你创造”,图中仍保留指定英文。

Give me a cool in culture ad / fashion shot for a brand called Thread.
It's a hip young street brand. The ad shows a group of friends hanging out together with the tagline "Yours to Create."
Make it feel like a polished campaign image for a youth streetwear audience: stylish, contemporary, energetic, and tasteful.
Use clean composition, strong color direction, natural poses, and premium fashion photography cues.
Render the tagline exactly once, clearly and legibly, integrated into the ad layout.
No extra text, no watermarks, no unrelated logos.

GPT Image 2.6 Flare

Thread街头服饰广告 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

Thread街头服饰广告 — GPT Image 2.6 Sunburst

设计可复用的标志

描述品牌及定义标志的形状,要求轮廓在小标签和大招牌上都清楚可辨。

来源示例4(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1004:

为本地烘焙店Field & Flour创建原创、不侵权的标志。温暖、简洁、经久耐看,使用干净的类矢量形状、鲜明轮廓、平衡留白。简洁优先于细节,大小尺寸都清楚;扁平设计,线条最少,非必要不加渐变。背景完全透明,单个标志居中并留足边距,alpha边缘干净,不要纯色衬底、场景、棋盘格或水印。

Create an original, non-infringing logo for a company called Field & Flour, a local bakery.
The logo should feel warm, simple, and timeless. Use clean, vector-like shapes, a strong silhouette, and balanced negative space.
Favor simplicity over detail so it reads clearly at small and large sizes. Flat design, minimal strokes, no gradients unless essential.
Fully transparent background. Deliver a single centered logo with generous padding, clean alpha edges, and no solid backdrop, scenery, checkerboard, or watermark.

要用于其他背景的栅格标志,设置output_format="png"和background="transparent"。可参考透明图像素材Cookbook。两款模型均使用1024x1536、medium、n=1;增加n可获得更多栅格变体。

Flare栅格标志:面包、弧形田垄与Field & Flour文字

Sunburst栅格标志:面包两侧的金色麦穗

使用历史与现实语境

用地点、日期确立历史背景。模型可推断细节,但服装、舞台布置和环境仍需检查历史准确性。生成设置:1024x1536,medium。

来源示例5(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1005:

创建1969年8月16日纽约州Bethel的真实户外人群场景。照片级写实,服装、舞台布置和环境符合时代。

Create a realistic outdoor crowd scene in Bethel, New York on August 16, 1969.
Photorealistic, period-accurate clothing, staging, and environment.

GPT Image 2.6 Flare

1969年纽约州Bethel人群 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

1969年纽约州Bethel人群 — GPT Image 2.6 Sunburst

把故事转成连环漫画

按每格一个清楚的视觉节拍组织叙事,描述具体并围绕动作,让模型能转为可读、节奏合适的分镜。生成设置:1024x1536,medium。

来源示例6(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1006:

制作竖向4格漫画。第1格:主人从前门离开,窗后的宠物相对玻璃很小,睁大眼、前爪高举贴窗,房屋突然安静。第2格:门咔嗒关上,寂静被打破,宠物缓慢转身看向空房,姿态改变,眼神透出机会。第3格:屋内变了样,宠物像主人般摊在沙发上,旁边有碎屑,阳光像聚光灯穿过房间。第4格:门打开,宠物已端坐门口,警觉而从容,仿佛什么都没发生。

Create a short vertical comic-style reel with 4 panels.
Panel 1: The owner leaves through the front door. The pet is framed in the window behind them, small against the glass, eyes wide, paws pressed high, the house suddenly quiet.
Panel 2: The door clicks shut. Silence breaks. The pet slowly turns toward the empty house, posture shifting, eyes sharp with possibility.
Panel 3: The house transformed. The pet sprawls across the couch like it owns the place, crumbs nearby, sunlight cutting across the room like a spotlight.
Panel 4: The door opens. The pet is seated perfectly by the entrance, alert and composed, as if nothing happened.

GPT Image 2.6 Flare

宠物独自在家的四格漫画 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

宠物独自在家的四格漫画 — GPT Image 2.6 Sunburst

创建界面预览

像描述已存在的产品一样描述界面,强调布局、层级、间距和真实控件,避免概念画语言,使结果像可用的已发布界面。生成设置:1024x1536,medium。

来源示例7(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1007:

创建本地农夫市集的真实移动应用UI样机。显示今日市集、简洁页头、带小图和分类的摊主短列表、小型“今日特价”区域、地点与营业时间。实用易用,白底、自然柔和点缀色、清楚字体、极少装饰,像真实精美的小市集应用。放进iPhone边框。

Create a realistic mobile app UI mockup for a local farmers market.
Show today’s market with a simple header, a short list of vendors with small photos and categories, a small “Today’s specials” section, and basic information for location and hours.
Design it to be practical, and easy to use. White background, subtle natural accent colors, clear typography, and minimal decoration.
It should look like a real, well-designed, beautiful app for a small local market.
Place the UI mockup in an iPhone frame.

GPT Image 2.6 Flare

农夫市集手机应用界面 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

农夫市集手机应用界面 — GPT Image 2.6 Sunburst

创建科学与教学视觉素材

可用于生物、化学、课堂讲解、扁平科学图标、图解与学习素材。像教学设计需求一样定义受众、学习目标、视觉形式、必要标签与科学约束。干净扁平、图标统一、箭头明确、标签可读、留白充分有助于理解。

需要准确性时,明确列出组成部分和不应加入的内容。密集标签、图解或用于幻灯片与课程的素材可使用high。生成设置:1536x1024,high。

来源示例8(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1008:

为高中生创建题为“Cellular Respiration at a Glance”的简单生物图解,标题意为“细胞呼吸一览”。展示细胞内葡萄糖转为能量,包含糖酵解、克雷布斯循环和电子传递链,用箭头连接,标注glucose、pyruvate、ATP、NADH、FADH2、CO2、O2、H2O。像干净课堂讲义或幻灯片,白底、简单图标、清楚标签和易读文字。不要小字、额外装饰或阻碍理解的内容。

Create a simple biology diagram titled "Cellular Respiration at a Glance" for high school students.

Show how glucose turns into energy inside a cell. Include glycolysis, the Krebs cycle, and the electron transport chain.
Use arrows to connect the steps, and label the main molecules: glucose, pyruvate, ATP, NADH, FADH2, CO2, O2, and H2O.
Make it look like a clean classroom handout or slide, with a white background, simple icons, clear labels, and easy-to-read text.

Avoid tiny text, extra decoration, or anything that makes the diagram hard to understand.

GPT Image 2.6 Flare

细胞呼吸课堂图解 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

细胞呼吸课堂图解 — GPT Image 2.6 Sunburst

制作幻灯片、图解与图表

像交付物规格一样描述需求:明确幻灯片、流程图、图表或页面图像,定义画布、层级,提供实际文字和数据,说明视觉语言。要求文字可读、间距精致,不堆装饰,不使用泛化图库照片风格。

把数值和标签直接写入提示;演示文稿类用横版,小字、图例、坐标轴、脚注用high。下方市场数据与引用是虚构设计输入,实际使用前必须替换为已核实数据。生成设置:1536x864,high。

来源示例9(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1009:

制作一页题为“Market Opportunity”的融资演示幻灯片,像获YC支持初创企业的真实A轮融资页面。白底、Inter类现代无衬线字体、简洁利落布局。包含低饱和蓝灰色TAM/SAM/SOM同心圆:TAM为$42B、SAM为$8.7B、SOM为$340M;下方以简洁柱图展示2021至2026年温和增长;小脚注为“AGI Research, 2024”和“Internal analysis”;右下角放公司标志占位。文字高度可读、数据层次清楚、间距精致,具专业初创企业风格。不要剪贴画、图库照片、渐变、阴影、装饰或泛化过度设计。上述数字与引用只为虚构设计输入,标题和指定脚注保留英文。

Create one pitch-deck slide titled **"Market Opportunity"** that feels like a real Series A fundraising slide from a YC-backed startup.

Use a clean white background, modern sans-serif typography like Inter, and a crisp, minimal layout. The slide should include:

* A TAM/SAM/SOM concentric-circle diagram in muted blues and grays
* Specific, believable market sizing numbers:

  * **TAM:** $42B
  * **SAM:** $8.7B
  * **SOM:** $340M
* A clean bar chart below showing market growth from **2021 to 2026**, with a subtle upward trend
* Small footnotes: **"AGI Research, 2024"** and **"Internal analysis"**
* A company logo placeholder in the bottom-right corner

The design should look like it belongs in a deck that actually raised money: highly readable text, clear data hierarchy, polished spacing, and professional startup-style visual language.

Avoid clip art, stock photography, gradients, shadows, decorative elements, or anything that feels generic or overdesigned.

GPT Image 2.6 Flare

采用虚构市场数字的融资幻灯片 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

采用虚构市场数字的融资幻灯片 — GPT Image 2.6 Sunburst

编辑图像

使用client.images.edit传入参考图。需要蒙版的局部编辑见蒙版编辑。

使用标注引导编辑

围住要修改的物体,在提示中说明修改内容。本例针对厨房桌上的条纹花瓶。

用一个multipart编辑请求发送两个文件:厨房原图作为image,透明圆圈标注层作为markup。两者都是1200×900像素,预览将两者合成显示。

标注只用于第一张输入,其他图是参考。使用markup时省略mask和prompt_rewriter。两次编辑都使用medium质量、auto尺寸和PNG输出。

厨房桌上花瓶被红圈标出的预览

提示词译文:把红圈中的条纹花瓶改为纯钴蓝色陶瓷,保留形状、干花枝和厨房其余内容,最终照片中移除红圈。

Recolor the striped vase inside the red circle to solid cobalt blue ceramic. Keep its shape, the dried stems, and the rest of the kitchen unchanged. Remove the red circle from the finished photo.

Flare标注编辑后的钴蓝花瓶

Sunburst标注编辑后的钴蓝花瓶

保留布局并翻译文字

使用各模型在流程图解示例中生成的咖啡机图作为输入,要求替换文字且不改设计;检查译文和残留原文。编辑设置:1024x1536,high。

来源示例10(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1010:

把信息图中的文字翻译为西班牙语,图像其他方面完全不变。

Translate the text in the infographic to Spanish. Do not change any other aspect of the image.

GPT Image 2.6 Flare

翻译为西班牙语的咖啡机图 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

翻译为西班牙语的咖啡机图 — GPT Image 2.6 Sunburst

迁移视觉风格

明确参考图提供色板、纹理或视觉媒介,另行描述新主体。使用下方像素画作输入。编辑设置:1024x1536,medium。

来源示例11(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1011:

沿用输入图像的风格,生成一名男子在白色背景上骑摩托车的图像。

Use the same style from the input image and generate a man riding a motorcycle on a white background.

输入图:

作为风格参考的像素游戏画面

示例输出:

GPT Image 2.6 Flare

沿用像素风的摩托车骑手 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

沿用像素风的摩托车骑手 — GPT Image 2.6 Sunburst

保留身份并更换服装

输入人物照和三张服装参考,明确人物哪些部分不变,只允许更换服装。这一方式也适用于产品或物体必须可辨认的编辑。设置:1024x1536,medium。

来源示例12(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1012:

根据提供的服装参考图,为女性换装。脸、五官、肤色、体型、姿态、身份完全不变,准确保留相貌、表情、发型、比例。只换服装,衣物自然贴合既有姿态和身体几何,布料表现真实;光线、阴影、色温匹配原照,融合写实而非粘贴感。不改背景、机位、取景和画质,不加配饰、文字、标志或水印。

Edit the image to dress the woman using the provided clothing images. Do not change her face, facial features, skin tone, body shape, pose, or identity in any way. Preserve her exact likeness, expression, hairstyle, and proportions. Replace only the clothing, fitting the garments naturally to her existing pose and body geometry with realistic fabric behavior. Match lighting, shadows, and color temperature to the original photo so the outfit integrates photorealistically, without looking pasted on. Do not change the background, camera angle, framing, or image quality, and do not add accessories, text, logos, or watermarks.

输入图:

作为身份参考的博物馆女性

服装参考:米色夹克

服装参考:白色背心

服装参考:灰色靴子

输出:

GPT Image 2.6 Flare

女性换上参考服装 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

女性换上参考服装 — GPT Image 2.6 Sunburst

组合参考图

场景照为图1,狗的照片为图2,说明移动哪个元素、放在哪里,以及哪些内容必须不变。设置:1024x1536,medium。

来源示例13(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1013:

把图2的狗放入图1场景,紧挨女性,沿用图1的光线、构图、背景风格,其他内容不变。

Place the dog from the second image into the setting of image 1, right next to the woman, use the same style of lighting, composition and background. Do not change anything else.

输入图:

合成输入1:街景中的女性

合成输入2:女性与狗

输出:

GPT Image 2.6 Flare

狗被放入女性身旁的街景 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

狗被放入女性身旁的街景 — GPT Image 2.6 Sunburst

创建透明背景产品抠图

提示中要求分离主体,API中同时设transparent背景。使用PNG或WebP,保留返回alpha通道,PNG不要设置output_compression。画出的棋盘格不是真透明;后续编辑也需重申保持透明。输入下方产品照,设置1024x1536、medium、transparent、png。

来源示例14(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1014:

从输入图中提取产品,置于完全透明背景。产品居中,轮廓清楚,无光晕和边缘杂色。准确保留几何形状与标签可读性,只做轻微修整,不添加纯色衬底、棋盘格、场景或阴影。不重设产品风格;移除背景并保留干净alpha透明度。

Extract the product from the input image and isolate it on a fully transparent background.
Output: centered product, crisp silhouette, no halos/fringing.
Preserve product geometry and label legibility exactly.
Add only light polishing. Do not add a solid backdrop, checkerboard, scenery, or shadow.
Do not restyle the product; remove the background and preserve clean alpha transparency.

输入图:

洗发水原始产品照

输出:

GPT Image 2.6 Flare

透明背景洗发水产品抠图 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

透明背景洗发水产品抠图 — GPT Image 2.6 Sunburst

把绘画转为写实图像

将草图转成写实概念时,先保留布局与透视,再指定合理材质、光线、环境来增加真实感;明确“不添加新元素或文字”,避免重新演绎。设置:1024x1536,medium。

来源示例15(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1015:

把这幅绘画转为写实图像,准确保留布局、比例和透视。选择符合草图意图的真实材质与光线,不加新元素或文字。

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.

输入图:

河谷线描草图

输出:

GPT Image 2.6 Flare

草图转写实河谷 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

草图转写实河谷 — GPT Image 2.6 Sunburst

移除物体

点名要移除的物体,保留周围所有内容;人物、姿态、光线、构图不变,让修改局限在目标区域。设置:1024x1536,medium。

来源示例16(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1016:

移除男子手中的花,其他内容完全不变。

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

输入图:

戴蓝帽且手持花朵的男子

输出:

GPT Image 2.6 Flare

移除手中花朵后的男子 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

移除手中花朵后的男子 — GPT Image 2.6 Sunburst

将人物放入场景

人物身份不变,指定自然光、可信细节、身体取景、目光和场景互动,列出不变的脸部特征与比例。对gpt-image-2省略input_fidelity,因为输入总以高保真处理。使用博物馆里的女性为输入;设置1024x1536、medium。

来源示例17(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1017:

创建高度写实的动作场景:这名人物逃离一只袭击营地的大型真实棕熊。像真实人物抓拍的照片,而非过度增强或电影海报。她位于画面中央,但不看镜头,穿户外露营服,脸上有泥土、衣物撕裂;明显害怕但专注逃跑,身后熊正在破坏营地。地点为优胜美地国家公园,自然细节可信,时间为黄昏,自然光和真实颜色,朴实、真实、不刻意造型。不使用电影光、戏剧调色或风格化构图。

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.

GPT Image 2.6 Flare

露营地中逃离棕熊的女性 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

露营地中逃离棕熊的女性 — GPT Image 2.6 Sunburst

跨轮次完善图像

从一张输出开始,检查后将它作为下一轮输入;后续修改范围要小,便于判断哪项调整有效。

创建起始图像

使用产品抠图示例的洗发水照片作为公路广告牌场景输入,准确引用标签文字。设置:1024x1536,medium。

来源示例18(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1018:

为洗发水创建日落公路场景中的真实广告牌样机。广告牌英文必须逐字为“Fresh and clean”,不多字符;粗体无衬线、高对比、居中、字距干净。只出现一次且完全可读。无水印、无标志。指定文案意为“清新洁净”,画面仍保留英文。

Create a realistic billboard mockup of the shampoo on a highway scene during sunset.
Billboard text (EXACT, verbatim, no extra characters):
"Fresh and clean"
Typography: bold sans-serif, high contrast, centered, clean kerning.
Ensure text appears once and is perfectly legible.
No watermarks, no logos.

输入图:

洗发水原始产品照

输出:

GPT Image 2.6 Flare

日落洗发水广告牌 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

日落洗发水广告牌 — GPT Image 2.6 Sunburst

改变一个条件

把各模型上一步的广告牌输出作为其下一步编辑输入,用简短后续提示改变天气、保留场景。设置:1024x1536,medium。

来源示例19(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1019:

改成下雪的冬日傍晚。

Make it look like a winter evening with snowfall.

GPT Image 2.6 Flare

雪夜广告牌 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

雪夜广告牌 — GPT Image 2.6 Sunburst

保持角色一致

多插画图书可先创建可复用的角色参考,以便跨场景、姿态、页面保留外观。改变环境和故事时重复角色的关键特征。

确立角色

定义外观、比例、服装和基调。生成设置:1024x1536,medium。

来源示例20(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1020:

创建儿童图画书插画,介绍主角:原创年轻森林侠客,穿简洁绿色连帽短袍、柔软棕靴,带小腰包;表情友善、目光温柔、勇敢温暖,小木弓只用于帮助而非伤害。主题是保护和救助松鼠、鸟、兔等小动物。采用手绘水彩儿童书风格,柔软轮廓、温暖大地色、奇趣友好;比例适合绘本,头稍大、表情丰富。不使用受版权保护的角色,不加文字、水印;简单森林背景突出角色。

Create a children’s book illustration introducing a main character.

Character:
A young, storybook-style hero inspired by a little forest outlaw,
wearing a simple green hooded tunic, soft brown boots, and a small belt pouch.
The character has a kind expression, gentle eyes, and a brave but warm demeanor.
Carries a small wooden bow used only for helping, never harming.

Theme:
The character protects and rescues small forest animals like squirrels, birds, and rabbits.

Style:
Children’s book illustration, hand-painted watercolor look,
soft outlines, warm earthy colors, whimsical and friendly.
Proportions suitable for picture books (slightly oversized head, expressive face).

Constraints:
- Original character (no copyrighted characters)
- No text
- No watermarks
- Plain forest background to clearly showcase the character

GPT Image 2.6 Flare

儿童书森林英雄角色 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

儿童书森林英雄角色 — GPT Image 2.6 Sunburst

延续故事

重复使用各模型生成的角色图,描述新场景并重申外观约束。编辑设置:1024x1536,medium。

来源示例21(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1021:

沿用同一角色续写绘本:冬季风暴后,年轻森林英雄温柔地帮助受惊松鼠离开倒木,跪在旁边安慰它。保持同样绿色连帽短袍、五官、比例、色板与温柔英勇性格。儿童书水彩风格、柔光、雪林环境、温暖安心氛围。不重设计角色,不加文字或水印。

Continue the children’s book story using the same character.

Scene:
The same young forest hero is gently helping a frightened squirrel
out of a fallen tree after a winter storm.
The character kneels beside the squirrel, offering reassurance.

Character Consistency:
- Same green hooded tunic
- Same facial features, proportions, and color palette
- Same gentle, heroic personality

Style:
Children’s book watercolor illustration,
soft lighting, snowy forest environment,
warm and comforting mood.

Constraints:
- Do not redesign the character
- No text
- No watermarks

GPT Image 2.6 Flare

森林英雄在冬日帮助松鼠 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

森林英雄在冬日帮助松鼠 — GPT Image 2.6 Sunburst

更多工作流

更换室内家具

在真实空间中替换家具或装饰,不重建整个场景。只换一个物体,保留相机角度、光线、阴影与周围环境,让结果仍像真实照片。设置:1536x1024,medium。

来源示例22(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1022:

在房间照片中,只将白色椅子替换为木椅。保留相机角度、室内光线、地板阴影、周边物体,其他方面不变。接触阴影和织物纹理写实。

In this room photo, replace ONLY the white chairs with chairs made of wood.
Preserve camera angle, room lighting, floor shadows, and surrounding objects.
Keep all other aspects of the image unchanged.
Photorealistic contact shadows and fabric texture.

输入图:

带白色椅子的原厨房

输出:

GPT Image 2.6 Flare

白椅被木椅替换后的厨房 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

白椅被木椅替换后的厨房 — GPT Image 2.6 Sunburst

设计节日贺卡

描述场景、情感、材质、光线与精确文案。立体弹出式或摄影贺卡要说明纸张层次、纤维、折痕与柔和棚拍光;本例为怀旧泰迪熊场景。设置:1024x1536,medium。

来源示例23(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1023:

创建圣诞贺卡插画:略磨损、带柔软缝补的旧泰迪熊坐在纪念盒里,靠近窗户,窗外飘雪,暗示孩子已长大而回忆仍在。温暖、怀旧、温柔、动人。高级贺卡摄影风格、柔和电影光、真实纹理、浅景深、适度散景灯光、高印刷品质构图。只用原创,不加商标、水印、标志。仅出现指定英文“Merry Christmas — some memories never fade.”,含义为“圣诞快乐——有些记忆永不褪色”。

Create a Christmas holiday card illustration.

Scene:
a cozy Christmas scene with an old teddy bear sitting inside a keepsake box, slightly worn fur, soft stitching repairs, placed near a window with falling snow outside. The scene suggests the child has grown up, but the memories remain.

Mood:
Warm, nostalgic, gentle, emotional.

Style:
Premium holiday card photography, soft cinematic lighting,
realistic textures, shallow depth of field,
tasteful bokeh lights, high print-quality composition.

Constraints:
- Original artwork only
- No trademarks
- No watermarks
- No logos

Include ONLY this card text (verbatim):
"Merry Christmas — some memories never fade."

GPT Image 2.6 Flare

窗边泰迪熊节日贺卡 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

窗边泰迪熊节日贺卡 — GPT Image 2.6 Sunburst

设计收藏商品

用材质、包装和印刷清晰度等产品摄影线索探索周边与包装概念。保持原创、不侵权,比较不同角色或包装变体。设置:1024x1536,medium。

来源示例24(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1024:

创建吸塑包装中的复古玩具螺旋桨飞机收藏模型:圆润机翼、机头旋转螺旋桨、漆边稍磨损、经典童年比例,作为怀旧节日收藏品。灵感来自孩子冬日假期玩的简单飞机,传达温暖、想象和童年惊奇。高级玩具摄影,真实塑料与涂漆金属纹理、棚拍光、浅景深、清晰标签印刷、高端零售陈列。只用原创设计,不加商标、水印、标志;包装仅出现“Christmas Memories Edition”,意为“圣诞回忆版”。

Create a collectible action figure of a vintage-style toy propeller airplane with rounded wings, a front-mounted spinning propeller, slightly worn paint edges, classic childhood proportions, designed as a nostalgic holiday collectible, in blister packaging.

Concept:
A nostalgic holiday collectible inspired by the simple toy airplanes
children used to play with during winter holidays.
Evokes warmth, imagination, and childhood wonder.

Style:
Premium toy photography, realistic plastic and painted metal textures,
studio lighting, shallow depth of field,
sharp label printing, high-end retail presentation.

Constraints:
- Original design only
- No trademarks
- No watermarks
- No logos

Include ONLY this packaging text (verbatim):
"Christmas Memories Edition"

GPT Image 2.6 Flare

节日包装中的收藏玩具飞机 — GPT Image 2.6 Flare

GPT Image 2.6 Sunburst

节日包装中的收藏玩具飞机 — GPT Image 2.6 Sunburst

运行完整示例

使用要测试的2.6模型生成4个标志变体,并将产品提取到透明背景。安装OpenAI SDK:Python使用pip install openai,Ruby使用gem install openai。设置OPENAI_API_KEY,把产品照片保存为input_images/shampoo.webp。

将程序保存为demo.py或demo.rb。测试Flare时运行python demo.py gpt-image-2.6-flare或ruby demo.rb gpt-image-2.6-flare;测试Sunburst时把模型参数换为gpt-image-2.6-sunburst。程序写出4个PNG标志文件和extract-product.png。

查看完整示例

来源示例25(python)

本段复用的中文释义:译释1004、译释1014。

## [中文] 从命令行读取项目可用的模型ID;先生成4个透明PNG标志,再编辑产品图并保存透明抠图。
## [中文] 保留PNG解码字节和alpha通道;model帮助文字表示项目已启用的图像模型ID,Usage提示要求传入MODEL_ID。
import argparse
import base64
from pathlib import Path

from openai import OpenAI

parser = argparse.ArgumentParser()
parser.add_argument("model", help="Image model ID enabled for your project")
model = parser.parse_args().model
client = OpenAI()

prompt = """
Create an original, non-infringing logo for a company called Field & Flour, a local bakery.
The logo should feel warm, simple, and timeless. Use clean, vector-like shapes, a strong silhouette, and balanced negative space.
Favor simplicity over detail so it reads clearly at small and large sizes. Flat design, minimal strokes, no gradients unless essential.
Fully transparent background. Deliver a single centered logo with generous padding, clean alpha edges, and no solid backdrop, scenery, checkerboard, or watermark.
""".strip()
logos = client.images.generate(
    model=model,
    prompt=prompt,
    size="1024x1536",
    quality="medium",
    background="transparent",
    output_format="png",
    n=4,
)
for index, image in enumerate(logos.data, start=1):
    Path(f"logo-generation-{index}.png").write_bytes(base64.b64decode(image.b64_json))

prompt = """
Extract the product from the input image and isolate it on a fully transparent background.
Output: centered product, crisp silhouette, no halos/fringing.
Preserve product geometry and label legibility exactly.
Add only light polishing. Do not add a solid backdrop, checkerboard, scenery, or shadow.
Do not restyle the product; remove the background and preserve clean alpha transparency.
""".strip()
cutout = client.images.edit(
    model=model,
    image=[("shampoo.webp", Path("input_images/shampoo.webp"), "image/webp")],
    prompt=prompt,
    size="1024x1536",
    quality="medium",
    background="transparent",
    output_format="png",
)
Path("extract-product.png").write_bytes(base64.b64decode(cutout.data[0].b64_json))

来源示例26(ruby)

程序中的自然语言译释31:

为本地烘焙店Field & Flour制作原创标志:温暖、简单形状,完全透明背景、干净alpha边缘,不要阴影或棋盘格。

程序中的自然语言译释32:

提取产品并放到完全透明背景,保留几何与标签,边缘干净,不加阴影、不重新设计风格。

程序中的自然语言译释33:

没有返回PNG图像。

## [中文] 从命令行读取项目可用的模型ID;先生成4个透明PNG标志,再编辑产品图并保存透明抠图。
## [中文] 保留PNG解码字节和alpha通道;model帮助文字表示项目已启用的图像模型ID,Usage提示要求传入MODEL_ID。
require "base64"
require "openai"
require "pathname"

model = ARGV.fetch(0) { abort "Usage: ruby #{$PROGRAM_NAME} MODEL_ID" }
client = OpenAI::Client.new

prompt = <<~PROMPT.strip
  Create an original, non-infringing logo for a company called Field & Flour, a local bakery.
  The logo should feel warm, simple, and timeless. Use clean, vector-like shapes, a strong silhouette, and balanced negative space.
  Favor simplicity over detail so it reads clearly at small and large sizes. Flat design, minimal strokes, no gradients unless essential.
  Fully transparent background. Deliver a single centered logo with generous padding, clean alpha edges, and no solid backdrop, scenery, checkerboard, or watermark.
PROMPT
logos = client.images.generate(
  model: model,
  prompt: prompt,
  size: "1024x1536",
  quality: :medium,
  background: :transparent,
  output_format: :png,
  n: 4
)
Array(logos.data).each_with_index do |image, index|
  File.binwrite("logo-generation-#{index + 1}.png", Base64.strict_decode64(image.b64_json || raise("No PNG returned")))
end

prompt = <<~PROMPT.strip
  Extract the product from the input image and isolate it on a fully transparent background.
  Output: centered product, crisp silhouette, no halos/fringing.
  Preserve product geometry and label legibility exactly.
  Add only light polishing. Do not add a solid backdrop, checkerboard, scenery, or shadow.
  Do not restyle the product; remove the background and preserve clean alpha transparency.
PROMPT
cutout = client.images.edit(
  model: model,
  image: OpenAI::FilePart.new(Pathname("input_images/shampoo.webp"), content_type: "image/webp"),
  prompt: prompt,
  size: "1024x1536",
  quality: :medium,
  background: :transparent,
  output_format: :png
)
File.binwrite("extract-product.png", Base64.strict_decode64(Array(cutout.data).fetch(0).b64_json || raise("No PNG returned")))

更多提示与完整工作流见固定版本原始笔记本。

检查结果

  • 每个字是否可读并与要求的文字一致,图解标签与关系是否正确?
  • 人物身份、产品形状、标签和参考细节是否保留?
  • 是否只修改了要求的内容?
  • 需要透明时,解码文件是否确实包含透明像素?

改变提示或模型时,使用代表性输入比较质量、延迟、费用;当前价格见图像生成定价。

GPT Image 2.5提示词指南

选择模型,编写有效提示,并在编辑过程中保留细节。

概述

先明确需要怎样的图像,再描述主体、构图、风格和约束。编辑时,区分要改变与必须保持的内容;一次只调整一项并检查结果。

GPT Image 2.5有两种选择:Flare是针对速度优化的小模型,图像质量与GPT Image 2相当;Sunburst是针对质量优化的基础模型,质量高于GPT Image 2。两者都改善了精确编辑和主体保留能力。API配置与请求示例见图像生成指南。

选择模型

新工作流重速度可先用Flare,质量要求高可先用Sunburst。达到质量要求后,再寻找减少延迟的机会。迁移时,以当前已达到的图像质量为起点;两者都支持生成、编辑和透明背景。

当前工作流 建议首先测试
已验证的GPT Image 2流程已满足质量要求 Flare:检查是否保持可接受质量并降低延迟
复杂场景中GPT Image 2质量不足 Sunburst:先确认能满足质量要求

Sunburst质量达标后,用相同提示和输入测试Flare;只有质量仍可接受且延迟改善时才切换。工作流确实需要Sunburst质量优势时继续使用它。应在自己的负载上测量响应时间与质量;结果受提示、参考图、尺寸和质量设置影响,某项负载的速度提升不代表其他负载也有固定提升。

模型参数

API参数应与提示正文分开设置。

参数 GPT Image 2.5设置
model gpt-image-2.5-flare(小模型)或gpt-image-2.5-sunburst(基础模型)
quality 默认auto,以及low、medium、high、xhigh、max
size auto或自定义分辨率;常见1024x1024、1536x1024、1024x1536、2048x2048、2048x1152、3840x2160、2160x3840
background auto、opaque、transparent

自定义尺寸使用WIDTHxHEIGHT,各边最多3840像素、均为16的倍数,长短边比最多3:1,总像素655360—8294400。超过3686400像素(2560x1440)的输出属于实验性范围。

先按工作流选择模型,再调quality。首次比较时,两个模型都支持的显式质量设置应保持一致,提示、参考图、输出尺寸也保持一致。同名质量不表示不同模型具有相同成像质量或响应时间。

不达标时测试更高质量;达到要求后,再看更低质量是否能维持可接受效果并减少延迟。只有xhigh或max能改善尚未达到的质量要求且符合延迟预算时才使用;更高设置并不保证每个提示更好。

透明素材显式设background="transparent",用PNG或WebP。检查解码图像alpha通道,尤其是头发、玻璃、阴影和物体边缘。output_compression只用于JPEG或WebP,不用于PNG。

迁移已有工作流

  1. 保存基线:收集代表性生产提示与参考图,涵盖难编辑项、精确文字、人脸、产品几何与透明素材;记录当前模型、设置和结果。
  2. 选择首个候选:GPT Image 2已达标时先测Flare延迟;复杂场景不达标时先测Sunburst质量。首次比较保持提示、参考图、尺寸和格式不变。
  3. 检查完整结果:比较指令遵循、身份和产品保留、文字准确性、不应发生的变化及透明度;重复请求测一致性,编辑流程还需测整段序列而非只有单步。
  4. 质量通过后再测试速度:Sunburst达标后,用同样验收要求评估Flare;质量可接受且延迟改善再切换,否则保留Sunburst。
  5. 一次只调一个设置:先比较质量级别再重写提示;测常见与较慢响应、失败、重试,以及每张被接受图像的成本。核实价格,不假设更快就更便宜。
  6. 按工作流逐步切换:候选通过验收后,先迁移少量流量,观察相同指标再扩大;旧模型仍受支持时,保留回退路径。

从GPT Image 1或1.5迁移时,对照后文参考中的参数差异和关闭日期,测试候选支持的设置,不照搬旧参数。GPT Image 2比较时保持既有分辨率和透明背景要求。

连续编辑仍可能改变本想保留的细节,应重申约束并检查每次结果。如果某区域必须像素级完全不变,应把已通过的编辑区域合成回原图,不只依赖提示。

提示词基础

  1. 定义结果:写明主体和用途,如产品照、广告或图解;指定构图、宽高比、位置限制。复杂请求可按场景、主体、细节、约束分段。
  2. 选择易维护的格式:短提示、描述段落、类JSON结构、指令、标签都可表达同一意图;选择便于阅读更新的形式,不依赖特殊语法。
  3. 描述可见细节:说明材质、光线、色彩、媒介。需要写实时明确说“照片级真实”或“真实照片”,并描述取景与纹理。相机参数是外观提示,不保证精确物理仿真。宽幅、电影感、低照、雨景、霓虹场景应写清尺度、氛围和颜色,不只用情绪词。
  4. 说明人物与动作:定义身体取景、相对大小、目光和与物体的互动。例如全身可见且含双脚、低头看打开的书、双手自然握住车把。
  5. 指定准确文字:要求的文案加引号,说明位置和字体;不常见词或品牌名必要时逐字母拼写。要求不加额外文字,再检查拼写与可读性。小字、密集信息、多字体可比较medium与high。
  6. 分清变化与约束:编辑时写“只改变X”,列出身份、几何、布局、光线、标签等不变项,并排除多余文字、标志、水印。精确局部编辑还要限定饱和度、对比度、箭头、相机角度和周围物体。
  7. 给参考图分配角色:按编号说明主体、风格、服装、背景等用途,解释如何组合和移动元素。
  8. 有控制地迭代:把上一轮输出作为下一轮输入,只要求一项改变,重申不变细节。“与之前同风格”可沿用上下文,但偏离时需重申关键限制,比较结果后再加要求。

下面各示例展示不同技巧,提示可作为起点,需根据自己的图像和要求调整。

生成图像

控制风格与光线

通过主体、取景、光线、纹理描述照片。本例指定自然抓拍构图,明确排除过度修图。生成设置:size=1024x1536,quality=medium。

来源示例1(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1001:

创建一张写实自然抓拍照:一位年老水手站在小渔船上。皮肤饱经风霜,可见皱纹、毛孔、日晒纹理,手臂有几处褪色传统水手纹身。他平静地整理渔网,狗坐在旁边甲板上。呈现35毫米胶片摄影质感,平视中近景,50毫米镜头。柔和海岸日光、浅景深、细腻胶片颗粒、自然色彩平衡。真实不摆拍,保留皮肤、磨损材质与日常细节;不美化,不重度修图。

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.

GPT Image 2.5 Flare

修补渔网的水手写实肖像 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

修补渔网的水手写实肖像 — GPT Image 2.5 Sunburst

用图解说明过程

说明流程、受众和需要传达的信息。信息图除外观,还要核对标签及事实关系。生成设置:1024x1536,medium。

来源示例2(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1002:

创建详细信息图,解释类似Jura自动咖啡机的工作与流程:从咖啡豆仓、研磨、称量、水箱、锅炉等环节展开,让人从技术和视觉上理解流程。

Create a detailed Infographic of the functioning and flow of an automatic coffee machine like a Jura.
From bean basket, to grinding, to scale, water tank, boiler, etc.
I'd like to understand technically and visually the flow.

GPT Image 2.5 Flare

自动咖啡机流程图 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

自动咖啡机流程图 — GPT Image 2.5 Sunburst

渲染准确文字

把必要文案放在引号中,说明出现次数、受众和视觉处理,不加入无关要求。生成设置:1024x1536,medium。

来源示例3(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1003:

为名为Thread的潮流年轻街头品牌拍摄一幅时尚广告:朋友们聚在一起,文案为“Yours to Create.”。成片面向年轻街头服饰受众,精致、现代、充满活力且有品位。构图干净、配色有明确方向、姿态自然,具有高级时尚摄影质感。指定英文文案只出现一次,清楚可读并融入版式。不加额外文字、水印或无关标志。文案含义是“由你创造”,图中仍保留指定英文。

Give me a cool in culture ad / fashion shot for a brand called Thread.
It's a hip young street brand. The ad shows a group of friends hanging out together with the tagline "Yours to Create."
Make it feel like a polished campaign image for a youth streetwear audience: stylish, contemporary, energetic, and tasteful.
Use clean composition, strong color direction, natural poses, and premium fashion photography cues.
Render the tagline exactly once, clearly and legibly, integrated into the ad layout.
No extra text, no watermarks, no unrelated logos.

GPT Image 2.5 Flare

Thread街头服饰广告 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

Thread街头服饰广告 — GPT Image 2.5 Sunburst

设计可复用的标志

描述品牌与定义标志的形状,构图清晰并在不同大小下可读。用n请求多个变体。本例设置:1024x1536、medium、transparent背景、png、n=1;下面每行比较两个模型的一个变体。

来源示例4(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1004:

为本地烘焙店Field & Flour创建原创、不侵权的标志。温暖、简洁、经久耐看,使用干净的类矢量形状、鲜明轮廓、平衡留白。简洁优先于细节,大小尺寸都清楚;扁平设计,线条最少,非必要不加渐变。背景完全透明,单个标志居中并留足边距,alpha边缘干净,不要纯色衬底、场景、棋盘格或水印。

Create an original, non-infringing logo for a company called Field & Flour, a local bakery.
The logo should feel warm, simple, and timeless. Use clean, vector-like shapes, a strong silhouette, and balanced negative space.
Favor simplicity over detail so it reads clearly at small and large sizes. Flat design, minimal strokes, no gradients unless essential.
Fully transparent background. Deliver a single centered logo with generous padding, clean alpha edges, and no solid backdrop, scenery, checkerboard, or watermark.

GPT Image 2.5 Flare

烘焙店标志第一变体 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

烘焙店标志第一变体 — GPT Image 2.5 Sunburst

GPT Image 2.5 Flare

烘焙店标志第二变体 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

烘焙店标志第二变体 — GPT Image 2.5 Sunburst

GPT Image 2.5 Flare

烘焙店标志第三变体 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

烘焙店标志第三变体 — GPT Image 2.5 Sunburst

GPT Image 2.5 Flare

烘焙店标志第四变体 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

烘焙店标志第四变体 — GPT Image 2.5 Sunburst

使用历史与现实语境

用地点、日期确立历史背景。模型可推断细节,但服装、舞台布置和环境仍需检查历史准确性。生成设置:1024x1536,medium。

来源示例5(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1005:

创建1969年8月16日纽约州Bethel的真实户外人群场景。照片级写实,服装、舞台布置和环境符合时代。

Create a realistic outdoor crowd scene in Bethel, New York on August 16, 1969.
Photorealistic, period-accurate clothing, staging, and environment.

GPT Image 2.5 Flare

1969年纽约州Bethel人群 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

1969年纽约州Bethel人群 — GPT Image 2.5 Sunburst

把故事转成连环漫画

按每格一个清楚的视觉节拍组织叙事,描述具体并围绕动作,让模型能转为可读、节奏合适的分镜。生成设置:1024x1536,medium。

来源示例6(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1006:

制作竖向4格漫画。第1格:主人从前门离开,窗后的宠物相对玻璃很小,睁大眼、前爪高举贴窗,房屋突然安静。第2格:门咔嗒关上,寂静被打破,宠物缓慢转身看向空房,姿态改变,眼神透出机会。第3格:屋内变了样,宠物像主人般摊在沙发上,旁边有碎屑,阳光像聚光灯穿过房间。第4格:门打开,宠物已端坐门口,警觉而从容,仿佛什么都没发生。

Create a short vertical comic-style reel with 4 panels.
Panel 1: The owner leaves through the front door. The pet is framed in the window behind them, small against the glass, eyes wide, paws pressed high, the house suddenly quiet.
Panel 2: The door clicks shut. Silence breaks. The pet slowly turns toward the empty house, posture shifting, eyes sharp with possibility.
Panel 3: The house transformed. The pet sprawls across the couch like it owns the place, crumbs nearby, sunlight cutting across the room like a spotlight.
Panel 4: The door opens. The pet is seated perfectly by the entrance, alert and composed, as if nothing happened.

GPT Image 2.5 Flare

宠物独自在家的四格漫画 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

宠物独自在家的四格漫画 — GPT Image 2.5 Sunburst

创建界面预览

像描述已存在的产品一样描述界面,强调布局、层级、间距和真实控件,避免概念画语言,使结果像可用的已发布界面。生成设置:1024x1536,medium。

来源示例7(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1007:

创建本地农夫市集的真实移动应用UI样机。显示今日市集、简洁页头、带小图和分类的摊主短列表、小型“今日特价”区域、地点与营业时间。实用易用,白底、自然柔和点缀色、清楚字体、极少装饰,像真实精美的小市集应用。放进iPhone边框。

Create a realistic mobile app UI mockup for a local farmers market.
Show today’s market with a simple header, a short list of vendors with small photos and categories, a small “Today’s specials” section, and basic information for location and hours.
Design it to be practical, and easy to use. White background, subtle natural accent colors, clear typography, and minimal decoration.
It should look like a real, well-designed, beautiful app for a small local market.
Place the UI mockup in an iPhone frame.

GPT Image 2.5 Flare

农夫市集手机应用界面 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

农夫市集手机应用界面 — GPT Image 2.5 Sunburst

创建科学与教学视觉素材

可用于生物、化学、课堂讲解、扁平科学图标、图解与学习素材。像教学设计需求一样定义受众、学习目标、视觉形式、必要标签与科学约束。干净扁平、图标统一、箭头明确、标签可读、留白充分有助于理解。

需要准确性时,明确列出组成部分和不应加入的内容。密集标签、图解或用于幻灯片与课程的素材可使用high。生成设置:1536x1024,high。

来源示例8(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1008:

为高中生创建题为“Cellular Respiration at a Glance”的简单生物图解,标题意为“细胞呼吸一览”。展示细胞内葡萄糖转为能量,包含糖酵解、克雷布斯循环和电子传递链,用箭头连接,标注glucose、pyruvate、ATP、NADH、FADH2、CO2、O2、H2O。像干净课堂讲义或幻灯片,白底、简单图标、清楚标签和易读文字。不要小字、额外装饰或阻碍理解的内容。

Create a simple biology diagram titled "Cellular Respiration at a Glance" for high school students.

Show how glucose turns into energy inside a cell. Include glycolysis, the Krebs cycle, and the electron transport chain.
Use arrows to connect the steps, and label the main molecules: glucose, pyruvate, ATP, NADH, FADH2, CO2, O2, and H2O.
Make it look like a clean classroom handout or slide, with a white background, simple icons, clear labels, and easy-to-read text.

Avoid tiny text, extra decoration, or anything that makes the diagram hard to understand.

GPT Image 2.5 Flare

细胞呼吸课堂图解 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

细胞呼吸课堂图解 — GPT Image 2.5 Sunburst

制作幻灯片、图解与图表

像交付物规格一样描述需求:明确幻灯片、流程图、图表或页面图像,定义画布、层级,提供实际文字和数据,说明视觉语言。要求文字可读、间距精致,不堆装饰,不使用泛化图库照片风格。

把数值和标签直接写入提示;演示文稿类用横版,小字、图例、坐标轴、脚注用high。下方市场数据与引用是虚构设计输入,实际使用前必须替换为已核实数据。生成设置:1536x864,high。

来源示例9(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1009:

制作一页题为“Market Opportunity”的融资演示幻灯片,像获YC支持初创企业的真实A轮融资页面。白底、Inter类现代无衬线字体、简洁利落布局。包含低饱和蓝灰色TAM/SAM/SOM同心圆:TAM为$42B、SAM为$8.7B、SOM为$340M;下方以简洁柱图展示2021至2026年温和增长;小脚注为“AGI Research, 2024”和“Internal analysis”;右下角放公司标志占位。文字高度可读、数据层次清楚、间距精致,具专业初创企业风格。不要剪贴画、图库照片、渐变、阴影、装饰或泛化过度设计。上述数字与引用只为虚构设计输入,标题和指定脚注保留英文。

Create one pitch-deck slide titled **"Market Opportunity"** that feels like a real Series A fundraising slide from a YC-backed startup.

Use a clean white background, modern sans-serif typography like Inter, and a crisp, minimal layout. The slide should include:

* A TAM/SAM/SOM concentric-circle diagram in muted blues and grays
* Specific, believable market sizing numbers:

  * **TAM:** $42B
  * **SAM:** $8.7B
  * **SOM:** $340M
* A clean bar chart below showing market growth from **2021 to 2026**, with a subtle upward trend
* Small footnotes: **"AGI Research, 2024"** and **"Internal analysis"**
* A company logo placeholder in the bottom-right corner

The design should look like it belongs in a deck that actually raised money: highly readable text, clear data hierarchy, polished spacing, and professional startup-style visual language.

Avoid clip art, stock photography, gradients, shadows, decorative elements, or anything that feels generic or overdesigned.

GPT Image 2.5 Flare

采用虚构市场数字的融资幻灯片 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

采用虚构市场数字的融资幻灯片 — GPT Image 2.5 Sunburst

编辑图像

使用client.images.edit传入参考图。需要蒙版的局部编辑见蒙版编辑。

保留布局并翻译文字

使用各模型在流程图解示例中生成的咖啡机图作为输入,要求替换文字且不改设计;检查译文和残留原文。编辑设置:1024x1536,high。

来源示例10(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1010:

把信息图中的文字翻译为西班牙语,图像其他方面完全不变。

Translate the text in the infographic to Spanish. Do not change any other aspect of the image.

GPT Image 2.5 Flare

翻译为西班牙语的咖啡机图 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

翻译为西班牙语的咖啡机图 — GPT Image 2.5 Sunburst

迁移视觉风格

明确参考图提供色板、纹理或视觉媒介,另行描述新主体。使用下方像素画作输入。编辑设置:1024x1536,medium。

来源示例11(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1011:

沿用输入图像的风格,生成一名男子在白色背景上骑摩托车的图像。

Use the same style from the input image and generate a man riding a motorcycle on a white background.

输入图:

作为风格参考的像素游戏画面

示例输出:

GPT Image 2.5 Flare

沿用像素风的摩托车骑手 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

沿用像素风的摩托车骑手 — GPT Image 2.5 Sunburst

保留身份并更换服装

输入人物照和三张服装参考,明确人物哪些部分不变,只允许更换服装。这一方式也适用于产品或物体必须可辨认的编辑。设置:1024x1536,medium。

来源示例12(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1012:

根据提供的服装参考图,为女性换装。脸、五官、肤色、体型、姿态、身份完全不变,准确保留相貌、表情、发型、比例。只换服装,衣物自然贴合既有姿态和身体几何,布料表现真实;光线、阴影、色温匹配原照,融合写实而非粘贴感。不改背景、机位、取景和画质,不加配饰、文字、标志或水印。

Edit the image to dress the woman using the provided clothing images. Do not change her face, facial features, skin tone, body shape, pose, or identity in any way. Preserve her exact likeness, expression, hairstyle, and proportions. Replace only the clothing, fitting the garments naturally to her existing pose and body geometry with realistic fabric behavior. Match lighting, shadows, and color temperature to the original photo so the outfit integrates photorealistically, without looking pasted on. Do not change the background, camera angle, framing, or image quality, and do not add accessories, text, logos, or watermarks.

输入图:

作为身份参考的博物馆女性

服装参考:米色夹克

服装参考:白色背心

服装参考:灰色靴子

输出:

GPT Image 2.5 Flare

女性换上参考服装 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

女性换上参考服装 — GPT Image 2.5 Sunburst

组合参考图

场景照为图1,狗的照片为图2,说明移动哪个元素、放在哪里,以及哪些内容必须不变。设置:1024x1536,medium。

来源示例13(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1013:

把图2的狗放入图1场景,紧挨女性,沿用图1的光线、构图、背景风格,其他内容不变。

Place the dog from the second image into the setting of image 1, right next to the woman, use the same style of lighting, composition and background. Do not change anything else.

输入图:

合成输入1:街景中的女性

合成输入2:女性与狗

输出:

GPT Image 2.5 Flare

狗被放入女性身旁的街景 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

狗被放入女性身旁的街景 — GPT Image 2.5 Sunburst

创建透明背景产品抠图

提示中要求分离主体,API中同时设transparent背景。使用PNG或WebP,保留返回alpha通道,PNG不要设置output_compression。画出的棋盘格不是真透明;后续编辑也需重申保持透明。输入下方产品照,设置1024x1536、medium、transparent、png。

来源示例14(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1014:

从输入图中提取产品,置于完全透明背景。产品居中,轮廓清楚,无光晕和边缘杂色。准确保留几何形状与标签可读性,只做轻微修整,不添加纯色衬底、棋盘格、场景或阴影。不重设产品风格;移除背景并保留干净alpha透明度。

Extract the product from the input image and isolate it on a fully transparent background.
Output: centered product, crisp silhouette, no halos/fringing.
Preserve product geometry and label legibility exactly.
Add only light polishing. Do not add a solid backdrop, checkerboard, scenery, or shadow.
Do not restyle the product; remove the background and preserve clean alpha transparency.

输入图:

洗发水原始产品照

输出:

GPT Image 2.5 Flare

透明背景洗发水产品抠图 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

透明背景洗发水产品抠图 — GPT Image 2.5 Sunburst

把绘画转为写实图像

将草图转成写实概念时,先保留布局与透视,再指定合理材质、光线、环境来增加真实感;明确“不添加新元素或文字”,避免重新演绎。设置:1024x1536,medium。

来源示例15(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1015:

把这幅绘画转为写实图像,准确保留布局、比例和透视。选择符合草图意图的真实材质与光线,不加新元素或文字。

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.

输入图:

河谷线描草图

输出:

GPT Image 2.5 Flare

草图转写实河谷 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

草图转写实河谷 — GPT Image 2.5 Sunburst

移除物体

点名要移除的物体,保留周围所有内容;人物、姿态、光线、构图不变,让修改局限在目标区域。设置:1024x1536,medium。

来源示例16(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1016:

移除男子手中的花,其他内容完全不变。

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

输入图:

戴蓝帽且手持花朵的男子

输出:

GPT Image 2.5 Flare

移除手中花朵后的男子 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

移除手中花朵后的男子 — GPT Image 2.5 Sunburst

将人物放入场景

人物身份不变,指定自然光、可信细节、身体取景、目光和场景互动,列出不变的脸部特征与比例。对gpt-image-2省略input_fidelity,因为输入总以高保真处理。使用博物馆里的女性为输入;设置1024x1536、medium。

来源示例17(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1017:

创建高度写实的动作场景:这名人物逃离一只袭击营地的大型真实棕熊。像真实人物抓拍的照片,而非过度增强或电影海报。她位于画面中央,但不看镜头,穿户外露营服,脸上有泥土、衣物撕裂;明显害怕但专注逃跑,身后熊正在破坏营地。地点为优胜美地国家公园,自然细节可信,时间为黄昏,自然光和真实颜色,朴实、真实、不刻意造型。不使用电影光、戏剧调色或风格化构图。

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.

GPT Image 2.5 Flare

露营地中逃离棕熊的女性 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

露营地中逃离棕熊的女性 — GPT Image 2.5 Sunburst

跨轮次完善图像

从一张输出开始,检查后将它作为下一轮输入;后续修改范围要小,便于判断哪项调整有效。

创建起始图像

使用产品抠图示例的洗发水照片作为公路广告牌场景输入,准确引用标签文字。设置:1024x1536,medium。

来源示例18(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1018:

为洗发水创建日落公路场景中的真实广告牌样机。广告牌英文必须逐字为“Fresh and clean”,不多字符;粗体无衬线、高对比、居中、字距干净。只出现一次且完全可读。无水印、无标志。指定文案意为“清新洁净”,画面仍保留英文。

Create a realistic billboard mockup of the shampoo on a highway scene during sunset.
Billboard text (EXACT, verbatim, no extra characters):
"Fresh and clean"
Typography: bold sans-serif, high contrast, centered, clean kerning.
Ensure text appears once and is perfectly legible.
No watermarks, no logos.

输入图:

洗发水原始产品照

输出:

GPT Image 2.5 Flare

日落洗发水广告牌 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

日落洗发水广告牌 — GPT Image 2.5 Sunburst

改变一个条件

把各模型上一步的广告牌输出作为其下一步编辑输入,用简短后续提示改变天气、保留场景。设置:1024x1536,medium。

来源示例19(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1019:

改成下雪的冬日傍晚。

Make it look like a winter evening with snowfall.

GPT Image 2.5 Flare

雪夜广告牌 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

雪夜广告牌 — GPT Image 2.5 Sunburst

保持角色一致

多插画图书可先创建可复用的角色参考,以便跨场景、姿态、页面保留外观。改变环境和故事时重复角色的关键特征。

确立角色

定义外观、比例、服装和基调。生成设置:1024x1536,medium。

来源示例20(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1020:

创建儿童图画书插画,介绍主角:原创年轻森林侠客,穿简洁绿色连帽短袍、柔软棕靴,带小腰包;表情友善、目光温柔、勇敢温暖,小木弓只用于帮助而非伤害。主题是保护和救助松鼠、鸟、兔等小动物。采用手绘水彩儿童书风格,柔软轮廓、温暖大地色、奇趣友好;比例适合绘本,头稍大、表情丰富。不使用受版权保护的角色,不加文字、水印;简单森林背景突出角色。

Create a children’s book illustration introducing a main character.

Character:
A young, storybook-style hero inspired by a little forest outlaw,
wearing a simple green hooded tunic, soft brown boots, and a small belt pouch.
The character has a kind expression, gentle eyes, and a brave but warm demeanor.
Carries a small wooden bow used only for helping, never harming.

Theme:
The character protects and rescues small forest animals like squirrels, birds, and rabbits.

Style:
Children’s book illustration, hand-painted watercolor look,
soft outlines, warm earthy colors, whimsical and friendly.
Proportions suitable for picture books (slightly oversized head, expressive face).

Constraints:
- Original character (no copyrighted characters)
- No text
- No watermarks
- Plain forest background to clearly showcase the character

GPT Image 2.5 Flare

儿童书森林英雄角色 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

儿童书森林英雄角色 — GPT Image 2.5 Sunburst

延续故事

重复使用各模型生成的角色图,描述新场景并重申外观约束。编辑设置:1024x1536,medium。

来源示例21(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1021:

沿用同一角色续写绘本:冬季风暴后,年轻森林英雄温柔地帮助受惊松鼠离开倒木,跪在旁边安慰它。保持同样绿色连帽短袍、五官、比例、色板与温柔英勇性格。儿童书水彩风格、柔光、雪林环境、温暖安心氛围。不重设计角色,不加文字或水印。

Continue the children’s book story using the same character.

Scene:
The same young forest hero is gently helping a frightened squirrel
out of a fallen tree after a winter storm.
The character kneels beside the squirrel, offering reassurance.

Character Consistency:
- Same green hooded tunic
- Same facial features, proportions, and color palette
- Same gentle, heroic personality

Style:
Children’s book watercolor illustration,
soft lighting, snowy forest environment,
warm and comforting mood.

Constraints:
- Do not redesign the character
- No text
- No watermarks

GPT Image 2.5 Flare

森林英雄在冬日帮助松鼠 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

森林英雄在冬日帮助松鼠 — GPT Image 2.5 Sunburst

更多工作流

更换室内家具

在真实空间中替换家具或装饰,不重建整个场景。只换一个物体,保留相机角度、光线、阴影与周围环境,让结果仍像真实照片。设置:1536x1024,medium。

来源示例22(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1022:

在房间照片中,只将白色椅子替换为木椅。保留相机角度、室内光线、地板阴影、周边物体,其他方面不变。接触阴影和织物纹理写实。

In this room photo, replace ONLY the white chairs with chairs made of wood.
Preserve camera angle, room lighting, floor shadows, and surrounding objects.
Keep all other aspects of the image unchanged.
Photorealistic contact shadows and fabric texture.

输入图:

带白色椅子的原厨房

输出:

GPT Image 2.5 Flare

白椅被木椅替换后的厨房 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

白椅被木椅替换后的厨房 — GPT Image 2.5 Sunburst

设计节日贺卡

描述场景、情感、材质、光线与精确文案。立体弹出式或摄影贺卡要说明纸张层次、纤维、折痕与柔和棚拍光;本例为怀旧泰迪熊场景。设置:1024x1536,medium。

来源示例23(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1023:

创建圣诞贺卡插画:略磨损、带柔软缝补的旧泰迪熊坐在纪念盒里,靠近窗户,窗外飘雪,暗示孩子已长大而回忆仍在。温暖、怀旧、温柔、动人。高级贺卡摄影风格、柔和电影光、真实纹理、浅景深、适度散景灯光、高印刷品质构图。只用原创,不加商标、水印、标志。仅出现指定英文“Merry Christmas — some memories never fade.”,含义为“圣诞快乐——有些记忆永不褪色”。

Create a Christmas holiday card illustration.

Scene:
a cozy Christmas scene with an old teddy bear sitting inside a keepsake box, slightly worn fur, soft stitching repairs, placed near a window with falling snow outside. The scene suggests the child has grown up, but the memories remain.

Mood:
Warm, nostalgic, gentle, emotional.

Style:
Premium holiday card photography, soft cinematic lighting,
realistic textures, shallow depth of field,
tasteful bokeh lights, high print-quality composition.

Constraints:
- Original artwork only
- No trademarks
- No watermarks
- No logos

Include ONLY this card text (verbatim):
"Merry Christmas — some memories never fade."

GPT Image 2.5 Flare

窗边泰迪熊节日贺卡 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

窗边泰迪熊节日贺卡 — GPT Image 2.5 Sunburst

设计收藏商品

用材质、包装和印刷清晰度等产品摄影线索探索周边与包装概念。保持原创、不侵权,比较不同角色或包装变体。设置:1024x1536,medium。

来源示例24(text):以下保留协议载荷、配置、返回示意或语法定义;省略号及片段不代表完整可运行程序。

程序中的自然语言译释1024:

创建吸塑包装中的复古玩具螺旋桨飞机收藏模型:圆润机翼、机头旋转螺旋桨、漆边稍磨损、经典童年比例,作为怀旧节日收藏品。灵感来自孩子冬日假期玩的简单飞机,传达温暖、想象和童年惊奇。高级玩具摄影,真实塑料与涂漆金属纹理、棚拍光、浅景深、清晰标签印刷、高端零售陈列。只用原创设计,不加商标、水印、标志;包装仅出现“Christmas Memories Edition”,意为“圣诞回忆版”。

Create a collectible action figure of a vintage-style toy propeller airplane with rounded wings, a front-mounted spinning propeller, slightly worn paint edges, classic childhood proportions, designed as a nostalgic holiday collectible, in blister packaging.

Concept:
A nostalgic holiday collectible inspired by the simple toy airplanes
children used to play with during winter holidays.
Evokes warmth, imagination, and childhood wonder.

Style:
Premium toy photography, realistic plastic and painted metal textures,
studio lighting, shallow depth of field,
sharp label printing, high-end retail presentation.

Constraints:
- Original design only
- No trademarks
- No watermarks
- No logos

Include ONLY this packaging text (verbatim):
"Christmas Memories Edition"

GPT Image 2.5 Flare

节日包装中的收藏玩具飞机 — GPT Image 2.5 Flare

GPT Image 2.5 Sunburst

节日包装中的收藏玩具飞机 — GPT Image 2.5 Sunburst

运行完整示例

本参考视图的完整示例使用gpt-image-2.5-sunburst;评估时选择项目实际可用的模型及其支持设置。

示例生成4个标志变体,并把产品提取到透明背景。安装OpenAI SDK:Python为pip install openai,Ruby为gem install openai。设置OPENAI_API_KEY,把产品照片保存为input_images/shampoo.webp。实际请求会产生API费用;本地制作阶段未执行请求。

查看完整示例

来源示例25(python)

本段复用的中文释义:译释1004、译释1014。

## [中文] 本参考视图使用gpt-image-2.5-sunburst;生成4个透明标志并提取透明产品图,保存原始PNG字节。
import base64
from pathlib import Path

from openai import OpenAI

client = OpenAI()


prompt = """
Create an original, non-infringing logo for a company called Field & Flour, a local bakery.
The logo should feel warm, simple, and timeless. Use clean, vector-like shapes, a strong silhouette, and balanced negative space.
Favor simplicity over detail so it reads clearly at small and large sizes. Flat design, minimal strokes, no gradients unless essential.
Fully transparent background. Deliver a single centered logo with generous padding, clean alpha edges, and no solid backdrop, scenery, checkerboard, or watermark.
"""

result = client.images.generate(
    model="gpt-image-2.5-sunburst",
    prompt=prompt,
    size="1024x1536",
    quality="medium",
    background="transparent",
    output_format="png",
    n=4,  # Generate 4 versions of the logo
)

## Preserve the returned PNG bytes, including the alpha channel.
for index, item in enumerate(result.data, start=1):
    Path(f"logo-generation-{index}-gpt-image-2.5-sunburst.png").write_bytes(
        base64.b64decode(item.b64_json)
    )

## Extract a product from a reference image.
prompt = """
Extract the product from the input image and isolate it on a fully transparent background.
Output: centered product, crisp silhouette, no halos/fringing.
Preserve product geometry and label legibility exactly.
Add only light polishing. Do not add a solid backdrop, checkerboard, scenery, or shadow.
Do not restyle the product; remove the background and preserve clean alpha transparency.
"""

result = client.images.edit(
    model="gpt-image-2.5-sunburst",
    image=[
        ("shampoo.webp", Path("input_images/shampoo.webp"), "image/webp"),
    ],
    prompt=prompt,
    size="1024x1536",
    quality="medium",
    background="transparent",
    output_format="png",
)

Path("extract-product-gpt-image-2.5-sunburst.png").write_bytes(
    base64.b64decode(result.data[0].b64_json)
)

来源示例26(ruby)

程序中的自然语言译释31:

为本地烘焙店Field & Flour制作原创标志:温暖、简单形状,完全透明背景、干净alpha边缘,不要阴影或棋盘格。

程序中的自然语言译释32:

提取产品并放到完全透明背景,保留几何与标签,边缘干净,不加阴影、不重新设计风格。

程序中的自然语言译释33:

没有返回PNG图像。

## [中文] 本参考视图使用gpt-image-2.5-sunburst;生成4个透明标志并提取透明产品图,保存原始PNG字节。
require "base64"
require "openai"
require "pathname"

client = OpenAI::Client.new
result = client.images.generate(
  model: "gpt-image-2.5-sunburst",
  prompt: "Create an original logo for Field & Flour, a local bakery. Use warm, simple shapes on a fully transparent background, with clean alpha edges and no shadow or checkerboard.",
  size: "1024x1536", quality: :medium, background: :transparent, output_format: :png, n: 4
)
Array(result.data).each_with_index do |item, index|
  File.binwrite("logo-generation-#{index + 1}-gpt-image-2.5-sunburst.png", Base64.strict_decode64(item.b64_json || raise("No PNG returned")))
end
result = client.images.edit(
  model: "gpt-image-2.5-sunburst", image: OpenAI::FilePart.new(Pathname("input_images/shampoo.webp"), content_type: "image/webp"),
  prompt: "Extract the product onto a fully transparent background. Preserve its geometry and label, with clean edges and no shadow or restyling.",
  size: "1024x1536", quality: :medium, background: :transparent, output_format: :png
)
File.binwrite("extract-product-gpt-image-2.5-sunburst.png", Base64.strict_decode64(Array(result.data).fetch(0).b64_json || raise("No PNG returned")))

更多提示与完整工作流见固定版本原始笔记本。

检查结果

  • 必要文字是否准确可读,图解标签与关系是否正确?
  • 人物身份、产品形状、标签和参考细节是否保留?
  • 是否只修改了要求的内容?
  • 需要透明时,文件是否有alpha通道,而不是画出的背景?

改变提示或模型时,使用代表性输入比较质量、延迟、费用;当前价格见图像生成定价。

GPT Image 2参考:维护已有工作流的概述与请求设置

概述

GPT Image 2支持生成、编辑、文字渲染、参考图编辑与灵活尺寸,本参考用于维护既有集成。提示词指南提供构图、文字、参考图和保留细节的共通技巧;插图示例使用Flare与Sunburst,不同模型结果可能不同。迁移时参考模型选择与评估工作流。

模型参数

生成使用client.images.generate,编辑使用client.images.edit;API设置见图像生成指南。

参数 GPT Image 2
model gpt-image-2
quality low、medium、high、auto
size auto或受支持分辨率,见尺寸约束
input_fidelity 省略;图像输入始终以高保真处理
output_format png、jpeg、webp
background 透明输出显式设transparent,使用PNG或WebP
output_compression 仅用于JPEG/WebP,不用于PNG

gpt-image-2透明背景处于预览阶段。原始提示、输入与完整运行流程见GPT Image 2固定版本笔记本。

GPT Image 1.5参考:维护已有工作流的概述与请求设置

概述

已弃用模型。 原文公告安排gpt-image-1.5于2026年12月1日关闭。参见弃用公告,迁移前使用gpt-image-2验证既有流程。

GPT Image 1.5支持生成、编辑、文字渲染、写实图和参考图编辑;本参考用于维护既有集成。共通提示技巧见提示词指南,但需用自己的模型与输入测试,不保证跨模型结果相同。

模型参数

生成和编辑分别使用client.images.generate与client.images.edit,API流程见指南。

参数 GPT Image 1.5
model gpt-image-1.5
quality low、medium、high、auto
size 1024x1024、1024x1536、1536x1024、auto
output_format png、jpeg、webp
output_compression 0—100,仅JPEG/WebP
background 透明时显式设transparent,使用PNG/WebP
input_fidelity low或high;high保留输入细节,quality控制输出生成。迁移到GPT Image 2时省略,因为它总以高保真处理输入

GPT Image 1参考:迁移已有工作流的历史请求设置

概述

已退役模型。 gpt-image-1已于2026年10月23日关闭。请改用gpt-image-2.5-sunburst或gpt-image-2.5-flare;迁移详情见弃用公告。

GPT Image 1曾支持图像生成及参考图、蒙版编辑。本参考用于迁移已有集成;描述场景、保留细节、多轮完善等共通技巧见提示词指南。

模型参数

以下设置描述历史GPT Image 1请求。当前支持的模型、API配置和请求示例见图像生成指南。

参数 GPT Image 1
model gpt-image-1
quality low、medium、high、auto
size 1024x1024、1024x1536、1536x1024、auto
output_format png、jpeg、webp
output_compression 0—100,仅JPEG/WebP
background 透明时显式设transparent,使用PNG/WebP
input_fidelity low或high;high保留输入细节并使用更多图像输入词元,quality控制输出生成。迁移到GPT Image 2时省略input_fidelity
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号