我不想要一排早就摆在货架上的手机壳。我想要的店,是从顾客手里已有的照片开始的:他们的猫、他们的狗,或者随手画的一个点子。于是我用 Vibe Coding 做了一个小小的 Shopify 应用。顾客上传一张照片,应用调用 Orauria 把照片变成详细的提示词,改写成可印刷的手机壳图案,生成文件,再放到 iPhone 手机壳上预览。顾客付了 24.99 美元,文件就交给按需印刷。
这篇实操用一张真实照片——一只眼睛圆溜溜的奶油色小猫,抬起一只爪子、张嘴喵喵叫——代替顾客上传的图片;在一张公开的猫咪拼贴图钉上真实运行 Image to prompt 来演示这一步;再用一个来自 Orauria Studio 的真实文件——任务 #225830817——它以小猫照片为参考生成。围绕它的店铺 PawCase Studio,是我接下来要搭建的应用的虚构演示。
流程一览
- 安装 Chrome 扩展程序。
- 从一张你有权使用的照片开始——顾客自家的宠物,正是这家店的意义所在。
- 运行 Image to prompt 获得详细的设计说明(应用会对上传的照片调用这一步;下面我们用一张公开图钉来演示)。
- 为这只宠物改写一份 9:16 手机壳设计说明,把照片作为参考附上,在 Orauria Studio 里生成。
- 用 Vibe Coding 做一个小型 Shopify 应用:上传 → Image to prompt API → 改写后的说明 → Orauria MCP(
generate_image,然后get_task)→ 手机壳预览 → 按需印刷。 - 令牌只放在服务器端。一周晚间的合计数字只是演算示例,不是承诺。
第一步:先安装扩展程序
Image to prompt 需要先安装 Chrome 扩展程序 AI Assistant Copilot – Orauria 才能使用。在找参考图、或对上传照片运行之前,先到 Chrome 网上应用店安装好。装好后,右键点击照片就能提取提示词。
顾客的照片
对手机壳店有用的照片,本身已经在做商品该做的事:一眼认得出的脸,在十厘米左右的壳背上依然清楚的表情,以及一个能变成角色、而不只是裁切图的姿势。这只奶油色小猫正好符合。它仰面躺着,乌黑的大眼睛看着镜头,小小的粉鼻子,张嘴开心地喵着,一只灰色爪尖的小爪子往上伸——正是顾客会从手机里翻出来的那种照片。
这张照片是上传图,不是拿来翻印到手机壳上的文件。应用要做的,是以照片为参考、而不是作为印刷文件,从中创作一幅新的插画。

Image to prompt 怎么用——应用调用的那一步
在真正的应用里,上传之后的第一个调用就是 Orauria 的 Image to prompt API。为了展示这一步实际的样子,我们在一张公开的猫咪拼贴图钉上运行了 Chrome 扩展:奶白色圆脸猫咪、惺忪的绿眼睛、草地贴纸剪影,以及鼠尾草绿和象牙白的棋盘格。请注明图钉来源。它是风格和题材的老师,不是你可以转卖的商品,也不是上面那张顾客照片。

右键点击图片,打开 AI Assistant Copilot – Orauria,选择 Image to prompt。扩展程序会分析图片,写出一份真正能复用的设计说明。


这次运行花了 0.06 积分。返回的说明是这个工具所写文档的一个例子——一段详细的视觉描述,而不是翻印图钉的许可,也不是我们后来给顾客小猫用的说明。以下是提取出的完整提示词(这是工具的真实输出,保留英文原文):
Create a vertical 9:16 surreal sticker collage featuring multiple cream-white, round-faced short-haired cats with dense pale fur, rounded cheeks, narrow vivid green eyes, pink-brown noses, fine whiskers, and sleepy mildly grumpy expressions. Place one very large frontal cat in the center as the dominant focal point, then arrange several similar cat portraits around it at varied scales, overlapping and cropped by every edge of the frame. Surround every cat with a thick, uneven hand-cut white outline. Include vivid bright green fibrous grass texture inside the irregular cutout regions and around portions of the cats, as though the portraits are pasted over grassy sticker shapes. Fill the background with a warped retro checkerboard of alternating sage-green and warm ivory squares, the grid bending in soft organic waves. Use soft diffuse frontal lighting, realistic fur and facial texture, crisp graphic layering, gentle shadows, straight-on close portrait framing, playful uncanny editorial collage design, clean print-like finish, no text, no logos, no humans, no extra species.

为顾客的小猫改写说明
手机壳店不该卖上传的照片,而该卖由照片启发的新作品——同一只奶油色小猫,重新画成一幅 9:16 满版插画,让印刷厂能印在壳背上。在应用里,这一步改写会从 Image to prompt 的说明开始。在这篇实操中,我直接根据顾客照片写了手机壳说明,保留姿势和脸部特征(大眼睛、张开的嘴、抬起的灰色爪尖),要求柔和的粉彩可爱插画风,而不是 3D 手机样机,文件上不出现名字、文字或标志。
以下是 Studio 中使用的完整提示词(保留英文原文):
Create a vertical 9:16 adorable phone-case artwork of the SAME kind of kitten as in the reference photo: a fluffy cream-white British-shorthair kitten with huge round shiny dark eyes, a tiny pink nose, soft chubby cheeks, mouth wide open in a happy little meow showing a pink tongue, one small grey-tipped paw raised toward the viewer as if waving, lying on a soft beige cushion. Render it in a soft pastel kawaii cute 3D illustrated style with silky fluffy fur, gentle glossy highlights and a sweet, heart-melting expression. Surround it with small pastel pink hearts, tiny paw prints and little yellow stars on a soft cream and pastel pink background, balanced full-bleed vertical composition for printable smartphone-case art, not a phone mockup. No text, no letters, no logos, no watermark.
在 Orauria Studio 里生成手机壳图案
我把这份说明粘贴进 Orauria Studio,附上顾客照片作为参考,设置为 Image、Single、TT Image 2.5、比例 9:16 Portrait,分辨率和质量选 Adaptive。输入框显示这次生成大约 0.0208 积分。

返回的文件就是同一只小猫变成的手机壳图案:蓬松的奶油色毛、张嘴喵叫、抬起的爪子、粉彩爱心、爪印,还有浅粉色靠垫上的黄色星星。任务 #225830817。这就是可以印刷的壳背。


做第一个样品,浏览器走到这里就够了。但一家每单都会收到新照片的店,需要第二扇门:一个在照片上传时就能跑同样流程、不用再打开 Studio 的应用。
应用架构
Shopify 这部分是一个用 Remix 和 Node 以 Vibe Coding 写成的自定义应用或主题应用扩展,不是 Orauria 官方发布的 Shopify 应用。整个流程是一条直线。

顾客把照片拖到 Design your own case 页面。应用把照片发给 Orauria 的 Image to prompt API,URL 存为 ORAURIA_IMAGE_TO_PROMPT_URL,并以 Orauria 文档为准——本文不编造确切路径。返回的说明会被改写成新的 9:16 手机壳提示词,就像这只奶油色小猫从上传照片改写而来一样。接着,应用用 Bearer 令牌认证和 generate_image 工具调用 http://orauria.com/api/mcp 上的 Orauria MCP 服务器,轮询 get_task 直到 is_final 为 true,再把 PNG 合成到手机壳样机上。24.99 美元结账后,文件交给按需印刷合作方。令牌始终不离开服务器。
同一个 MCP 还提供 list_models 和 get_wallet,对接客户端时很有用,但顾客不需要看到。
可以直接粘贴的 Vibe Coding 提示词
如果你在 Cursor、Claude 或其他编程工具里搭骨架,可以从这样的提示词开始(保留英文原文),然后把每个 URL 都和最新的 Orauria 文档核对一遍:
Build a Shopify app in Remix and Node called PawCase Studio.
Add a storefront page, "Design your own case," where a shopper uploads a photo of their pet or an idea.
When they upload:
1. POST the image to process.env.ORAURIA_IMAGE_TO_PROMPT_URL with
Authorization: Bearer process.env.ORAURIA_TOKEN.
Confirm the exact path in the Orauria docs. Do not hard-code a guessed URL.
2. Rewrite the returned prompt into a new phone-case brief: keep the pet recognizable,
invent a fresh 9:16 composition, no text or logos,
printable case artwork (not a 3D mockup).
3. Call the Orauria MCP server at http://orauria.com/api/mcp with the same Bearer
token. Use the generate_image tool, model tt-image-2.5, params.aspect_ratio "9:16".
Poll get_task until is_final is true.
4. Preview the artwork on an iPhone case mockup. When the shopper checks out at
$24.99, send the file to a print-on-demand partner.
Keep the token in process.env. Never put it in the theme, the client, or the repo.
在 Shopify 路由中调用 Image to prompt 和 Orauria MCP
服务器路由的结构很小。应用里请使用 process.env.ORAURIA_TOKEN。下面的 YOUR_ORAURIA_TOKEN 字符串只是示意用的占位符,绝不是真实密钥(代码保留英文原文)。
// app/routes/api.design.tsx
import { json, type ActionFunctionArgs } from "@remix-run/node";
const TOKEN = process.env.ORAURIA_TOKEN;
const IMAGE_TO_PROMPT_URL = process.env.ORAURIA_IMAGE_TO_PROMPT_URL;
const MCP_URL = "http://orauria.com/api/mcp";
export async function action({ request }: ActionFunctionArgs) {
const form = await request.formData();
// 1. Turn the shopper's photo into a detailed prompt.
// Confirm IMAGE_TO_PROMPT_URL in the Orauria docs.
const promptRes = await fetch(IMAGE_TO_PROMPT_URL!, {
method: "POST",
headers: { Authorization: `Bearer ${TOKEN}` },
body: form,
});
const { prompt: extracted } = await promptRes.json();
const designPrompt = rewriteForCase(extracted);
// 2. Generate the artwork through Orauria MCP.
const gen = await fetch(MCP_URL, {
method: "POST",
headers: {
Authorization: `Bearer ${TOKEN}`, // never hard-code YOUR_ORAURIA_TOKEN
"Content-Type": "application/json",
},
body: JSON.stringify({
// Tool: generate_image
model: "tt-image-2.5",
prompt: designPrompt,
params: { aspect_ratio: "9:16" },
}),
});
const created = await gen.json();
const art = await pollTask(created.taskId); // get_task until is_final
return json({ prompt: designPrompt, artUrl: art.result_url });
}
generate_image 外层的 JSON 主体,照你的 MCP 客户端现有的格式发送即可。下面的示意图是我们在这类调用中实际使用的参数结构——一个模型、一段提示词和 params.aspect_ratio——令牌和任务 ID 都是占位符。本文的小猫文件是在 Studio 中生成的(任务 #225830817),不是通过真实的 MCP 任务,所以这张图展示的是接线方式,而不是第二张收据。

在 Profile → API keys 下创建 sk- 密钥,并在服务器配置中写入 Authorization: Bearer YOUR_ORAURIA_TOKEN。永远不要把真实密钥贴到博客、主题文件或公开仓库里。
顾客看到什么
在店铺前台,页面叫 Design your own case。左栏是操作区:上传的照片(这里是 my-cat.jpg,那只奶油色小猫)、从照片得出的一句简短描述、改写后的手机壳提示词,以及生成状态。右栏是商品:已经放在 iPhone 16 Pro 手机壳上的插画,24.99 美元,按需印刷,约 5–8 个工作日发货。

后台看到什么
同样的晚间工作会以生成任务的形式出现在 Shopify 后台:谁上传的、返回了哪个设计、Image to prompt 和 generate_image 各花了多少、文件是否已送印。仍在轮询 get_task 的任务停在 Generating;发货前想亲自看一眼的,放在 In review。

晚上的成本
这个流程里贵的不是生成。在上面的 Image to prompt 演示中,图钉说明花了 0.06 积分。用 TT Image 2.5、Adaptive、9:16 在 Studio 生成约 0.0208 积分——和我们运行任务 #225830817 之前输入框显示的数字一样。这些是我们实际看到的 Orauria 成本,或输入框标出的同一价格。
真正让你有感的,是文件周边的一切:Shopify 费用、按需印刷和运费、花一分钟质检确认壳上的图案真的是新的,以及每晚 1–2 小时审核任务、回复那位发来模糊照片的顾客。手机壳的定价要按这些来算,而不是按那一行积分。
示意:一周的晚间
每个手机壳 24.99 美元,41 单合计 1,024.59 美元。这是想象一周晚间的一种方式——每晚约六单,七个晚上,已发货、生产中和未处理混在一起。这是 PawCase Studio 一个合理一周的版面示意,不是销售报告。

Instagram 帖子是同一组示意的另一半:奶油色小猫手机壳、一段邀请大家上传宠物照片的文案,以及询问狗狗、配送和一只叫 Bean 的猫的评论。

如果你更想卖带名字的壁纸文件而不是印刷手机壳,我们在 How to Build a Personalized Phone Wallpaper Shop on Shopify With Orauria (and Its MCP) 中介绍过那套流程,包括 Orauria 的 AI Phone Wallpaper 模块。
从这里开始
在 Chrome 网上应用店安装 AI Assistant Copilot – Orauria,挑一张你有权使用的宠物照片,运行 Image to prompt。把说明改写成可印刷的手机壳图案,连同照片作为参考粘贴到 Orauria Studio,生成一张你真的愿意印到壳上的 9:16 图。然后用 Vibe Coding 写 Shopify 路由:从文档获取的 ORAURIA_IMAGE_TO_PROMPT_URL,用于 generate_image 和 get_task 的 http://orauria.com/api/mcp,以及保存在 process.env 里的令牌。
从这里开始:orauria.com、Orauria Studio,以及 Chrome 网上应用店的 AI Assistant Copilot – Orauria 页面。
















































































































