Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Originals O10: an eval suite for the marketing Originals, the influencer estimate route, a browser check

Clauded19fb76f9cc3
diff --git a/scripts/eval/README.md b/scripts/eval/README.md
index 23c72802..8db1ffff 100644
--- a/scripts/eval/README.md
+++ b/scripts/eval/README.md
@@ -121,6 +121,7 @@ One JSON file per Original in `cases/`. Later Original packages add their own fi
| `shorts` | Shorts restyle | 1 | `restyle` | temporal, style, clip |
| `speak` | talking portraits | 1 portrait + voice | `infinitetalk`, `s2v` | lipsync, temporal, identity |
| `cinema` | Fuobe Cinema (O6) | 3 Director scenes (the prompt Cinema compiles), 4 camera moves as LTX-2.3's `camera_lora` (cloud), 2 films of 3 shots | `original`, `words` (no camera LoRA), `expansion` (fal's prompt expansion on), `wan` (Wan 2.2 A14B hosted), `partner` (Seedance 2.5); all but `original` cloud only | clip, temporal, continuity |
+| `marketing` | Fuobe Marketing Image, Fuobe Try-On, the AI Influencer sheet and Instadump (O10) | 6: a Standalone product shot (the product-shot graph on your GPU), an ad's picture, a poster without a product, a try-on, the builder's sheet (through `/api/influencer`), an Instadump photo from a selfie | `original`, `partner` (cloud: GPT Image 2.5, Nano Banana Pro, Ideogram 3.0, FASHN) | clip, aesthetic, style (the product), identity (try-on, Instadump) |
`soul.json`, `soul-cinema.json`, `soul-hex.json`, `dop.json` and `dop-mix.json` are **generated** from the research. They come from
`docs/research/higgsfield-image-studios.json` (the look ids) and
@@ -200,6 +201,8 @@ scripts/eval/local/
mixed-media/clip.mp4
shorts/clip.mp4, shorts/frame0.png
speak/portrait.png, speak/voice.wav
+ marketing/product.png, person.png # a product photo on a plain background; a full-body photo of a consenting person
+ marketing/garment.png, selfie.jpg # a garment on its own or flat-lay; a consenting person's selfie
```
**Training needs consent.** `soul-id.json` ships with `"consent": false`, so a character's training
diff --git a/scripts/eval/cases/marketing.json b/scripts/eval/cases/marketing.json
new file mode 100644
index 00000000..e8fe0800
--- /dev/null
+++ b/scripts/eval/cases/marketing.json
@@ -0,0 +1,122 @@
+{
+ "$schema": "./case.schema.json",
+ "suite": "marketing",
+ "title": "Fuobe Marketing Image, Fuobe Try-On, the AI Influencer sheet and Instadump (O10)",
+ "description": "Measures the Originals build plan O10 made the defaults of Marketing Studio, Ads Studio, the AI Influencer builder, Instadump and Fashion Factory, on your own inputs in local/marketing/: product.png (a product photo on a plain background), person.png (a full-body photo of a consenting person), garment.png (a garment on its own or flat-lay), selfie.jpg (a consenting person's selfie). The original variant runs the Original as the studio does (Fuobe Marketing Image: Qwen-Image-Edit 2511 / Qwen-Image 2512, the product-shot graph on your GPU; Fuobe Try-On: FLUX.2 [klein] 4B with the try-on LoRA; the influencer sheet: Fuobe Soul in the cloud, the Soul Cast sheet graph on your GPU; Instadump: Qwen-Image-Edit 2511); the partner variant runs the partner model the studio offers next to it, on fal, for reference. Marketing pictures carry no words (the studio sets them in the browser), so the prompts ask for none. The prompts are Fuobe's own.",
+ "original": ["fuobe-marketing-image", "fuobe-tryon", "fuobe-soul"],
+ "kind": "image",
+ "targets": {
+ "open": { "models": ["fuobe-marketing-image"] },
+ "cloud": { "models": ["fuobe-marketing-image"] },
+ "demo": { "models": ["fuobe-marketing-image"] }
+ },
+ "defaults": { "seeds": [1001, 2002], "metrics": ["clip", "aesthetic"], "timeoutSeconds": 1800, "candidate": "original" },
+ "variants": {
+ "original": { "description": "The Original as the studio runs it" },
+ "partner": { "description": "The partner model the studio offers next to it, on fal (cases name it)", "engines": ["cloud"] }
+ },
+ "cases": [
+ {
+ "id": "marketing/product-plinth",
+ "title": "Marketing Studio · Standalone product shot (Sunlit Plinth), the product kept",
+ "op": "edit",
+ "inputs": { "images": ["local/marketing/product.png"] },
+ "demoInputs": { "images": ["fixtures/start-frame.png"] },
+ "references": "local/marketing/product.png",
+ "params": { "aspectRatio": "3:4", "extra": { "productShot": true } },
+ "variantModels": { "partner": { "cloud": ["gpt-image-2-5"] } },
+ "prompts": [
+ {
+ "id": "plinth",
+ "text": "Commercial product photograph. The product stands on a travertine plinth against a warm plaster wall; low morning sun rakes across from the left and throws a long, crisp shadow; quiet, premium, lots of negative space. Keep the product exactly as in the reference photo: its shape, proportions, label, logo, text and colours."
+ }
+ ],
+ "metrics": ["clip", "aesthetic", "style"],
+ "note": "On your GPU one product photo runs the product-shot graph (cut out, put on white, relit by the White_to_Scene LoRA); the cloud sends the same words to Qwen-Image-Edit 2511 (params.extra.productShot is only read on ComfyUI)."
+ },
+ {
+ "id": "marketing/ad-visual",
+ "title": "Ads Studio · an ad's picture from the product photo, room left for the words",
+ "op": "edit",
+ "inputs": { "images": ["local/marketing/product.png"] },
+ "demoInputs": { "images": ["fixtures/start-frame.png"] },
+ "references": "local/marketing/product.png",
+ "params": { "aspectRatio": "4:5" },
+ "variantModels": { "partner": { "cloud": ["nano-banana-pro"] } },
+ "prompts": [
+ {
+ "id": "kitchen",
+ "text": "Advertising photograph: the product on a sunlit kitchen counter beside a bowl of fresh berries, morning light. Keep the product exactly as in the reference photo: shape, label, logo, text and colours. No text, letters, words, logos or watermarks anywhere in the picture; leave calm space for a headline."
+ }
+ ],
+ "metrics": ["clip", "aesthetic", "style"]
+ },
+ {
+ "id": "marketing/poster",
+ "title": "Marketing Studio · a poster without a product (Qwen-Image 2512)",
+ "op": "t2i",
+ "params": { "aspectRatio": "3:4" },
+ "variantModels": { "partner": { "cloud": ["ideogram-3"] } },
+ "prompts": [
+ {
+ "id": "bloom",
+ "text": "A designed poster. Two-colour risograph poster with grain, overprint and blooming botanical shapes. No text, letters, words or logos anywhere in the image; the subject well composed with a little breathing room at the edges."
+ }
+ ]
+ },
+ {
+ "id": "marketing/try-on",
+ "title": "Fashion Factory · Fuobe Try-On dresses the person in the garment",
+ "models": { "open": ["fuobe-tryon"], "cloud": ["fuobe-tryon"], "demo": ["fuobe-tryon"] },
+ "variantModels": { "partner": { "cloud": ["fashn-tryon"] } },
+ "op": "edit",
+ "inputs": { "images": ["local/marketing/person.png", "local/marketing/garment.png"] },
+ "demoInputs": { "images": ["fixtures/character/drawn-face-1.png", "fixtures/palette.png"] },
+ "references": "local/marketing/person.png",
+ "prompts": [
+ {
+ "id": "outfit",
+ "text": "a full-body photo of a person. Replace the outfit with the garment shown in the reference image, with its fabric, colour, pattern, logo and fit. The final image is a full body shot."
+ }
+ ],
+ "metrics": ["identity", "clip", "aesthetic"],
+ "note": "The try-on LoRA (xocialize, Apache-2.0) goes to fal by URL; on fal the person photo is sent as it is, while the open graph greys the old outfit out first, so compare the two engines here before calling the hosted route equal."
+ },
+ {
+ "id": "marketing/influencer-sheet",
+ "title": "AI Influencer · the builder's sheet from scratch",
+ "models": { "open": ["oss-zimage-soul-cast"], "cloud": ["fuobe-soul"], "demo": ["oss-zimage-soul-cast"] },
+ "variantModels": { "partner": { "cloud": ["nano-banana-pro"] } },
+ "prompts": [{ "id": "potter", "text": "A potter from Porto who films her studio" }],
+ "metrics": ["clip", "aesthetic"],
+ "submit": {
+ "route": "/api/influencer",
+ "body": {
+ "engine": "{{engine}}",
+ "state": { "tier": "normal", "picks": { "gender": ["female"], "hair": ["hs_beehive"], "aesthetic": ["goth"] }, "locked": [] },
+ "start": "scratch",
+ "direction": "{{prompt}}",
+ "modelId": "{{modelId}}"
+ }
+ }
+ },
+ {
+ "id": "marketing/instadump",
+ "title": "Instadump · one pack photo from a selfie (Qwen-Image-Edit 2511)",
+ "models": { "open": ["oss-qwen-edit"], "cloud": ["qwen-image-edit-2511-cloud"], "demo": ["oss-qwen-edit"] },
+ "variantModels": { "partner": { "cloud": ["nano-banana-pro"] } },
+ "op": "edit",
+ "inputs": { "images": ["local/marketing/selfie.jpg"] },
+ "demoInputs": { "images": ["fixtures/character/drawn-face-2.png"] },
+ "references": "local/marketing/selfie.jpg",
+ "params": { "aspectRatio": "3:4" },
+ "prompts": [
+ {
+ "id": "winter",
+ "text": "A photo of the person in image 1, holding a hot chocolate with marshmallows by a frosty window. Cosy winter photo with warm light against the cold. Keep their exact face, identity, skin tone and hair; a new photo, not a copy of the reference."
+ }
+ ],
+ "metrics": ["identity", "clip", "aesthetic"]
+ }
+ ]
+}
diff --git a/src/app/api/influencer/estimate/route.ts b/src/app/api/influencer/estimate/route.ts
new file mode 100644
index 00000000..09326e16
--- /dev/null
+++ b/src/app/api/influencer/estimate/route.ts
@@ -0,0 +1,11 @@
+import { POST as influencer } from "../route";
+
+/**
+ * The price of an AI Influencer run without starting it: the same body as POST /api/influencer?preview=1, at the
+ * `<route>/estimate` path the evaluation harness prices studio routes at.
+ */
+export async function POST(request: Request) {
+ const url = new URL(request.url.replace(/\/estimate(?=\/?(\?|$))/, ""));
+ url.searchParams.set("preview", "1");
+ return influencer(new Request(url, { method: "POST", headers: request.headers, body: await request.text() }));
+}
diff --git a/src/app/api/influencer/route.ts b/src/app/api/influencer/route.ts
index bbdb0b6a..1ce51dc8 100644
--- a/src/app/api/influencer/route.ts
+++ b/src/app/api/influencer/route.ts
@@ -26,9 +26,9 @@ function bodyError(issues: z.core.$ZodIssue[]): string {
}
/**
- * AI Influencer builder: a character sheet from the builder's picks — Nano Banana Pro or Seedream 5.0
- * Pro on the cloud, the Soul Cast sheet workflow (plus Qwen-Image-Edit 2511 for a face, a reference or
- * clothing) on the open engine. `?preview=1` prices it instead.
+ * AI Influencer builder: a character sheet from the builder's picks — Fuobe Soul in the cloud (Nano Banana Pro or
+ * Seedream 5.0 Pro when asked), the Soul Cast sheet workflow on the open engine, each followed by Qwen-Image-Edit 2511
+ * for a face, a reference or clothing. `?preview=1` (or POST /api/influencer/estimate) prices it instead.
*/
export async function POST(request: Request) {
const parsed = Body.safeParse(await request.json().catch(() => null));
diff --git a/tests/e2e/marketing-originals.mjs b/tests/e2e/marketing-originals.mjs
new file mode 100644
index 00000000..64b34dac
--- /dev/null
+++ b/tests/e2e/marketing-originals.mjs
@@ -0,0 +1,173 @@
+// Build plan O10, browser check in demo mode: the Originals are the first choice on both engines and partners stay
+// choices — Marketing Studio's model menu (Fuobe Marketing Image), Ads Studio's "Pictures by" (and its price line),
+// the AI Influencer builder (Fuobe Soul), Photodump's model chips (Qwen-Image-Edit 2511 hosted), Fashion Factory's
+// outfit step (Fuobe Try-On) and the try-on LoRA's row in Settings → Models & licences. Then each page at 1440 and
+// 390 px, light and dark, without sideways scroll.
+// Usage: node tests/e2e/marketing-originals.mjs [appUrl] [--shots <dir>] (app in demo mode, ComfyUI unreachable).
+// Exits 1 on a failed check.
+import fs from "node:fs";
+import path from "node:path";
+import { launch, root } from "./_browser.mjs";
+
+const argv = process.argv.slice(2);
+const app = (argv.find((a) => !a.startsWith("--") && argv[argv.indexOf(a) - 1] !== "--shots") ?? "http://localhost:3000").replace(/\/$/, "");
+const shots = argv.includes("--shots") ? argv[argv.indexOf("--shots") + 1] : undefined;
+if (shots) fs.mkdirSync(shots, { recursive: true });
+
+const failures = [];
+const check = (label, ok, extra = "") => {
+ console.log(`${ok ? "ok " : "FAIL"} ${label.padEnd(72)}${extra ? ` ${extra}` : ""}`);
+ if (!ok) failures.push(label);
+};
+
+async function upload(file, type, name) {
+ const form = new FormData();
+ form.append("file", new Blob([fs.readFileSync(path.join(root, file))], { type }), name);
+ const res = await fetch(`${app}/api/uploads`, { method: "POST", body: form });
+ if (!res.ok) throw new Error(`upload failed: ${res.status}`);
+ return (await res.json()).url;
+}
+const post = async (url, body) => {
+ const res = await fetch(`${app}${url}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) });
+ if (!res.ok) throw new Error(`${url}: ${res.status} ${await res.text()}`);
+ return res.json();
+};
+
+// A brand with a product, and a character: what Ads Studio and Fashion Factory need.
+const productImage = await upload("scripts/eval/fixtures/start-frame.png", "image/png", "product.png");
+const face = await upload("scripts/eval/fixtures/character/drawn-face-1.png", "image/png", "face.png");
+const brand = await post("/api/brands", { description: "Ember & Oat — small-batch granola roasted in Portland", name: "Ember & Oat" });
+await post("/api/products", { name: "Maple Granola", brandId: brand.id, images: [productImage] });
+const character = await post("/api/elements", { name: "Ines", kind: "character", references: [face] });
+
+const engines = ["cloud", "open"];
+const browser = await launch();
+try {
+ const contextFor = async (engine, viewport, colorScheme, fashion) => {
+ const context = await browser.newContext({ viewport, colorScheme });
+ await context.addInitScript(
+ ([e, f]) => {
+ try {
+ localStorage.setItem("fuobe.engine", e);
+ if (f) localStorage.setItem("fuobe.fashion", JSON.stringify(f));
+ } catch {}
+ },
+ [engine, fashion ?? null],
+ );
+ const page = await context.newPage();
+ page.setDefaultTimeout(60_000);
+ return { context, page };
+ };
+ const text = (page) => page.evaluate(() => document.body.innerText);
+ const noSideways = (page) => page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
+ const fashionAt = { step: "clothing", templateId: "red-room", elementId: character.id, baseIds: [], base: productImage, outfitIds: [] };
+
+ // ---------------------------------------------------------------------------
+ // The flows, once per engine (1440 light).
+ for (const engine of engines) {
+ const { context, page } = await contextFor(engine, { width: 1440, height: 900 }, "light", fashionAt);
+ // Marketing Studio: the model menu.
+ await page.goto(`${app}/marketing`, { waitUntil: "load", timeout: 180_000 });
+ await page.getByRole("button", { name: /^Settings:/ }).first().click();
+ const panel = page.getByRole("dialog").last();
+ await panel.getByText("Fuobe Marketing Image").first().waitFor();
+ const models = (await panel.innerText()).split("\n");
+ const first = models.findIndex((l) => /Fuobe Marketing Image|GPT Image|Nano Banana|Bria|Ideogram|Recraft|Product Photography/.test(l));
+ check(`${engine}: Marketing Studio's first model is Fuobe Marketing Image`, models[first] === "Fuobe Marketing Image", models[first]);
+ check(`${engine}: partner models ${engine === "cloud" ? "stay" : "aren't"} in the menu`, engine === "cloud" ? models.some((l) => /GPT Image 2\.5/.test(l)) : !models.some((l) => /GPT Image/.test(l)));
+ await page.keyboard.press("Escape");
+
+ // Ads Studio: New ads.
+ await page.goto(`${app}/ads/${brand.id}?step=new`, { waitUntil: "load" });
+ await page.getByText(/Create \d+ ads? for/).first().waitFor();
+ await page.waitForFunction(() => /Fuobe Marketing Image ·|Fuobe Marketing Image$/m.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
+ const ads = await text(page);
+ check(`${engine}: Ads Studio prices its pictures on Fuobe Marketing Image`, /Fuobe Marketing Image/.test(ads));
+ if (engine === "cloud") {
+ check("cloud: Ads Studio offers Nano Banana Pro and GPT Image 2.5 as choices", await page.getByLabel("Pictures by").isVisible());
+ await page.getByLabel("Pictures by").click();
+ const options = await page.getByRole("option").allInnerTexts();
+ check("cloud: the picture menu lists the Original first", options[0] === "Fuobe Marketing Image" && options.includes("Nano Banana Pro") && options.includes("GPT Image 2.5"), options.join(" | "));
+ await page.getByRole("option", { name: "Nano Banana Pro" }).click();
+ await page.waitForFunction(() => /Nano Banana Pro ·/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
+ check("cloud: picking Nano Banana Pro reprices the batch on it", /Nano Banana Pro ·/.test(await text(page)));
+ } else {
+ check("open: no partner menu on your GPU", !(await page.getByLabel("Pictures by").count()));
+ }
+
+ // The AI Influencer builder (the engine comes from this browser's storage once the page hydrates).
+ await page.goto(`${app}/influencer`, { waitUntil: "load" });
+ await page.getByRole("heading", { level: 1 }).first().waitFor();
+ if (engine === "cloud") {
+ await page.locator("#ib-model").waitFor();
+ await page.waitForFunction(() => /Runs on Fuobe Soul/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
+ const model = await page.locator("#ib-model").innerText();
+ check("cloud: the influencer sheet defaults to Fuobe Soul, priced on it", /Fuobe Soul/.test(model) && /Runs on Fuobe Soul/.test(await text(page)), model);
+ check("cloud: its note says the face and clothing go on with Qwen-Image-Edit 2511", /Qwen-Image-Edit 2511/.test(await text(page)));
+ } else {
+ await page.waitForFunction(() => /Fuobe Soul on your GPU/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
+ check("open: the influencer sheet is Fuobe Soul on your GPU, free", /Fuobe Soul on your GPU/.test(await text(page)) && /Free on your GPU/.test(await text(page)));
+ }
+
+ // Photodump: the model chips of a pack.
+ await page.goto(`${app}/photodump`, { waitUntil: "load" });
+ await page.getByRole("button", { name: /Winter special/i }).first().dblclick();
+ await page.getByRole("radiogroup", { name: "Model" }).waitFor();
+ const chips = await page.getByRole("radiogroup", { name: "Model" }).getByRole("radio").allInnerTexts();
+ check(`${engine}: Photodump offers Qwen-Image-Edit 2511 next to Fuobe Soul`, chips.includes("Qwen-Image-Edit 2511") && chips.some((c) => /Fuobe Soul/.test(c)), chips.join(" | "));
+ if (engine === "cloud") check("cloud: Nano Banana Pro and Seedream stay Photodump choices", chips.includes("Nano Banana Pro") && chips.includes("Seedream 5.0 Pro"));
+
+ // Fashion Factory: the outfit step.
+ await page.goto(`${app}/fashion-factory`, { waitUntil: "load" });
+ await page.getByRole("heading", { name: "Upload outfit" }).waitFor();
+ if (engine === "cloud") {
+ const outfit = await page.getByRole("radiogroup", { name: "Outfit model" }).getByRole("radio").allInnerTexts();
+ const on = await page.getByRole("radio", { name: "Fuobe Try-On" }).getAttribute("aria-checked");
+ check("cloud: Fashion Factory's outfit runs on Fuobe Try-On, FASHN and Nano Banana Pro after it", outfit[0] === "Fuobe Try-On" && on === "true" && outfit.includes("FASHN Try-On"), outfit.join(" | "));
+ } else {
+ check("open: no outfit model menu on your GPU", !(await page.getByRole("radiogroup", { name: "Outfit model" }).count()));
+ }
+ await context.close();
+ }
+
+ // Settings → Models & licences: the try-on LoRA, its licence and its switch.
+ {
+ const { context, page } = await contextFor("cloud", { width: 1440, height: 900 }, "light");
+ await page.goto(`${app}/settings/models`, { waitUntil: "load" });
+ await page.getByLabel("Search names or licences").fill("Fuobe");
+ await page.waitForFunction(() => /Fuobe Marketing Image/.test(document.body.innerText) && /Fuobe Try-On/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
+ check("Settings lists Fuobe Marketing Image and Fuobe Try-On", /Fuobe Marketing Image/.test(await text(page)) && /Fuobe Try-On/.test(await text(page)));
+ await page.getByRole("button", { name: /^LoRAs/ }).first().click();
+ await page.getByLabel("Search names or licences").fill("try-on");
+ await page.getByText("Virtual Try-On for FLUX.2 [klein] 4B (xocialize)").first().waitFor();
+ const lora = await text(page);
+ check("Settings lists the try-on LoRA with its Apache-2.0 licence", /Virtual Try-On for FLUX\.2 \[klein\] 4B \(xocialize\)/.test(lora) && /Apache-2\.0/.test(lora));
+ check("the try-on LoRA has its switch", (await page.getByRole("switch").count()) > 0);
+ await context.close();
+ }
+
+ // ---------------------------------------------------------------------------
+ // Every touched page at 1440 and 390 px, light and dark: nothing scrolls sideways.
+ const pages = ["/marketing", `/ads/${brand.id}?step=new`, "/influencer", "/photodump", "/fashion-factory", "/settings/models"];
+ for (const [w, h] of [
+ [1440, 900],
+ [390, 844],
+ ]) {
+ for (const scheme of ["light", "dark"]) {
+ const { context, page } = await contextFor("cloud", { width: w, height: h }, scheme, fashionAt);
+ for (const p of pages) {
+ await page.goto(`${app}${p}`, { waitUntil: "load" });
+ await page.waitForTimeout(600);
+ check(`${p} at ${w}px ${scheme}: no sideways scroll`, await noSideways(page));
+ if (shots) await page.screenshot({ path: path.join(shots, `${p.replace(/[/?=]+/g, "_").replace(/^_/, "") || "home"}-${w}-${scheme}.png`), fullPage: false });
+ }
+ await context.close();
+ }
+ }
+} finally {
+ await browser.close();
+ await fetch(`${app}/api/brands/${brand.id}`, { method: "DELETE" }).catch(() => {});
+}
+
+console.log(failures.length ? `\n${failures.length} failed` : "\nall checks passed");
+process.exit(failures.length ? 1 : 0);
diff --git a/tests/influencer-api.test.ts b/tests/influencer-api.test.ts
index 73f8fa52..cc6a1e1a 100644
--- a/tests/influencer-api.test.ts
+++ b/tests/influencer-api.test.ts
@@ -12,6 +12,7 @@ const { db } = await import("@/server/db");
const gens = await import("@/server/generations");
const { saveFile } = await import("@/server/storage");
const route = await import("@/app/api/influencer/route");
+const estimateRoute = await import("@/app/api/influencer/estimate/route");
const { compileCastPrompt } = await import("@/lib/influencer");
const { soulRecipe } = await import("@/lib/catalog/soul");
const { CAST_LOOK } = await import("@/lib/catalog/soul-cards");
@@ -49,6 +50,9 @@ describe("/api/influencer", () => {
const face = await (await post({ engine: "cloud", state, start: "face", photo: upload() }, true)).json();
expect(face).toMatchObject({ modelId: "qwen-image-edit-2511-cloud", count: 1, steps: 2 });
expect((await (await post({ engine: "cloud", state, start: "scratch", modelId: "nano-banana-pro" }, true)).json()).modelId).toBe("nano-banana-pro");
+ // The same price at /api/influencer/estimate (where the evaluation harness prices studio routes).
+ const estimate = await (await estimateRoute.POST(new Request("http://x/api/influencer/estimate", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ engine: "cloud", state, start: "scratch" }) }))).json();
+ expect(estimate).toMatchObject({ modelId: "fuobe-soul", count: 1, steps: 1, demo: true });
const seedream = await (await post({ engine: "cloud", state, start: "scratch", modelId: "seedream-5-pro" }, true)).json();
expect(seedream.modelId).toBe("seedream-5-pro");
});