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 { estimateMarketing, MarketingBody, readBody } from "@/server/marketing";
import { priceAs } from "@/server/visitor";
/** Price and check a Marketing Studio run before it starts; what's missing comes back as `blocker`. */
async function post(request: Request) {
const body = await readBody(request, MarketingBody);
if (body instanceof Response) return body;
try {
return Response.json(estimateMarketing(body));
} catch (e) {
return Response.json({ costUsd: null, demo: false, steps: [], notes: [], runs: 0, blocker: (e as Error).message });
}
}
/** A visitor (public sign-up) gets the price of its run on its own GPU, never a demo (src/server/visitor.ts). */
export async function POST(request: Request) {
return priceAs(request, () => post(request));
}