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 { estimateEvolution, EvolutionEstimateSchema, evolutionSteps, planEvolutionRun } from "@/server/evolution";
import { poolPricedCheck } from "@/server/tool-runs";
import { body, handle } from "@/server/shorts-schemas";
/** The price, the pieces and the notes for the current settings, before anything runs ("Free" on your GPU). */
async function post(request: Request) {
return handle(async () => {
const input = await body(request, EvolutionEstimateSchema, "Add a clip and pick how much should change");
return Response.json(estimateEvolution(input));
});
}
/**
* Priced as the asker's run would go: an account's on its own GPU or key, a guest's on the open engine, never a demo;
* with its place, price and line on this install's GPUs when the run would go there (poolPricedCheck).
*/
export async function POST(request: Request) {
return poolPricedCheck(request, () => post(request), async (raw) => evolutionSteps(await planEvolutionRun(EvolutionEstimateSchema.parse(raw))));
}