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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Catalog: open multi-view, text-to-3D and splat models; SAM 3D asks for a textured GLB; rig price with an animation
Claudecd9a651b0369
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.pyindex 6be69241..dfb00928 100644--- a/scripts/gen-cloud-models.py+++ b/scripts/gen-cloud-models.py@@ -803,16 +803,17 @@ model("triposplat", "TripoSplat", "Tripo", "tripo", "model3d", "A Gaussian splat[("splat", "tripo3d/triposplat")], badges=["new"], fixed={"output_format": "ply"}, sliders=[("num_gaussians", "Gaussians")])# Its prompt defaults to "car" at the API, so Fuobe always asks for one.model("sam-3d-objects", "SAM 3D Objects", "Meta", "sam", "model3d", "The objects you name, rebuilt in 3D where they stand in the photo",+ # export_textured_glb defaults to false (a grey mesh): the viewer shows the textured one.[("image-to-3d", "fal-ai/sam-3/3d-objects")], badges=["new"], pricing=("request", 0.02, "per unit; fal does not say what a unit is"),- options={"requires": {"prompt": True, "msg": "Name the objects to rebuild, e.g. “chair, lamp”"}})+ fixed={"export_textured_glb": True}, options={"requires": {"prompt": True, "msg": "Name the objects to rebuild, e.g. “chair, lamp”"}})model("tripo-h3-1-text", "Tripo H3.1 Text to 3D", "Tripo", "tripo", "model3d", "A textured 3D model from a description",[("text-to-3d", "tripo3d/h3.1/text-to-3d")], pricing=("request", 0.2, "standard textures; untextured $0.10, HD $0.30"),controls=[("texture_quality", "Texture"), ("geometry_quality", "Geometry")])model("meshy-7-1-multi", "Meshy 7.1 Multi-view", "Meshy", "meshy", "model3d", "One object from up to 4 photos of different sides",[("image-to-3d", "meshy/v7.1/multi-image-to-3d")], pricing=("request", 1.2, "textured; untextured $0.80, rigging +$0.20"),- controls=[("topology", "Topology")])+ controls=[("topology", "Topology")], options={"minImages": 2})model("meshy-rigging", "Meshy Rigging", "Meshy", "meshy", "model3d", "Rig a humanoid GLB with a skeleton, walk and run cycles, or an animation preset",- [("rig-3d", "fal-ai/meshy/rigging")], badges=["new"], pricing=("request", 0.2, "+$0.12 with an animation preset"))+ [("rig-3d", "fal-ai/meshy/rigging")], badges=["new"], pricing=("request", 0.2, "+$0.12 with an animation preset", {"animationUsd": 0.12}))# Cinema Studio's "Create 3D scene" on the cloud (part 4 §8): a depth map of the whole frame, which the browser# turns into a point cloud with the photo's colours. So scene-3d answers with an image on this model.model("marigold-depth", "Marigold V2 Depth", "Marigold", "marigold", "image", "A depth map of the whole frame, for the 3D scene your browser builds",diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.tsindex 27a283d5..622cf118 100644--- a/src/lib/catalog/cloud-models.generated.ts+++ b/src/lib/catalog/cloud-models.generated.ts@@ -14283,6 +14283,9 @@ export const CLOUD_MODELS: ModelDef[] = ["points": {"key": "point_prompts","format": "sam"+ },+ "fixed": {+ "export_textured_glb": true}}}@@ -14384,7 +14387,8 @@ export const CLOUD_MODELS: ModelDef[] = ["default": "triangle"}],- "maxImages": 4+ "maxImages": 4,+ "minImages": 2},"pricing": {"unit": "request",@@ -14431,7 +14435,8 @@ export const CLOUD_MODELS: ModelDef[] = ["pricing": {"unit": "request","usd": 0.2,- "note": "+$0.12 with an animation preset"+ "note": "+$0.12 with an animation preset",+ "animationUsd": 0.12}},{diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex b9a336f2..c6e0815f 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -1246,6 +1246,46 @@ const open: ModelDef[] = [routes: [comfy("image-to-3d", "image-to-3d-hunyuan3d-21")],options: { seed: true },}),+ // Round 4 (r4/3d-plus): Image to 3D's other modes on the open engine.+ o({+ id: "oss-trellis2-multi",+ name: "TRELLIS.2 Multi-view",+ vendor: "Tencent ARC × Microsoft",+ family: "trellis",+ kind: "model3d",+ tagline: "One textured 3D model (.glb) from photos of 2–4 sides of an object, plus a turntable video · 16 GB GPU · MIT",+ badges: ["new"],+ // params.extra.views names each photo's side ("front", "left", "back", "right"); the front is needed.+ routes: [comfy("image-to-3d", "image-to-3d-trellis2-multiview", "Pixal3D multi-view on TRELLIS.2; the front, then any of left, back and right")],+ options: { seed: true, minImages: 2, maxImages: 4 },+ }),+ o({+ id: "oss-text-trellis2",+ name: "Z-Image Turbo → TRELLIS.2",+ vendor: "Alibaba Tongyi × Microsoft",+ family: "trellis",+ kind: "model3d",+ tagline: "Describe one object: Z-Image Turbo draws it on a plain background, then TRELLIS.2 builds the textured 3D model and a turntable · 16 GB GPU · Apache-2.0 + MIT",+ badges: ["new"],+ // Built on the server as two steps: a Z-Image Turbo still, then image-to-3d-trellis2 on it (src/server/chains.ts).+ routes: [{ op: "text-to-3d", provider: "comfyui", endpoint: "image-to-3d-trellis2", chained: true, note: "a Z-Image Turbo still → TRELLIS.2" }],+ options: { seed: true },+ }),+ o({+ id: "oss-triposplat",+ name: "TripoSplat",+ vendor: "Tripo (VAST)",+ family: "tripo",+ kind: "model3d",+ tagline: "A Gaussian splat (.spz) of the subject in one photo, background removed, plus an orbit video · 8 GB GPU · MIT · Built with DINOv3",+ badges: ["new"],+ routes: [comfy("splat", "image-to-splat-triposplat", "BiRefNet cut-out → TripoSplat → .spz + a 3 s orbit")],+ options: {+ seed: true,+ maxImages: 1,+ sliders: [{ param: "numGaussians", label: "Gaussians", min: 32768, max: 1048576, step: 32768, default: 262144 }],+ },+ }),// Round 4 (r4/cinema-3d): Cinema Studio's "Create 3D scene". The mesh is in the photo's own camera space// (glTF axes, metres), so the viewer starts where the photo was taken.o({diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.tsindex 6d454fb8..f5a65ede 100644--- a/src/lib/catalog/plan.ts+++ b/src/lib/catalog/plan.ts@@ -512,5 +512,6 @@ export function estimateCost(model: ModelDef, params: GenParams, jobs = 1, op?:if (k !== undefined && k > 0) per *= k;}if (params.generateAudio === false && model.options.audio === true && p.note?.includes("audio-off-half")) per /= 2;+ if (p.animationUsd && params.animation !== undefined && params.animation !== "") per += p.animationUsd;return Math.round(per * jobs * 1000) / 1000;}diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.tsindex 78a1d44b..0513dd51 100644--- a/src/lib/catalog/types.ts+++ b/src/lib/catalog/types.ts@@ -561,6 +561,8 @@ export interface Pricing {factors?: { param: string; values: Record<string, number> }[];/** The price per unit when the run carries LoRAs and goes to the route's LoRA endpoint (fal's /lora variants cost more). */withLoras?: number;+ /** What an animation preset adds to a run (params.animation: Meshy rigging +$0.12). */+ animationUsd?: number;}export interface ModelDef {diff --git a/src/server/chains.ts b/src/server/chains.tsindex 300dd911..ced4c2b4 100644--- a/src/server/chains.ts+++ b/src/server/chains.ts@@ -1,6 +1,7 @@import "server-only";import { nanoid } from "nanoid";import { getModel, supportsOp } from "@/lib/catalog";+import { MODEL3D_STEP_FEATURE, stillPromptFor3d } from "@/lib/av/model3d";import { chainTiming, frameTimes, planKeyframeClips, spread } from "@/lib/catalog/keyframes";import { routesFor } from "@/lib/catalog/plan";import type { ChainSlot, Engine, Generation, GenerationRequest, ModelDef, ModelRoute, Operation } from "@/lib/catalog/types";@@ -275,6 +276,49 @@ export function createExtendChain(original: GenerationRequest, model: ModelDef):return [film, clip, frame];}+/** The still the open text-to-3D route draws first. */+const STILL_MODEL = "oss-z-image-turbo";+/** The image-to-3D model that runs a text-to-3D route's workflow. */+const BUILDERS_3D: Record<string, string> = { "image-to-3d-trellis2": "oss-trellis2" };++/**+ * Text to 3D on the open engine (a text-to-3d route marked `chained`): Z-Image Turbo draws the object whole on a+ * plain background (a helper step), then the route's workflow (TRELLIS.2) builds the model from that still.+ */+export function createStillTo3d(original: GenerationRequest, model: ModelDef, route: ModelRoute): Generation[] {+ const prompt = original.prompt?.trim();+ if (!prompt) throw new Error("Describe the object");+ const builder = BUILDERS_3D[route.endpoint];+ if (!builder) throw new Error(`${model.name} has no image-to-3D model for ${route.endpoint}`);+ assertOneMode([+ { label: "Drawing the object", modelId: STILL_MODEL, op: "t2i" },+ { label: model.name, modelId: builder, op: "image-to-3d" },+ ]);+ const batchId = nanoid(10);+ const seed = original.params?.seed;+ const still = createGenerations(+ {+ feature: MODEL3D_STEP_FEATURE,+ modelId: STILL_MODEL,+ op: "t2i",+ prompt: stillPromptFor3d(prompt),+ params: { aspectRatio: "1:1", resolution: "1K", ...(seed !== undefined && { seed }) },+ step: { label: "Still", index: 0, of: 2 },+ },+ { batchId },+ )[0];+ try {+ const built = createGenerations(+ { ...original, modelId: builder, op: "image-to-3d", chain: [{ slot: "images", position: "first" }], step: { label: "3D model", index: 1, of: 2 } },+ { batchId, dependsOn: still.id },+ )[0];+ return [built, still];+ } catch (e) {+ void cancelGeneration(still.id);+ throw e;+ }+}+/** The model a storyboard film is animated with. */export function filmModel(engine: Engine, modelId?: string): ModelDef {const m = getModel(modelId ?? (engine === "open" ? "oss-wan22-14b-fast" : "seedance-2-5"));diff --git a/src/server/generations.ts b/src/server/generations.tsindex a5c124dc..b4543cba 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -31,7 +31,7 @@ import {import { db } from "./db";import { listElements } from "./elements";import { pollTrainings } from "./training";-import { createExtendChain, createKeyframeFilm, createShotFilm } from "./chains";+import { createExtendChain, createKeyframeFilm, createShotFilm, createStillTo3d } from "./chains";import { enhancePrompt } from "./enhance";import { setResolver, watchGenerations, type LiveEvent } from "./live";import { provider } from "./providers";@@ -527,6 +527,9 @@ export function createGenerations(original: GenerationRequest, opts: CreateOptio// Frames mode on an open model: one start/end-frame clip per pair of frames, then joined.const filmRoute = shotModel && keyframeChain(shotModel);if (!opts.dependsOn && filmRoute && inferOperation(shotModel, original) === "keyframes") return createKeyframeFilm(original, shotModel, filmRoute);+ // Text to 3D on the open engine: a still first, then the 3D model of it.+ const stillTo3d = shotModel && original.op === "text-to-3d" ? routesFor(shotModel, "text-to-3d").find((r) => r.chained) : undefined;+ if (!opts.dependsOn && shotModel && stillTo3d) return createStillTo3d(original, shotModel, stillTo3d);const deps = opts.dependsOn === undefined ? [] : Array.isArray(opts.dependsOn) ? opts.dependsOn : [opts.dependsOn];const waits = deps.length > 0;// A dependent job can't be planned until its inputs exist; it's validated with placeholders, then launched by the runner.diff --git a/tests/cloud-catalog-4.test.ts b/tests/cloud-catalog-4.test.tsindex d8d32836..47ff45e0 100644--- a/tests/cloud-catalog-4.test.ts+++ b/tests/cloud-catalog-4.test.ts@@ -250,6 +250,7 @@ describe("round-4 payloads", () => {prompt: "chair, lamp",image_url: "room.png",point_prompts: [{ x: 10, y: 20, label: 1 }],+ export_textured_glb: true,});});diff --git a/tests/licences.test.ts b/tests/licences.test.tsindex 9ba62d95..374772cb 100644--- a/tests/licences.test.ts+++ b/tests/licences.test.ts@@ -78,8 +78,9 @@ describe("licences", () => {const list = buildLicenceList(MODELS, manifest.workflows);expect(list.notices.find((n) => n.text === "Built with Llama")?.models).toEqual(["HiDream-I1 Dev"]);expect(list.notices.find((n) => n.text === "Built with DINOv3")?.models.length).toBeGreaterThan(0);- // No TripoSplat, no DINOv3 notice.- const without = buildLicenceList(MODELS, manifest.workflows.filter((w) => !/triposplat/.test(w.id)));+ // TripoSplat and TRELLIS.2 (single and multi-view) encode with DINOv3; without them, no notice.+ expect(list.notices.find((n) => n.text === "Built with DINOv3")?.models).toEqual(expect.arrayContaining(["TripoSplat", "TRELLIS.2", "TRELLIS.2 Multi-view"]));+ const without = buildLicenceList(MODELS, manifest.workflows.filter((w) => !/triposplat|trellis2/.test(w.id)));expect(without.notices.some((n) => n.text === "Built with DINOv3")).toBe(false);});});