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
import { connection } from "next/server";
import { uploadSwitches } from "@/server/upload-switches";
/**
* The upload switches, for every browser (guests and accounts too): what it may do to a file that doesn't fit a tool before
* it is uploaded (src/lib/av/upload-switches.ts). Holds nothing else.
*/
export async function GET() {
await connection();
return Response.json({ switches: uploadSwitches() }, { headers: { "Cache-Control": "no-store" } });
}