Skip to main content

What is varg?

varg is an AI video generation platform. Install the skill, set your API key, and let your AI agent create videos — with images, voiceover, music, lipsync, and captions.
# 1. Install the varg skill
npx -y skills add vargHQ/skills --all --copy -y

# 2. Set your API key (get one free at app.varg.ai)
export VARG_API_KEY=varg_live_xxx

# 3. Create your first video
claude "create a 10-second product video
  for white sneakers, 9:16, UGC style,
  with captions and background music"
Under the hood, the agent writes declarative JSX code like React components, and varg handles AI generation, caching, and video rendering. One API key, one gateway, all providers.
/** @jsxImportSource vargai */
import { Render, Clip, Image, Video, Speech, Captions, Music } from "vargai/react"
import { createVarg } from "vargai/ai"

const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })

const character = Image({
  model: varg.imageModel("nano-banana-pro"),
  prompt: "cute orange cat character, round body, big eyes, Pixar style",
  aspectRatio: "9:16",
})

const voiceover = Speech({
  model: varg.speechModel("eleven_v3"),
  voice: "josh",
  children: "Hey everyone! Let me show you something cool.",
})

export default (
  <Render width={1080} height={1920}>
    <Music prompt="upbeat electronic" model={varg.musicModel()} volume={0.1} />
    <Clip duration={5}>
      <Video
        prompt={{ text: "cat waves hello, bounces happily", images: [character] }}
        model={varg.videoModel("kling-v3")}
      />
    </Clip>
    <Captions src={voiceover} style="tiktok" color="#ffffff" withAudio />
  </Render>
)

Quick Start

1

Get your API key

Sign up at app.varg.ai and copy your API key.
2

Install the varg skill

npx -y skills add vargHQ/skills --all --copy -y
This gives Claude Code, Cursor, Windsurf, and 40+ other agents full varg context.
3

Set your API key

export VARG_API_KEY=varg_live_xxx
4

Create a video

Ask your AI agent:“Create a 10-second TikTok video of a cute robot waving hello with upbeat music and captions”

Why varg?

One API Key

Single VARG_API_KEY for images, video, speech, music, and lipsync. No juggling provider keys.

Declarative JSX

Write videos like React components. Compose scenes, add transitions, layer audio.

AI-Native

Built-in support for Kling, Seedance, Flux, ElevenLabs, Wan, and more. All through one gateway.

Automatic Caching

Same props = instant cache hit at $0. Re-render videos without re-generating AI assets.

Use Cases

  • Social Media Content: TikTok, Reels, Shorts at scale
  • Talking Characters: AI avatars with lipsync and captions
  • Product Videos: E-commerce showcases, before/after transformations
  • Slideshows: Image sequences with transitions and music

Next Steps

Quickstart Guide

Full setup in 2 minutes

Authentication

API keys, login, billing

Templates

Copy-paste examples for common video types

Cloud Render API

Submit TSX via API — zero local dependencies