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 main's newer work (Shorts and Cinema Studio for accounts, 3D apps on an account's own GPU, run downloads)
Adarsh48e2f877fe28
diff --cc src/lib/guest-access.tsindex 601ed6f2,2787a77e..80b466aa--- a/src/lib/guest-access.ts+++ b/src/lib/guest-access.ts@@@ -284,9 -294,8 +294,11 @@@ export const ACCOUNT_TOOL_RUNS: readonl/^\/api\/genjutsu\/describe$/,// Character Swap Studio's jobs on an account's own project (src/server/swap-studio-account.ts)./^\/api\/swap-studio\/projects\/[^/]+\/(anchors|assemble|clips|masks|prepare|queue|sharpen|transcribe)$/,+ // Apps made in one go from the account's own pictures (src/server/tool-runs.ts): AI Influencer, Photodump, Fashion+ // Factory, Character Sheet, Turnaround and Fly around.+ /^\/api\/(influencer|photodump|photodump\/fashion|photodump\/character|turnaround|fly-around)$/,+ // Cinema Studio: a take in the account's own project, a retry and a 2K finish of one of its takes.+ /^\/api\/cinema\/projects\/[^/]+\/(generate|items\/[^/]+\/(retry|finish))$/,];/**diff --cc src/server/generations.tsindex be8c8f77,d9441f9f..0db988d3--- a/src/server/generations.ts+++ b/src/server/generations.ts@@@ -554,8 -497,8 +560,9 @@@ export const ASSET_FREE: Record<string"relay_workers.bench_json": "a worker's job times in each lane","relay_workers.hours_json": "a worker's hours: a time zone and windows","relay_workers.allow_json": "the lanes the owner lets a worker run, with their delays",+ "relay_workers.seen_json": "the countries and network hashes a worker's token was used from","relay_pairings.facts_json": "what a paired ComfyUI said about itself: its name, GPU and version",+ "account_canvases.summary_json": "an account board's list line: node and page counts, and its outline (node types, places and short labels)",};/** The query that finds the rows of one ASSET_REFS table naming a file (@id), except the purged generation's own (@g). */diff --cc src/server/swap-studio-account.tsindex 54edf4cd,1f644cae..28fd3e78--- a/src/server/swap-studio-account.ts+++ b/src/server/swap-studio-account.ts@@@ -2,13 -2,11 +2,11 @@@ import "server-only"import type { z } from "zod";import { GUEST_HEADER, GUEST_LIBRARY_MESSAGE } from "@/lib/guest-access";import { projectRefsProblem, projectSavesLimited } from "./account-projects";-import { bodyTooBig, guestRun, refusalResponse, runAccountTool, toolViewer } from "./account-tool-run";-import type { Account } from "./auth";+import { bodyTooBig, guestRun, refusalResponse, runAccountTool, toolViewer, toolWishes } from "./account-tool-run";+import { requestViewer, type Account } from "./auth";import { AccountRunError, asAccount } from "./generations";- import { recordExists } from "./records";import { body, handle } from "./shorts-schemas";- import { accountHasProject, planSwapJob, startSwapJob, StudioError } from "./swap-studio";+ import { planSwapJob, startSwapJob, StudioError } from "./swap-studio";/*** Character Swap Studio for each kind of viewer (public sign-up), for its routes:diff --cc tests/public-signup-tools.test.tsindex 80ed3c38,b51ad8a9..c1533273--- a/tests/public-signup-tools.test.ts+++ b/tests/public-signup-tools.test.ts@@@ -110,14 -110,15 +110,15 @@@ describe("the proxy: PR #15's routes aprocess.env.FUOBE_PUBLIC_SIGNUP = "1";for (const p of ["/api/turnaround/estimate", "/api/turnaround?preview=1", "/api/audio-tools?preview=1"]) expect(passed(proxy(req(p, { method: "POST" }))), p).toBe(true);// Signing up wouldn't run these (an account's own GPU or key doesn't either): the account's answer, not the card.- for (const p of ["/api/audio-tools", "/api/shorts/sessions", "/api/katana", "/api/marketing/runs", "/api/layers/l1/jobs", "/api/layout/plan"]) {- for (const p of ["/api/turnaround", "/api/audio-tools", "/api/katana", "/api/marketing/runs", "/api/layers/l1/jobs", "/api/layout/plan"]) {++ for (const p of ["/api/audio-tools", "/api/katana", "/api/marketing/runs", "/api/layers/l1/jobs", "/api/layout/plan"]) {const r = proxy(req(p, { method: "POST" }));expect(r.status, p).toBe(403);expect(r.headers.get(access.GUEST_HEADER), p).toBeNull();expect(await r.json(), p).toEqual({ error: access.OWN_GPU_TOOL_MESSAGE, code: "own-gpu-tool" });}- // The studios' runs, an upload and a save to the library: signing up is the next step there.- for (const p of ["/api/generations", "/api/turnaround", "/api/media/probe", "/api/audio-tools/export?offset=0", "/api/canvases"]) {- // The studios' runs, a tool an account runs on its own GPU (Shorts), an upload and a save to the library: signing up- // is the next step there.- for (const p of ["/api/generations", "/api/shorts/sessions", "/api/media/probe", "/api/audio-tools/export?offset=0", "/api/canvases"]) {++ // The studios' runs, the apps and tools an account runs on its own GPU (Turnaround, Shorts), an upload and a save to++ // the library: signing up is the next step there.++ for (const p of ["/api/generations", "/api/turnaround", "/api/shorts/sessions", "/api/media/probe", "/api/audio-tools/export?offset=0", "/api/canvases"]) {const r = proxy(req(p, { method: "POST" }));expect(r.status, p).toBe(401);expect(r.headers.get(access.GUEST_HEADER), p).toBe("1");@@@ -149,8 -146,7 +150,8 @@@const cookie = auth.createSession(a.id).value;auth.setAccountGpu(a.id, { url: "https://gpu.example" });expect(passed(proxy(req("/api/generations", { method: "POST", cookie })))).toBe(true);- for (const p of ["/api/turnaround", "/api/audio-tools", "/api/layout/plan"]) {+ expect(passed(proxy(req("/api/turnaround", { method: "POST", cookie })))).toBe(true);- for (const p of ["/api/audio-tools", "/api/cinema/projects/p1/generate", "/api/layout/plan"]) {++ for (const p of ["/api/audio-tools", "/api/layout/plan"]) {const r = proxy(req(p, { method: "POST", cookie }));expect(r.status, p).toBe(403);expect(r.headers.get(access.CONNECT_GPU_HEADER), p).toBeNull();diff --cc workflows/comfyui/requirements.jsonindex 289d32da,5d8d40f8..27fec4cc--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@@ -1,6 -1,6 +1,6 @@@{"v": 1,- "hash": "18349d2412b2ab299b17eb1a0008c67bdf4caaa9dc8e784b66aa20d51e42c28d",- "hash": "516b11af9b0b2b335069ecf4194260d853406c957aa12eb3d786e016f75d491d",++ "hash": "bc92aa85bcae2fdb5c0419a37588392be2419275db6628cfbb47589f917db2c7","comfyui": {"min":"0.42.0","testedCommit":"5841c187"},"folders": ["Hi3D","RMBG","audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","kandinsky6_audio_vae","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","sams","text_encoders","thinksound","upscale_models","vae"],"sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],