VARG_API_KEY) for all AI generation. This key authenticates you with the varg API, which routes requests to the right AI provider (Fal, ElevenLabs, Higgsfield, PiAPI, HeyGen, …) and handles billing.
Get your API key
Option 1: Sign up on the web
- Go to app.varg.ai
- Sign up with your email
- Copy your API key from the dashboard
Option 2: Log in from the CLI
- Email login — enter your email, receive a 6-digit code, verify it. Creates an account and API key automatically.
- Paste API key — if you already have one from the dashboard.
~/.varg/credentials (permissions 0600).
Option 3: Agent-driven login (for AI agents)
AI agents can drive the login flow usingcurl — no interactive CLI needed:
Using your API key
In a .env file (recommended for projects)
.env — no dotenv needed.
As an environment variable
In global credentials
The CLI saves credentials to~/.varg/credentials:
VARG_API_KEY is not set in the environment.
In code
Credits and billing
Check your balance
total_balance: 10000 means 10,000 credits ($100). available is what you can spend right now (total minus credits reserved by in-flight jobs).
Add credits
Pricing
Live catalog with all ~80 models:
GET https://api.varg.ai/v2/pricing (public, no auth). Estimate any request before running it with POST /v2/estimate.
Cache hits are always free. Same prompt + params = $0 instant result.