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 { badBody, recipeFailure, RunBody } from "@/server/recipe-routes";
import { runRecipe } from "@/server/recipes";
/** Run a skill's recipe with new inputs, once or once per row, with no LLM. Every row is checked before any starts. */
export async function POST(request: Request, ctx: RouteContext<"/api/assist/skills/[name]/run">) {
const parsed = RunBody.safeParse(await request.json().catch(() => ({})));
if (!parsed.success) return badBody(parsed.error.issues);
try {
const { engine, ...input } = parsed.data;
return Response.json(await runRecipe((await ctx.params).name, input, engine), { status: 201 });
} catch (e) {
return recipeFailure(e);
}
}