About Sdk
The varg SDK is a TypeScript toolkit for rendering video declaratively, aimed at AI agents. The developer, or an agent such as Claude Code, writes JSX that describes what the video should contain, using components like Clip, Image and Speech, and the SDK renders an MP4. Despite the JSX syntax it does not depend on React. A custom runtime turns the components into FFmpeg render instructions.
It unifies video, image, voice and music generation under a single API. Supported providers include fal.ai for video, image and lipsync, ElevenLabs for voice and music, Replicate with more than a thousand models, and Higgsfield for character generation. Identical prompts hit a cache so regeneration is instant, and runtime errors carry actionable hints so an agent can fix and retry. Sixteen core components cover motion, camera movement and composition. Bun is the recommended runtime, with Node.js also working. The product is in public beta and is open source.
It suits developers and agent builders producing video pipelines in volume, such as ads and product videos.
The parent platform, varg.ai, sells credit plans. Starter is $24 per month for 700 credits, Pro is $99 for 3,000 credits and Pro Plus starts at $199 for 9,000 credits. Enterprise pricing is custom, and the vendor states commercial use is allowed on every plan.