Skip to main content
BYOK via the varg API is not available in v2 yet. The v1 gateway’s X-Provider-Key-* headers were not carried over, and passing provider keys in the request body is not supported. Requests are always billed in varg credits. BYOK support for v2 is planned — this page will be updated when it ships.

What works today

varg credits (default)

One VARG_API_KEY, all providers, metered billing. This is the supported path for the varg API:
Estimate any cost before running with POST /v2/estimate. Cache hits are free.

Direct provider modules in the local SDK

For local rendering, the SDK ships direct provider modules (fal, elevenlabs, …) that call the providers with your own keys from env — bypassing varg entirely (no varg billing, but also no varg caching or file storage):
This only applies to local rendering (bunx vargai render). Cloud render (POST /v2/render) and all API generation endpoints run on varg pooled keys and bill varg credits.

When to use which