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
Merge branch 'r3b/faceless' into claude/fuobe-parity-3
Claude91af796eaa59
diff --cc src/components/app-sidebar.tsxindex aa89c0a9,c2038d4c..c23ad3b4--- a/src/components/app-sidebar.tsx+++ b/src/components/app-sidebar.tsx@@@ -39,14 -38,8 +39,16 @@@ importLibrary,PersonStanding,Scissors,+ Shapes,+ Smartphone,+ Megaphone,+ Target,+ Images,+ Camera,+ Shirt,+ UserRoundCog,+ Tv,+ Presentation,type LucideIcon,} from "lucide-react";import {@@@ -120,14 -112,8 +122,16 @@@ const NAV: NavGroupDef[] =label: "Studios",items: [{ href: "/cinema", label: "Cinema Studio", icon: Clapperboard },+ { href: "/shorts", label: "Shorts Studio", icon: Smartphone },+ { href: "/mixed-media", label: "Mixed Media", icon: Shapes },+ { href: "/marketing", label: "Marketing Studio", icon: Megaphone },+ { href: "/ads", label: "Ads Studio", icon: Target },+ { href: "/moodboards", label: "Moodboards", icon: Images },+ { href: "/photodump", label: "Photodump", icon: Camera },+ { href: "/fashion-factory", label: "Fashion Factory", icon: Shirt },+ { href: "/character-sheet", label: "Character Sheet", icon: UserRoundCog },+ { href: "/faceless", label: "Faceless Studio", icon: Tv },+ { href: "/explainer", label: "Explainer", icon: Presentation },{ href: "/lipsync", label: "Lipsync & avatars", icon: Mic2 },{ href: "/motion-control", label: "Motion control", icon: PersonStanding },{ href: "/video-edit", label: "Edit video", icon: Scissors },diff --cc src/lib/catalog/models.tsindex 2406aa9c,570b0eea..4e18d438--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@@ -1070,21 -1070,46 +1070,61 @@@ const cloudTools: ModelDef[] =pricing: { unit: "request", usd: 0.001 },hidden: true,},+ {+ // Shorts Studio: a clip cropped to 9:16 or 16:9 before a restyle model that keeps its input's shape.+ id: "scale-video",+ name: "Crop to size",+ vendor: "fal",+ family: "utility",+ engine: "cloud",+ kind: "video",+ tagline: "Centre-crop (or pad) a clip to an exact size, no AI",+ // Size in params.extra {width, height} (even numbers); "crop" scales to cover, then centre-crops.+ routes: [{ op: "reframe", provider: "fal", endpoint: "fal-ai/workflow-utilities/scale-video", map: { prompt: false, video: "video_url", defaults: { mode: "crop" } } }],+ options: {},+ pricing: { unit: "request", usd: 0.001, note: "billed per compute second" },+ 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 --cc src/server/db.tsindex 60ba0c69,b3ca79b2..03b00c47--- a/src/server/db.ts+++ b/src/server/db.ts@@@ -175,158 -175,38 +175,190 @@@ const MIGRATIONS: string[] =edited_at INTEGER);CREATE INDEX IF NOT EXISTS canvases_updated ON canvases(updated_at DESC);`,+ // Layers projects: one source image, saved versions of its layer document, and the AI jobs its tools started.+ `CREATE TABLE IF NOT EXISTS layer_projects (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ source_url TEXT NOT NULL,+ cover_url TEXT,+ width INTEGER NOT NULL,+ height INTEGER NOT NULL,+ head_version_id TEXT,+ jobs_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS layer_projects_updated ON layer_projects(updated_at DESC);+ CREATE TABLE IF NOT EXISTS layer_versions (+ id TEXT PRIMARY KEY,+ project_id TEXT NOT NULL,+ label TEXT NOT NULL,+ doc_json TEXT NOT NULL,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS layer_versions_project ON layer_versions(project_id, created_at DESC);`,+ // Shorts Studio: sessions (a clip cut into segments, each with its takes and the chosen one, plus the stitches) and custom presets.+ `CREATE TABLE IF NOT EXISTS shorts_sessions (+ id TEXT PRIMARY KEY,+ title TEXT NOT NULL,+ engine TEXT NOT NULL,+ batch_id TEXT NOT NULL,+ look_json TEXT NOT NULL,+ source_json TEXT NOT NULL,+ range_json TEXT NOT NULL,+ settings_json TEXT NOT NULL,+ segments_json TEXT NOT NULL DEFAULT '[]',+ stitches_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS shorts_sessions_updated ON shorts_sessions(updated_at DESC);+ CREATE TABLE IF NOT EXISTS shorts_presets (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ description TEXT NOT NULL DEFAULT '',+ references_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );`,+ // Marketing: brand kits (researched or manual), products (shared by every marketing flow), Ads Studio runs and their+ // creatives, and Marketing Studio / Click to Ad / Ad Multiplier runs (a batch of chained generations plus what made it).+ `CREATE TABLE IF NOT EXISTS brand_kits (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ website TEXT,+ status TEXT NOT NULL DEFAULT 'ready',+ progress_json TEXT,+ kit_json TEXT NOT NULL DEFAULT '{}',+ chat_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS brand_kits_updated ON brand_kits(updated_at DESC);+ CREATE TABLE IF NOT EXISTS products (+ id TEXT PRIMARY KEY,+ brand_id TEXT,+ name TEXT NOT NULL,+ description TEXT,+ price REAL,+ currency TEXT,+ audience TEXT,+ selling_points_json TEXT NOT NULL DEFAULT '[]',+ url TEXT,+ images_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS products_brand ON products(brand_id, created_at);+ CREATE TABLE IF NOT EXISTS ad_batches (+ id TEXT PRIMARY KEY,+ brand_id TEXT NOT NULL,+ engine TEXT NOT NULL,+ route TEXT NOT NULL,+ model_id TEXT NOT NULL,+ direction TEXT,+ created_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS ad_batches_brand ON ad_batches(brand_id, created_at DESC);+ CREATE TABLE IF NOT EXISTS ad_creatives (+ id TEXT PRIMARY KEY,+ batch_id TEXT NOT NULL,+ brand_id TEXT NOT NULL,+ product_id TEXT,+ position INTEGER NOT NULL DEFAULT 0,+ status TEXT NOT NULL,+ angle TEXT,+ headline TEXT,+ body TEXT,+ cta TEXT,+ visual TEXT,+ generation_id TEXT,+ layout TEXT,+ meta_json TEXT,+ // Image studios: colour signatures (Soul HEX; the 50 Cinema Studio palettes are seeded on first use), moodboards+ // (reference sets with their cover job, Recraft style id and optional style LoRA element) and Instadump user packs.+ `CREATE TABLE IF NOT EXISTS palettes (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ colors_json TEXT NOT NULL,+ background TEXT,+ slug TEXT,+ source TEXT NOT NULL DEFAULT 'manual',+ thumb_url TEXT,+ position INTEGER NOT NULL DEFAULT 0,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS palettes_source ON palettes(source, created_at DESC);+ CREATE TABLE IF NOT EXISTS moodboards (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ images_json TEXT NOT NULL,+ collages_json TEXT NOT NULL DEFAULT '[]',+ engine TEXT NOT NULL,+ generation_id TEXT,+ status TEXT NOT NULL DEFAULT 'queued',+ cover_url TEXT,+ style_id TEXT,+ element_id TEXT,+ error TEXT,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS ad_creatives_brand ON ad_creatives(brand_id, created_at DESC);+ CREATE INDEX IF NOT EXISTS ad_creatives_batch ON ad_creatives(batch_id);+ CREATE INDEX IF NOT EXISTS ad_creatives_generation ON ad_creatives(generation_id);+ CREATE TABLE IF NOT EXISTS marketing_runs (+ id TEXT PRIMARY KEY,+ feature TEXT NOT NULL,+ batch_id TEXT NOT NULL,+ final_ids_json TEXT NOT NULL DEFAULT '[]',+ engine TEXT NOT NULL,+ title TEXT NOT NULL,+ meta_json TEXT NOT NULL DEFAULT '{}',+ created_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS marketing_runs_feature ON marketing_runs(feature, created_at DESC);`,+ CREATE INDEX IF NOT EXISTS moodboards_created ON moodboards(created_at DESC);+ CREATE TABLE IF NOT EXISTS photodump_packs (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ refs_json TEXT NOT NULL,+ created_at INTEGER NOT NULL+ );`,+ // Faceless Studio channels (genre, saved style / voice / aspect / subtitles, the avatar being drawn) and episodes (Faceless and Explainer: script, render plan).+ `CREATE TABLE IF NOT EXISTS faceless_channels (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ idea TEXT NOT NULL,+ genre TEXT NOT NULL,+ avatar_url TEXT,+ avatar_job TEXT,+ reference_json TEXT,+ settings_json TEXT NOT NULL,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS faceless_channels_updated ON faceless_channels(updated_at DESC);+ CREATE TABLE IF NOT EXISTS faceless_episodes (+ id TEXT PRIMARY KEY,+ channel_id TEXT,+ kind TEXT NOT NULL,+ title TEXT NOT NULL,+ topic TEXT NOT NULL,+ status TEXT NOT NULL,+ error TEXT,+ settings_json TEXT NOT NULL,+ script_json TEXT NOT NULL,+ plan_json TEXT,+ sources_json TEXT,+ favorite INTEGER NOT NULL DEFAULT 0,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS faceless_episodes_channel ON faceless_episodes(channel_id, created_at DESC);+ CREATE INDEX IF NOT EXISTS faceless_episodes_kind ON faceless_episodes(kind, created_at DESC);`,];declare global {diff --cc src/server/generations.tsindex 56b8d925,7d55ff70..1bf47473--- a/src/server/generations.ts+++ b/src/server/generations.ts@@@ -209,18 -208,9 +209,21 @@@ const ASSET_REFS: { table: string; cols{ table: "cinema_projects", cols: ["cover_url", "palettes_json", "director_json", "chat_json", "brief_body"] },{ table: "cinema_items", cols: ["meta_json"], except: "generation_id" },{ table: "canvases", cols: ["graph_json"] },+ { table: "layer_projects", cols: ["source_url", "cover_url"] },+ { table: "layer_versions", cols: ["doc_json"] },+ { table: "shorts_sessions", cols: ["source_json", "look_json"] },+ { table: "shorts_presets", cols: ["references_json"] },+ { table: "brand_kits", cols: ["kit_json", "chat_json"] },+ { table: "products", cols: ["images_json"] },+ { table: "ad_creatives", cols: ["meta_json"] },+ { table: "marketing_runs", cols: ["meta_json"] },+ // Image studios: a palette's thumbnail, a moodboard's images, collages and cover, an Instadump pack's photos.+ { table: "palettes", cols: ["thumb_url"] },+ { table: "moodboards", cols: ["images_json", "collages_json", "cover_url"] },+ { table: "photodump_packs", cols: ["refs_json"] },+ // Faceless / Explainer: a channel's avatar, style references and voice samples, episode sources.+ { table: "faceless_channels", cols: ["avatar_url", "reference_json", "settings_json"] },+ { table: "faceless_episodes", cols: ["settings_json", "sources_json"] },];/** Whether anything still refers to this stored file (see ASSET_REFS). */