Skip to main content

The fastest path: AI agent + skill

The recommended way to use varg is through an AI coding agent (Claude Code, Cursor, Windsurf, etc.) with the varg skill installed. The skill gives your agent full context on components, models, prompting, and rendering.
1

Get your API key

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

Install the varg skill

This installs the varg skill into Claude Code, Cursor, Windsurf, and 40+ other agents automatically.
3

Set your API key

4

Create your first video

Or with Cursor, Windsurf, or any other agent — just prompt it the same way:“Create a 10-second TikTok video of a cute robot waving hello with upbeat music and captions”
That’s it. The agent handles all the TSX code, rendering, and file management for you.
First render takes 1-2 minutes (AI generation). Subsequent runs with the same prompts are instant (cached at $0).

Pricing

1 credit = 1 cent. Typical costs: A typical 3-clip video costs $2-5. Cache hits are always free. Live catalog: api.varg.ai/v2/pricing.

Alternative: Cloud Render (curl only)

No installation needed. Submit TSX code to the Render API via curl:
Cloud render uses fal.*Model() syntax — provider globals are auto-injected server-side. See the Render API reference for full details.

Alternative: Local Render (bun + ffmpeg)

For full control, render videos locally. Requires Bun and ffmpeg.

Installation

Set your API key

Create a .env file in your project root:
Bun auto-loads .env files — no dotenv needed.

Your first video

Create hello.tsx:
Render it:

Add music

Add voiceover with captions

Project structure

Recommended layout:

Next steps

Components Reference

All JSX components and their props

AI Models

All supported models with pricing

Templates

Copy-paste examples for common video types

Cloud Render API

Submit TSX via API — zero local dependencies