Skip to main content

Fastest: connect the MCP server

Nothing to install and no API key to copy. Add the hosted varg MCP server to your AI tool and sign in with your varg account when the browser opens. Your assistant gets native tools for generate_image, generate_video, generate_speech, generate_music, and render_video, plus the full model catalog.
Then run /mcp inside Claude Code to sign in.
Then ask for what you want: “Make a 5-second video of a fox running through snow, 16:9, and a 30-second ambient music track to go with it” Setup for every client, the full tool list, and team billing: MCP Server. The server is listed in the official MCP Registry as ai.varg/mcp.

For full videos: AI agent + skill

For finished multi-scene videos with captions, lipsync, music, and transitions, use 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

API Reference

Every REST endpoint, async jobs, errors and billing

OpenAPI Spec

OpenAPI 3.1 spec for generating typed clients