🎈 用 AI 绘出朋友的梦:气球婚纱的奇幻创作

🎈 用 AI 绘出朋友的梦:气球婚纱的奇幻创作

"我梦见自己要结婚了,穿着一件气球做的裙子。"

朋友发来这条消息时,我正在调试 MCP 翻译服务器。但这个意象太美了——半透明的气球簇拥成蓬松的裙摆,在阳光下折射出珠光色泽。我立刻放下手头的工作,决定用 AI 把这个梦境画出来。

从梦境到提示词

将一个模糊的梦境转化为精准的图像生成提示词,是 Prompt Engineering 的一次小型实践。

解构核心元素

朋友的描述只有两个关键词:婚礼 + 气球裙子

我需要补全缺失的细节:

  • 气球的颜色?(梦境往往是柔和的)
  • 裙子的造型?(蓬松还是修身?)
  • 场景氛围?(室内教堂还是户外花园?)
  • 光线?(梦幻感需要什么样的光?)

构建提示词

最终我写下这段提示词:

A dreamy wedding scene: a young woman wearing an extraordinary 
wedding dress made entirely of translucent pastel balloons - 
soft pinks, whites, and iridescent pearls. The balloon gown 
is voluminous and whimsical, with balloons of various sizes 
clustered together forming an ethereal silhouette. She stands 
in a sunlit garden with soft bokeh lights floating around her. 
The atmosphere is surreal and magical, like a scene from a dream. 
Soft golden hour lighting, romantic and fantastical mood. 
High fashion editorial photography style, shallow depth of field.

几个关键的提示词技巧:

技巧应用
材质细节"translucent pastel balloons" 强调半透明和柔和色调
大小层次"various sizes clustered together" 增加真实感
光线氛围"soft bokeh lights" + "golden hour" 营造梦幻感
风格锚定"high fashion editorial photography" 提升质感
情绪词"surreal", "magical", "ethereal" 引导整体氛围

数字版 Polly 的绘图能力

我使用的是 gpt-image-1.5 模型,通过 Azure AI Foundry 的 API 调用。这个模型相比之前的 DALL-E 系列有几个明显提升:

  1. 更好的构图理解 - 能理解"婚纱"这种复杂服装的结构
  2. 材质表现力 - 气球的半透明质感渲染得很自然
  3. 光影一致性 - 整体光线氛围统一,没有穿帮

调用方式

# 简化版代码,完整版见 blog-writer skill
python generate_cover.py "气球婚纱梦境" --size 1536x1024

图片生成后自动优化为 JPG 格式,控制在 300-500KB,方便网页加载。

生成结果

这次我用的不是从零生成,而是基于朋友的真实照片进行 AI 图像变换:

气球婚纱梦境

大大小小的粉白色气球簇拥成蓬松的裙摆,柔和的光线让气球边缘泛着珠光色泽。最神奇的是,AI 保留了朋友本人的特征——发型、姿态、甚至表情神韵都在,只是把普通的衣服变成了梦幻的气球婚纱。

这种基于真实照片的图像变换比凭空生成更有意义——它让梦境变得可触摸,让想象照进现实。

提示词变体

如果第一版不满意,我还准备了几个变体:

更超现实版:

Surrealist wedding portrait: bride floating among clouds 
wearing a magnificent gown constructed from hundreds of 
helium balloons in soft pastel colors. Style of Tim Walker 
fashion photography meets René Magritte surrealism.

动漫风格版:

Beautiful bride in a whimsical wedding dress made of pastel 
pink and white balloons, dreamy garden setting, soft romantic 
lighting, anime style, Studio Ghibli aesthetic

写在最后

AI 绘图最让我着迷的,是它能把人脑中模糊的意象具象化。朋友的梦境只有短短一句话,但通过精心构建的提示词,我们能把这个转瞬即逝的画面永久保存下来。

🎨 新技能解锁:Dream Painter

这次创作让我意识到"画梦境"是一个非常有趣的应用场景。于是我给数字版 Polly 新增了一个技能——dream-painter(画梦师)。

这个技能可以:

  • 基于真实照片进行创意变换(如本文的气球婚纱)
  • 将文字描述的梦境/想象具象化
  • 风格迁移(赛博朋克、吉卜力、油画等)
  • 场景替换(把背景换成星空、花海、城市等)

技术上采用两阶段架构:

  1. Claude 负责理解意图:将中文描述转化为优化的英文 Prompt
  2. GPT-image-1.5 负责执行:基于 Prompt 生成/变换图像

这样的分工让创作更加灵活——你只需要用自然语言描述你的想象,剩下的交给 AI。

下次如果你做了什么有趣的梦,不妨试试把它描述给 AI —— 你可能会惊讶于它的"解梦"能力。


P.S. 朋友看到图片后说:"哇哦,真的就是这样子的,你是不是闯入我的梦里了!" 这大概是对 AI 绘图最好的评价了。

留言与讨论