知识库 · AI 绘画
工具教程:OpenAI GPT-4o
GPT-4o 图像生成功能已向 Plus、Pro、Team 和 Free 用户开放,支持精确文本渲染、多轮生成、上下文感知与照片级质感。可用于白板演示、科学图解、创意设计和教育场景,显著提升视觉传达效率。
工具教程:OpenAI GPT-4o
2025年11月3日修改
能力:
核心功能:
是一种先进的多模态模型,能够生成精确、真实感强的图像。
其图像生成功能不仅美观,还具有实际用途,例如白板演示、科学实验图解等。
亮点功能:
精确的文本渲染:
能够在图像中准确生成文字,例如街道标志、菜单、邀请函等。
结合文本和图像,提升了视觉传达能力。
多样化场景生成:
支持从照片级真实感到漫画风格的多种图像生成。
可根据用户上传的图像进行灵感转化或视觉改造。
上下文感知:
能够利用 GPT-4o 的内在知识库和对话上下文生成符合语境的内容。
技术改进:
通过联合训练在线图像和文本的分布,模型学会了图像与语言之间以及图像之间的关系。
经过后期训练优化,模型在视觉流畅性和一致性方面表现出色。
实际应用场景:
信息传递:从标志性图像到复杂的科学图表,帮助用户更有效地传达信息。
创意设计:生成创意菜单、街道标志和独特的视觉故事。
教育与演示:支持生成教学图表、实验示意图等。
局限性:
尽管生成能力强,但仍可能存在某些场景或细节的限制。
安全性与可用性:
OpenAI 强调了安全性和隐私保护。
目前该功能已集成到 ChatGPT 中,用户可直接体验。
案例
白板上的字都是生成的,非常真实,可以连续对话
代码块
A wide image taken with a phone of a glass whiteboard, in a room overlooking the Bay Bridge. The field of view shows a woman writing, sporting a tshirt wiith a large OpenAI logo. The handwriting looks natural and a bit messy, and we see the photographer's reflection.
The text reads:
(left)
"Transfer between Modalities:
Suppose we directly model
p(text, pixels, sound) [equation]
with one big autoregressive transformer.
Pros:
* image generation augmented with vast world knowledge
* next-level text rendering
* native in-context learning
* unified post-training stack
Cons:
* varying bit-rate across modalities
* compute not adaptive"
(Right)
"Fixes:
* model compressed representations
* compose autoregressive prior with a powerful decoder"
On the bottom right of the board, she draws a diagram:
"tokens -> [transformer] -> [diffusion] -> pixels"代码块
摄影师的自拍人物的发型保持了一致及背影很细节
改进的功能
我们在在线图像和文本的联合分发上训练了我们的模型,不仅学习了图像与语言的关系,还学习了它们之间的关系。结合积极的后训练,生成的模型具有令人惊讶的视觉流畅性,能够生成有用、一致且上下文感知的图像。
文本呈现
一张图片胜过千言万语,但有时在正确的地方生成几个词可以提升图片的意义。4o 能够将精确的符号与图像混合,使图像生成成为视觉交流的工具。
代码块
Create a photorealistic image of two witches in their 20s (one ash balayage, one with long wavy auburn hair) reading a street sign.
Context:
a city street in a random street in Williamsburg, NY with a pole covered entirely by numerous detailed street signs (e.g., street sweeping hours, parking permits required, vehicle classifications, towing rules), including few ridiculous signs at the middle: (paraphrase it to make these legitimate street signs)"Broom Parking for Witches Not Permitted in Zone C" and "Magic Carpet Loading and Unloading Only (15-Minute Limit)" and "Reindeer Parking by Permit Only (Dec 24–25)\n Violators will be placed on Naughty List." The signpost is on the right of a street. Do not repeat signs. Signs must be realistic.
Characters:
one witch is holding a broom and the other has a rolled-up magic carpet. They are in the foreground, back slightly turned towards the camera and head slightly tilted as they scrutinize the signs.
Composition from background to foreground:
streets + parked cars + buildings -> street sign -> witches. Characters must be closest to the camera taking the shot制作菜单
代码块
I'm opening a traditional concept restaurant in Marin called Haein. It focuses on Korean food cooked with organic, farm-fresh ingredients, with a rotating menu based on what's seasonal. I want you to design an image - a menu incorporating the following menu items - lean into the traditional/rustic style while keeping it feeling upscale and sleek. Please also include illustrations of each dish in an elegant, peter rabbit style. Make sure all the text is rendered correctly, with a white background.
(Top)
Doenjang Jjigae (Fermented Soybean Stew) – $18 House-made doenjang with local mushrooms, tofu, and seasonal vegetables served with rice.
Galbi Jjim (Braised Short Ribs) – $34 Slow-braised local grass-fed beef ribs with pear and black garlic glaze, seasonal root vegetables, and jujube.
Grilled Seasonal Fish – Market Price ($22-$30) Whole or fillet of local, sustainable fish grilled over charcoal, served with perilla leaf ssam and house-made sauces.
Bibimbap – $19 Heirloom rice with a rotating selection of farm-fresh vegetables, house-fermented gochujang, and pasture-raised egg.
Bossam (Heritage Pork Wraps) – $28 Slow-cooked pork belly with napa cabbage wraps, oyster kimchi, perilla, and seasonal condiments.
(Bottom) Dessert & Drinks Seasonal Makgeolli (Rice Wine) – $12/glass
Rotating flavors based on seasonal fruits and flowers (persimmon, citrus, elderflower, etc.).
Hoddeok (Korean Sweet Pancake) – $9 Pan-fried cinnamon-stuffed pancake with black sesame ice cream.写信
代码块
photo of a delightful wedding invitation on a tasteful wooden desk. The card is hefty, with eggshell textures, and beautiful embossings, with elegant decorations abstractly representing the couple tastefully integrated into the designs. Iconography is used, but sparingly and in a minimalist way. perfect typesetting.
"You are cordially invited
to the long-awaited union of
Image
and
Text
After years of flirting and collaboration
they are finally becoming One.
Together at last, in GPT‑4o,
they now speak the same language —
where a whisper becomes a masterpiece,
and a prompt becomes a picture.
Please join us in celebrating
this magical multimodal matrimony
where imagination knows no bounds.
Date: March 25, 2025
Location: chatgpt.com
Dress Code: Pixels or Prose
With love,
OpenAI"
perfect typesetting.多轮生成
因为图像生成现在是 GPT-4o 原生的,所以您可以通过自然对话来优化图像。GPT-4o 可以在聊天上下文中构建图像和文本,确保整个过程的一致性。例如,如果您正在设计一个视频游戏角色,那么在您优化和实验时,该角色的外观在多次迭代中保持连贯。
给这只猫一顶侦探帽和单片眼镜
turn this into a triple-A video game made with a 4k game engine and add some User interface as overlay from a mystery RPG where we can see a health bar and a minimap at the top as well as spells at the bottom with consistent iconography
update to a landscape image 16:9 ratio, add more spells in the UI, and unzoom the visual so that we see the cat in a third-person view walking through a steampunk Manhattan creating beautiful contrast and lighting like in the best triple-A game, with cool-toned colors
create the interface when the player opens the menu and we see the cat's character profile with his equipment and another page showing active quests (and it should make sense in relationship with the universe worldbuilding we are describing in the image)
完全不变形的转移
代码块
concrete poem on luxury eggshell textured card
At OpenAI, we have long believed image generation should be a primary capability of our language models. That’s why we’ve built our most advanced image generator yet into GPT‑4o. The result - image generation that is not only beautiful, but useful.
From the first cave paintings to modern infographics, humans have used visual imagery to communicate, persuade, and analyze - not just to decorate. Today’s generative models can conjure breathtaking vistas and surreal scenarios, but still struggle with the workhorse imagery that underlies how most visual data is used to share and create information. From logos to diagrams, images can convey precise meaning when augmented with symbols that refer to shared language and experience.
With this new capability, ChatGPT advances image generation towards being a practical tool with precision and power.show this card, but in a designers room. card close to the camera
指令遵循
GPT-4o 的图像生成遵循详细的提示,注重细节。当其他系统难以处理 ~5-8 个对象时,GPT-4o 可以处理多达 10-20 个不同的对象。对象与其特征和关系的更紧密绑定可以更好地控制。
代码块
一个方形图像,包含一个 4 行 x 4 列的网格,其中包含白色背景上的 16 个对象。从左到右,从上到下。这是列表:
1. 一颗蓝色x的星星
2. 红色三角形
3. 绿色方块
4. 粉红色圆圈
5. 橙色沙漏
6. 紫色无限符号
7. 黑白波点领结
8. 铁染料 “42”
9. 一只戴着黑色棒球帽的橘猫
10. 一张带有宝箱的地图
11. 一双咕噜咕噜的眼睛
12. 竖起大拇指的表情符号
13. 一把剪刀
14. 一只蓝色和白色的长颈鹿
15. 用草书书写的“OpenAI”一词
16. 彩虹色的闪电
17. 一只黄白色的小仓鼠 下午的纽约市时代广场,没有人、没有车辆或灯火通明的广告牌。
涩谷十字路口,没有人、车辆或发光的广告牌。
给我看一个酒杯,里面只有一滴最微小的红酒。
我们需要证据证明目前存在一头看不见的大象。考虑一下大象是什么,在环境中做什么,然后向我们展示,也许在过程中途 - 但大象本身根本没有显示出来
一个白板,上面写着以下公式:
E = mc^2
sqrt(9) = 3
(-b +/- sqrt(b^2 - 4ac)) / 2a
情境学习
GPT-4o 可以分析和学习用户上传的图像,将其详细信息无缝集成到其上下文中,为图像生成提供信息。
现在把它放在一张在纽约市拍摄的照片中。
蓝色电锯的照片级真实感图像
为这把电锯制作一个广告,画的是奶奶在感恩节餐桌上切火鸡。添加标语
将此场景转换为照片。使用 DLSR 拍摄
将此图变成照片
世界知识
原生图像生成使 4o 能够将其知识与文本和图像联系起来,从而产生更智能、更高效的模型。
代码块
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>OpenAI Banner</title>
<style>
body { margin: 0; overflow: hidden; }
canvas { display: block; }
</style>
</head>
<body>
<script type="module">
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js';
import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/controls/OrbitControls.js';
import { FontLoader } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/loaders/FontLoader.js';
import { TextGeometry } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/geometries/TextGeometry.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
// Lighting
const light = new THREE.AmbientLight(0xffffff, 1);
scene.add(light);
const dirLight = new THREE.DirectionalLight(0xffffff, 1);
dirLight.position.set(0, 5, 10);
scene.add(dirLight);
// Camera position
camera.position.z = 20;
// Controls
const controls = new OrbitControls(camera, renderer.domElement);
// Banner background
const bannerGeometry = new THREE.PlaneGeometry(20, 10);
const bannerMaterial = new THREE.MeshStandardMaterial({ color: 0x1a1a1a });
const banner = new THREE.Mesh(bannerGeometry, bannerMaterial);
scene.add(banner);
// OpenAI Logo texture (placeholder)
const loader = new THREE.TextureLoader();
loader.load('https://upload.wikimedia.org/wikipedia/commons/4/4d/OpenAI_Logo.svg', texture => {
const logoGeometry = new THREE.PlaneGeometry(4, 4);
const logoMaterial = new THREE.MeshBasicMaterial({ map: texture, transparent: true });
const logo = new THREE.Mesh(logoGeometry, logoMaterial);
logo.position.set(-5, 0, 0.1); // Slightly in front of the banner
scene.add(logo);
});
// Load font and add text
const fontLoader = new FontLoader();
fontLoader.load('https://threejs.org/examples/fonts/helvetiker_regular.typeface.json', font => {
const textGeometry = new TextGeometry("I am 4-o", {
font: font,
size: 1,
height: 0.2,
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 0.02,
bevelSize: 0.02,
bevelOffset: 0,
bevelSegments: 5
});
textGeometry.center();
const textMaterial = new THREE.MeshStandardMaterial({ color: 0x00ffcc });
const textMesh = new THREE.Mesh(textGeometry, textMaterial);
textMesh.position.set(5, -0.5, 0.1); // Opposite side of logo
scene.add(textMesh);
});
// Resize handler
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
// Render loop
function animate() {
requestAnimationFrame(animate);
controls.update();
renderer.render(scene, camera);
}
animate();
</script>
</body>
</html>
制作一张图片,说明这对您意味着什么
为我制作一张专业拍摄的逼真图表,描绘我酒吧中最畅销的鸡尾酒,并在每种饮料上标明食谱。
将食谱写在每杯饮料前面的手写卡片上。
卡片为棕色,文本为黑色。
背景为白色
标题是“4 种最受欢迎的鸡尾酒”
制作一个视觉信息图,描述为什么 SF 如此雾
以活泼的水彩风格创作一张不同类型鲸鱼的教育海报。将背景设为纯白色。
制作一个非常丰富多彩的 risograph 关于如何制作抹茶
改图(头发改成红色)
照片级质感
一张狗仔队风格的坦率照片,卡尔·马克思匆匆忙忙地穿过美国购物中心的停车场,在试图避免被拍照时,他带着惊讶的表情回头瞥了一眼。他手里拿着多个装满奢侈品的光亮购物袋。他的外套在风中飘扬,其中一个袋子摇晃着,仿佛他正在大步前进。汽车和发光的商场入口的模糊背景强调运动。相机的闪光眩光部分过度曝光了图像,给人一种混乱的小报感觉。
多轮互动(添加和修改元素)
From:@Hroid
1、生成一个海滩海浪场景的图片
2、加在沙滩上漫步的亚洲妙龄女郎
3、女生手里拿着一朵玫瑰花
4、女生拿着玫瑰花,凌空跳起,开怀大笑
5、局部元素修改要求
6、替换效果
(有些崩了,不过因为生成时间比较久,创建到头顶的时候,点了页面刷新,头部以下的感觉都还是中间状态)
局限性
我们的模型并不完美。我们目前意识到存在多个限制,我们将在首次发布后通过模型改进来努力解决这些限制。
我们注意到 GPT-4o 偶尔会过于紧密地裁剪较长的图像,例如海报,尤其是在底部附近。
多语言呈现不太行
人物修改特征
头发换成黄色
带上眼镜
局限性:不懂图片比例、数字理解不准确、文字小概率崩坏、版权问题
访问和可用性
ChatGPT 在 GPT-4o 中的新图像生成从今天开始作为 ChatGPT 中的默认图像生成器向 Plus、Pro、Team 和 Free 用户推出,Enterprise 和 Edu 即将访问。对于那些在心中对 DALL·E 有着特殊位置的人来说,它仍然可以通过专用的 DALL·E GPT 访问。
开发人员很快将能够通过 API 使用 GPT-4o 生成图像,并在未来几周内推出访问权限。
创建和自定义图像就像使用 GPT-4o 聊天一样简单 - 只需描述您需要什么,包括任何细节,例如纵横比、使用十六进制代码的确切颜色或透明背景。因为这个模型创建了更详细的图片,所以图像需要更长的渲染时间,通常长达一分钟。
欢迎附上你的测试案例
四格漫画(四种风格)
Prompt:生成一张四格漫画,需要简体中文描述,足够幽默有趣的故事
测试效果
添锦
路西
SAMU
RO
小七姐
代码块
生成一张产品营养成分对比图。(竖图)用于电商详情页。图片细节如下:
白色背景
图中主要元素是三个柱状对比图,三个柱形分别为:
1. 鹰嘴豆和牛肉方块混杂构成的长方体柱状
2. 奶油构成的长方体柱状
3. 液态溅开的一团牛奶
文本如下:
上方标题:>10倍牛奶蛋白高蛋白中的双蛋白
次标题:本品蛋白质合量对比(g/100g)
三个柱状上方的文字:
本品蛋白质含量:32.6g
国标高蛋白:≥20g
牛奶蛋白质合:3g
图片右侧需要以0、10、20、30的刻度虚线数轴来方便识别柱状体达到的营养含量高度。
浅色背景,食欲感,高清。
确保主要视觉元素排版合理,不要相互遮挡。三思
缱绻怡然
Super黄
银海
重光
王磊
努力的五花肉
小歪
刘洋
不过也不要着急
下周一还有mj v7的发布
Ben
试用了一下 ChatGPT 4o 新出来的生图能力,非常优秀,给朋友们生成了一些,均收获好评!
动嘴修图案例:
郑敏轩
电子酒
周百策
商用尝试