实战案例:用AI提示词生成机械键盘电商主图,从键帽质感到5版迭代
发布时间:2026年11月17日 08:23:00以一款客制化机械键盘的详情页主图为真实场景,演示如何用 Flux 处理「PBT 键帽纹理 + 铝合金外壳 + 背光透字」的三层材质,重点解决键帽字符的可读性、背光的溢光控制、45 度俯拍视角下的透视一致性,以及产品与背景的分离。
背景
需求来自一个客制化键盘品牌:要做一张详情页首屏主图,卖点是「PBT 键帽 + 铝合金外壳 + 白色背光」。
三个卖点对应三个材质难点:
- PBT 键帽:表面有细微颗粒感,字符是双色注塑,边缘干净;
- 铝合金外壳:阳极氧化,哑光,有细微拉丝;
- 背光:字符透光,但不能在键帽表面溢出一圈光晕。
工具用 Flux。
第一步:键帽纹理要拆成「颗粒 + 高度 + 字符」
只说 PBT keycaps,模型给的是光滑塑料。必须拆成三层:
| 层 | 描述 | 提示词 |
|---|---|---|
| 表面 | 细密颗粒 | fine matte grain, like 200-grit texture |
| 字符 | 双色注塑、齐平 | legends are flush with the surface, not raised |
| 边缘 | 键帽倒角 | slightly chamfered top edges |
PBT keycaps with a fine matte grain, like 200-grit texture, visible
only where light grazes the surface. Legends are double-shot and flush
with the keycap top, perfectly crisp edges, no paint bleed.
Top edges slightly chamfered.
No glossy plastic, no finger smudges, no worn shine.
踩坑一:V1 写 mechanical keyboard close-up,键帽像廉价 ABS,表面反光且字符糊。加上颗粒度、齐平、倒角三个描述后,PBT 的「涩感」才出来。
第二步:背光要「只从字符出来」
背光是最容易翻车的地方。AI 会把它画成整个键盘在发光。
Backlight emits only through the legends: the characters glow a clean
neutral white, the surrounding keycap surface stays matte and unlit.
Glow is contained within each character stroke, no bloom, no halo,
no light spill onto neighboring keys.
三个约束缺一不可:
- only through the legends:限定发光通道;
- no bloom:防光晕;
- no light spill onto neighboring keys:防串光。
踩坑二:V2 的键盘像一块灯板,所有键帽边缘都在发白。加上 no light spill 与 no halo 后,才变成「字在亮、键帽不亮」。
第三步:45 度俯拍的透视一致性
电商主图统一用 45 度俯拍。这个角度最容易出问题:键帽排列会出现透视错位,尤其是边缘的键。
Camera: 45-degree top-down angle, slight tilt, shot with a 50mm lens
at f/8 so the whole keyboard is in focus. Keys must be arranged in
perfectly parallel rows and columns, with consistent row height
behind the front row. No warped grid, no misaligned rows.
关键判断:给光圈值(f/8)和焦段(50mm)比给「清晰」有效。
踩坑三:V3 用了浅景深,后排键帽全糊,而且行列出现弯曲。改 f/8 + no warped grid 之后,网格才直。
第四步:外壳与背景
Aluminum case in dark grey anodized finish, matte with a faint
brushed texture on the side wall. Background: seamless dark gradient
from charcoal (#22252A) to near black, soft vignette, no props, no text.
Lighting: large softbox upper left creating a gentle highlight along
the case edge, plus a subtle rim light from behind.
要点:
- 阳极氧化 = 哑光 + 细拉丝,两者必须同时写,只写 matte 会变成塑料;
- 背景用炭灰渐变,比纯黑更能突出深色外壳;
- 光位固定(左上主光 + 背后轮廓光),保持与详情页其他图一致。
第五步:五版迭代
| 版本 | 改动 | 结果 |
|---|---|---|
| V1 | 只写机械键盘特写 | 塑料感,字符糊 |
| V2 | 加 PBT 三层描述 | 质感对了,整块发光 |
| V3 | 限定背光通道 | 背光正确,透视弯曲 |
| V4 | 加 45 度 + f/8 约束 | 网格直,背景偏亮 |
| V5 | 背景改炭灰渐变 + 加轮廓光 | 最终版 |
V5 还做了一处微调:只让主键区(WASD 附近)的字符亮,其余键位背光调暗。这样画面有视觉落点,不至于整张图都在发光。
成果与复盘
最终主图用于详情页首屏,另裁出 1:1 与 16:9 两版用于直通车与站外投放。
复盘最有用的一条:键盘这类「重复结构 + 精细材质」的产品,提示词必须同时管住两件事——单体的材质细节,和整体的几何秩序。只管前者,图会漂亮但不可用;只管后者,图规整但没有质感。
成本拆解:
| 项目 | 支出 |
|---|---|
| Flux 生成(约 70 次抽图) | 约 52 元 |
| 后期(字符校正、透视微调) | 约 260 元 |
| 合计 | 约 312 元 |
6 条可复用清单
- PBT 拆成颗粒 + 齐平 + 倒角:三层都在,才有「涩感」。
- 背光限定通道:only through the legends + no light spill。
- 给光圈和焦段:f/8、50mm 比「清晰」有效。
- 重复结构要防变形:no warped grid、no misaligned rows。
- 阳极氧化 = 哑光 + 细拉丝,两个词必须一起出现。
- 只让局部发光:主键区亮、其余暗,画面才有落点。