1. Sign in
Vigen uses Sign in with Google. Open vigen.id and click the sign-in button in the top right. There is no manual sign-up through the API. A new account is usable as soon as you create an API key. The starting credit amount is configured on the admin side, so check your balance withGET /api/v1/user/credits before sending your first request.
2. Top up credits
Pay with QRIS at vigen.id/billing. There are two package types:- Credit packages — deducted per generation.
- Unlimited packages — a daily quota with no credit deduction for eligible models; available for 1 day (Rp 10.000), 7 days, and 30 days.
GET /api/v1/user/credits without having to reload the dashboard.
3. Create an API key
Open vigen.id → Account; the API Keys card sits under your credit balance:1
Click Create key
Give it a name that identifies the environment, for example
production-server or laptop-rina.2
Copy the key
Keys are formatted
vg_ + 32 hexadecimal characters, for example vg_4b1a82f3c9d0e1f2a3b4c5d6e7f80912.The full value is shown only once. The server stores its SHA-256 hash, so we cannot display it again. If you lose it, create a new key and revoke the old one.
3
Store it as a secret
Put it in an environment variable, not in your source code.
4. Revoke a key
A key can be revoked at any time from the same panel. Revocation takes effect immediately: the next request is answered401 with the error API Key tidak valid atau telah dicabut.
Revoke a key right away if:
- it appeared in a log, a screenshot, or a public repository;
- the employee or environment that used it is no longer active;
- you see unusual activity in
lastUsedAt.
How keys work on the server
Next: Authentication.