Getting an API key
VidJutsu uses a credit-based system with Stripe checkout. No sign-up form — just pay and get your key.
1. Start checkout
curl -X POST https://api.vidjutsu.ai/v1/auth/setup \
-H "Content-Type: application/json" \
-d '{
"credits": 100,
"email": "you@example.com"
}'
This returns a Stripe checkout URL. Open it in your browser and pay with any credit or debit card.
2. Poll for your key
After payment completes, your API key is ready:
curl "https://api.vidjutsu.ai/v1/auth/status?session=cs_..."
{
"status": "completed",
"apiKey": "vj_live_abc123...",
"clientId": "cl_xyz789",
"balance": 100
}
Store your API key securely. It cannot be retrieved again — only rotated.
Using your API key
Pass the key in the X-Api-Key header on every request:
curl https://api.vidjutsu.ai/v1/balance \
-H "X-Api-Key: vj_live_abc123..."
Rotating your key
If your key is compromised, rotate it. The old key is immediately invalidated.
curl -X POST https://api.vidjutsu.ai/v1/auth/rotate-key \
-H "X-Api-Key: vj_live_abc123..."
{
"apiKey": "vj_live_new_key...",
"clientId": "cl_xyz789",
"message": "API key rotated successfully. Old key is now invalid."
}
Recovering your key
Lost your key? Request a recovery email:
curl -X POST https://api.vidjutsu.ai/v1/auth/recover \
-H "Content-Type: application/json" \
-d '{ "email": "you@example.com" }'
Payment methods
Available now:
- Any credit or debit card via Stripe (Visa, Mastercard, Amex, etc.)
Coming soon: MPP x402 protocol. Native USDC payments directly from your agent — no checkout flow, no card required. Pay per-request with stablecoins.