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
Faceless: catalog fixes from the review (work in progress: music bed, block timing, open sources, offline topics, frame pricing)
Claudeedb857d68c0e
diff --git a/src/lib/catalog/faceless.ts b/src/lib/catalog/faceless.tsindex 51a7d59c..67c7d589 100644--- a/src/lib/catalog/faceless.ts+++ b/src/lib/catalog/faceless.ts@@ -19,9 +19,13 @@ import type { ChainSlot, Engine, Generation, GenerationRequest, ModelDef } from* - clip: the still animated (Gemini Omni Flash, Higgsfield's engine, or Seedance 2.5 / Wan 2.2 Lightning).* Frame by frame keeps the still and moves the camera slowly over it (a Ken Burns prompt, cheaper settings).* - narration: the whole reviewed script read in one take (one natural voice-over; ElevenLabs v4, or- * Chatterbox cloning a voice sample). Blocks are paced to their own lines, so picture and voice stay together.- * - music: an instrumental bed (Sonilo / ACE-Step), mixed under the voice by the open mixer (oss-mux): the- * cloud soundtrack tool takes one track.+ * Chatterbox cloning a voice sample), then timed word by word (ElevenLabs forced alignment on the cloud,+ * Qwen3-ASR on the open engine).+ * - The render runs in two stages: the pictures, the narration and its timing first; then each block is+ * cut to where its lines really fall (retimeBlocks) and the clips, joins, music, mix and subtitles follow,+ * so picture and voice stay together over the whole film, whatever pace the narrator reads at.+ * - music: an instrumental bed (Sonilo / ACE-Step) as long as the film, mixed under the voice: fal's compose+ * with the bed levelled to -28 LUFS on the cloud, oss-mux at -14 dB on the open engine.* - captions: Auto Subtitle on the cloud; Qwen3-ASR timings + the open burn-in on the open engine.*/@@ -334,13 +338,14 @@ export const MIN_BLOCK = 3;export type AnimationMode = "animated" | "frames";export type EpisodeAspect = "16:9" | "9:16";-export const ANIMATION_MODES: { id: AnimationMode; label: string; tagline: string; copy: string }[] = [- { id: "animated", label: "Fully animated", tagline: "Seamless motion video", copy: "Continuous animation across every scene" },+export const ANIMATION_MODES: { id: AnimationMode; label: string; tagline: string; copy: string; openCopy: string }[] = [+ { id: "animated", label: "Fully animated", tagline: "Seamless motion video", copy: "Continuous animation across every scene", openCopy: "Continuous animation across every scene" },{id: "frames",label: "Frame by frame",tagline: "Scene by scene video",- copy: "Paced stills with a slow camera move — faster and lighter on credits",+ copy: "Paced stills with a slow camera move, rendered at a lower quality — lighter on credits",+ openCopy: "Paced stills with a slow camera move — on your GPU it takes about as long as Fully animated",},];@@ -545,13 +550,21 @@ export interface EngineModels {join: string;/** Joins at most this many clips at once (longer films are folded). */joinMax: number;- /** Puts the voice on the film: one track (cloud) or the voice over a music bed (open). */+ /** Puts the voice on the film (no music). */mux: string;- /** The open mixer: the only one that lays music under the voice. */+ /** Lays the voice over a music bed on the film. */mixMusic: string;+ /** Brings the bed down under the voice before the mix (the cloud mixer has no volume control). */+ levelMusic?: string;captions: string;- /** Open captions: transcribe the narration first, then burn the timed lines in. */- transcribe?: string;+ /** Word timings of the narration: the scenes are cut to them (and the open captions burn them in). */+ align: string;+ /** The captions are burned from those timings (the cloud captioner transcribes by itself). */+ captionsUseWords: boolean;+ /** Pictures that show the subject of attached images, when the still model can't read images. */+ sourceStill?: string;+ /** "Upscale to 1080p" on a finished episode. */+ upscale: string;write: string;}@@ -570,8 +583,12 @@ export const ENGINE_MODELS: Record<Engine, EngineModels> = {join: "join-clips",joinMax: 24,mux: "merge-audio-video",- mixMusic: "oss-mux",+ mixMusic: "ffmpeg-compose",+ levelMusic: "ffmpeg-loudnorm",captions: "auto-subtitle",+ align: "elevenlabs-align",+ captionsUseWords: false,+ upscale: "seedvr-video",write: "text-llm",},open: {@@ -590,7 +607,10 @@ export const ENGINE_MODELS: Record<Engine, EngineModels> = {mux: "oss-mux",mixMusic: "oss-mux",captions: "oss-captions-burnin",- transcribe: "oss-qwen3-asr",+ align: "oss-qwen3-asr",+ captionsUseWords: true,+ sourceStill: "oss-qwen-edit",+ upscale: "oss-upscale-video-esrgan",write: "oss-text-llm",},};@@ -614,8 +634,17 @@ export const DEFAULT_RESOLUTION: Record<string, Record<AnimationMode, string>> =*/export const PRICE_PER_SECOND: Record<string, Record<string, number>> = {"gemini-omni-flash": { "360p": 0.03, "720p": 0.1, "1080p": 0.15, "4k": 0.3 },+ // Seedance 2.5 (research: $0.2205 / $0.473 / $1.164 per second at 480p / 720p / 1080p).+ "seedance-2-5": { "480p": 0.2205, "720p": 0.473, "1080p": 1.164 },};+/** Music models that make any whole length up to this (Sonilo: up to 600 s; ACE-Step's workflow: up to 240 s). */+export const MUSIC_MAX: Record<string, number> = { "sonilo-music": 600, "oss-ace-step": 240 };++/** How far the bed sits under the voice: levelled to -28 LUFS on the cloud, lowered by 14 dB by the open mixer. */+export const BED_LUFS = -28;+export const BED_DB = -14;+export type ModelLookup = (id: string) => ModelDef | undefined;/** Shot lengths that cover a block with the fewest shots, then the least overshoot. */diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex aec13b0f..570b0eea 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -1070,6 +1070,46 @@ const cloudTools: ModelDef[] = [pricing: { unit: "request", usd: 0.001 },hidden: true,},+ // Faceless Studio / Explainer (docs/research/paid-model-apis-3.md §12): the voice-over and a music bed on one film.+ {+ id: "ffmpeg-compose",+ name: "Mix voice and music",+ vendor: "fal",+ family: "utility",+ engine: "cloud",+ kind: "video",+ tagline: "Puts a voice-over and a background track on a video in one pass",+ routes: [{ op: "mux", provider: "fal", endpoint: "fal-ai/ffmpeg-api/compose", map: { prompt: false, tracks: "tracks" } }],+ options: { promptless: true },+ pricing: { unit: "second", usd: 0.0002 },+ hidden: true,+ },+ {+ id: "ffmpeg-loudnorm",+ name: "Level audio",+ vendor: "fal",+ family: "utility",+ engine: "cloud",+ kind: "audio",+ tagline: "Sets a track's loudness (EBU R128), e.g. a music bed well under a voice",+ routes: [{ op: "level", provider: "fal", endpoint: "fal-ai/ffmpeg-api/loudnorm", map: { prompt: false, audio: "audio_url", defaults: { integrated_loudness: -18 } } }],+ options: { promptless: true },+ pricing: { unit: "request", usd: 0, note: "billed per compute second, ≈ free" },+ hidden: true,+ },+ {+ id: "elevenlabs-align",+ name: "ElevenLabs Forced Alignment",+ vendor: "ElevenLabs",+ family: "elevenlabs",+ engine: "cloud",+ kind: "text",+ tagline: "Word timings for a known script and its recording",+ routes: [{ op: "transcribe", provider: "fal", endpoint: "fal-ai/elevenlabs/forced-alignment", map: { prompt: "text", audio: "audio_url" } }],+ options: {},+ pricing: { unit: "request", usd: 0.22, note: "$0.22 per started hour of audio" },+ hidden: true,+ },];/**diff --git a/src/lib/catalog/payload.ts b/src/lib/catalog/payload.tsindex 115db910..a2540ce1 100644--- a/src/lib/catalog/payload.ts+++ b/src/lib/catalog/payload.ts@@ -109,6 +109,12 @@ export function buildPayload(map: FieldMap, input: GenInput): Record<string, unkif (map.videos && input.videos?.length) out[map.videos] = input.videos;if (map.audio && input.audio) out[map.audio] = input.audio;if (map.audios && input.audios?.length) out[map.audios] = input.audios;+ if (map.tracks && input.video) {+ // fal's compose wants every keyframe's start and length in milliseconds.+ const ms = Math.max(1000, Math.round((input.duration ?? 0) * 1000));+ const track = (id: string, type: "video" | "audio", url: string) => ({ id, type, keyframes: [{ url, timestamp: 0, duration: ms }] });+ out[map.tracks] = [track("video", "video", input.video), ...(input.audio ? [track("voice", "audio", input.audio)] : []), ...(input.audio2 ? [track("background", "audio", input.audio2)] : [])];+ }if (map.aspectRatio && input.aspectRatio) {const [k, v] = enumValue(map.aspectRatio, input.aspectRatio);diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.tsindex 32e7eb4e..f52b2212 100644--- a/src/lib/catalog/plan.ts+++ b/src/lib/catalog/plan.ts@@ -96,7 +96,7 @@ const PROMPTLESS = new Set<Operation>(["concat", "frame", "color-match", "finalize", "reframe", "dialogue", "voice-change", "dub", "bg-remove-video", "depth-video", "upscale-image", "upscale-video", "bg-remove","interpolate", "v2a", "face-swap", "motion-transfer", "lipsync", "avatar",// round 3: tools that work from their inputs (open caption burn-in takes timed lines as its prompt and says so when they're missing)- "trim", "transcribe", "mux", "separate-audio", "layers", "image-to-3d", "captions", "text-layers", "vectorize",+ "trim", "transcribe", "mux", "separate-audio", "layers", "image-to-3d", "captions", "text-layers", "vectorize", "level",]);/**@@ -255,6 +255,7 @@ const NEEDS: Partial<vectorize: { images: 1, msg: "Add the image to turn into an SVG" },transcribe: { oneOf: ["audio", "video"], msg: "Add the audio or video to transcribe" },"separate-audio": { oneOf: ["audio", "video"], msg: "Add the audio or video to split" },+ level: { audio: true, msg: "Add the audio to level" },};const given = (v: unknown) => (Array.isArray(v) ? v.length > 0 : !!v);diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.tsindex 7c8b75ef..9dc9121c 100644--- a/src/lib/catalog/types.ts+++ b/src/lib/catalog/types.ts@@ -58,7 +58,8 @@ export type Operation =| "separate-audio" // audio or video → voice and background stems| "translate" // text → the same text in params.targetLanguage (LLM)| "write" // brief → text (LLM: scripts, ad copy, shot lists)- | "vectorize"; // image → the same picture as an SVG+ | "vectorize" // image → the same picture as an SVG+ | "level"; // audio → the same audio at a set loudness (a music bed under a voice-over)export const OPERATION_LABELS: Record<Operation, string> = {t2i: "Text to image",@@ -106,6 +107,7 @@ export const OPERATION_LABELS: Record<Operation, string> = {translate: "Translate",write: "Write",vectorize: "Vectorize",+ level: "Level audio",};export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {@@ -154,6 +156,7 @@ export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {translate: "text",write: "text",vectorize: "image",+ level: "audio",};/** "llm" runs text steps (translate, write) on the configured LLM (Claude or Ollama) inside the server. */@@ -250,6 +253,11 @@ export interface FieldMap {* `language: null` (detect instead of assuming English), Mirelo's full-length soundtrack.*/defaults?: Record<string, unknown>;+ /**+ * A timeline render (fal ffmpeg compose): one track for `video`, an audio track for `audio` (the voice)+ * and one for `audio2` (a background bed), each placed at 0 and as long as `duration` (seconds).+ */+ tracks?: string;}export interface ModelRoute {