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
/**
* Hosted routes whose requests have not yet been sent with a real key: their payloads follow the providers' schemas
* and are unit-tested, but no live call has passed. An entry is taken off these lists once a live call passes.
*
* Until then they run on a visitor's own key like any paid model: an account sees them in its pickers and runs them on
* its key, and own-setup.ts (ownSetupOnly) labels them "Use your own fal.ai key" (or Replicate's). A visitor's cloud
* run only ever sends its own key (provider-keys.ts cloudKey), so this studio's keys never run one. The owner runs
* them as before.
* Pure data and logic (client and server).
*/
import type { AccessSummary } from "../model-access";
import type { ModelDef, ModelRoute } from "./types";
/** Endpoints, on any model that uses them. */
export const HOSTED_UNTESTED_ENDPOINTS: ReadonlySet<string> = new Set([
// MiniMax H3 Max: lip sync, relight, insert, the five looks, Turbo; H3 Lite and HighSpeed (Replicate).
"minimax/h3-max/lip-sync/image-to-video",
"minimax/h3-max/relight",
"minimax/h3-max/insert-video",
"minimax/h3-max/styles/16bit-pixel",
"minimax/h3-max/styles/hand-drawn",
"minimax/h3-max/styles/low-poly",
"minimax/h3-max/styles/retro-toon-70s",
"minimax/h3-max/styles/vhs",
"minimax/h3-max-turbo/text-to-video",
"minimax/h3-max-turbo/image-to-video",
"minimax/h3-max-turbo/reference-to-video",
"minimax/h3-max-turbo/extend-video",
"minimax/h3-lite",
"minimax/h3-highspeed",
// Vidu Q4.
"fal-ai/vidu/q4/image-to-video",
"fal-ai/vidu/q4/reference-to-video",
// Songs: Mureka 9 / 9.5 / 8 and its song tools (extend, remix, stems, the upload they send a song through first),
// MiniMax Music 3, ElevenLabs Music v2.5, Lyria 3.5.
"mureka/v9.5/generate/song",
"mureka/v9/generate/song",
"mureka/v9.5/generate/instrumental",
"mureka/v9/generate/instrumental",
"mureka/v8/song/extend",
"mureka/v8/song/remix",
"mureka/api/song/stem",
"mureka/api/files/upload",
"minimax/music-3",
"elevenlabs/music/v2.5",
"google/lyria-3.5",
// Voice cleaners.
"veed/clean-audio",
"fal-ai/deepfilternet3",
// 3D: Idol, Meshy retexture, Tripo P2.
"speridlabs/idol",
"meshy/v7/retexture",
"meshy/v6/retexture",
"tripo3d/p2/image-to-3d",
// Kandinsky 6.0 (Pro and Lite, from words or a first frame) and Kandinsky VSR.
"fal-ai/kandinsky6-pro/text-to-video",
"fal-ai/kandinsky6-lite/text-to-video",
"fal-ai/kandinsky6-pro/image-to-video",
"fal-ai/kandinsky6-lite/image-to-video",
"fal-ai/kandinsky6-vsr",
// Bria: green-screen despill and the guided cut-out.
"bria/video/background-removal/green-screen-despill",
"bria/guided-remove-background",
// Wan 2.7 text to image: the hosted route of Wan 2.2 A14B Image since fal retires Wan 2.2 (2027-01-04).
"fal-ai/wan/v2.7/text-to-image",
]);
/** Models whose hosted routes are new even where the endpoint isn't (Fuobe Animation's AniSora film on Replicate's fast Wan 2.2). */
export const HOSTED_UNTESTED_MODELS: ReadonlySet<string> = new Set(["fuobe-animation"]);
const hosted = (r: Pick<ModelRoute, "provider">) => r.provider === "fal" || r.provider === "replicate";
/** Whether this route of this model is a hosted call that hasn't been sent with a real key yet. */
export function isHostedUntested(modelId: string, route: Pick<ModelRoute, "provider" | "endpoint">): boolean {
return hosted(route) && (HOSTED_UNTESTED_ENDPOINTS.has(route.endpoint) || HOSTED_UNTESTED_MODELS.has(modelId));
}
/**
* Whether a visitor's run must leave this route out: never now. A visitor's run of an untested route goes on its own
* key, as any paid model's does, and own-setup.ts labels it. Kept for the run planner's call (generations.ts
* triedRoutes), which reads `true` as "leave it out".
*/
export const hostedUntested: (modelId: string, route: Pick<ModelRoute, "provider" | "endpoint">) => boolean = () => false;
/**
* A visitor's picker summary: the untested routes are no longer left out (they run on the visitor's own key, labelled
* by own-setup.ts), so it is the summary it was given. Kept for /api/status's call (account-gpu.ts visitorStatus).
*/
export function hostedUntestedSummary(_models: ModelDef[], base: AccessSummary | undefined): AccessSummary {
return { off: [...(base?.off ?? [])], ...(base?.engines && Object.keys(base.engines).length && { engines: { ...base.engines } }) };
}