Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
import type { GenerationRequest } from "@hypit/generation";
import type { PixverseModel } from "./index.js";
/**
* Reference videos carry the length of the run, so that mode states no duration.
* Every other mode states its own.
*/
export function pixverseRequestValidator(model: PixverseModel): (request: GenerationRequest) => void {
return (request) => {
if (request.ports.referenceVideo !== undefined || request.ports.duration !== undefined) return;
throw new Error(`${model} requires duration`);
};
}