Connect your payment provider
One-click OAuth with Polar. Subscriptions and plans sync automatically.
- Automatic webhook registration
- Sync existing subscriptions
- Stripe & LemonSqueezy in beta
How It Works
From payment provider connection to live API verification in minutes.
One-click OAuth with Polar. Subscriptions and plans sync automatically.
Issue keys with dollar-based budgets, scopes, and environment separation.
Call POST /v1/verify from your middleware. Get validity, remaining budget, and entitlements.
Return 402 Payment Required when budget is exceeded. No more runaway costs.
Integration
A few lines of code to verify every request and enforce budgets.
const result = await holdify.verify({
key: apiKey,
resource: 'chat.completions',
});
if (!result.valid) {
return res.status(401).json({ error: 'Invalid key' });
}
if (result.remaining_budget_usd <= 0) {
return res.status(402).json({
error: 'budget_exceeded',
message: 'Payment Required',
resetAt: result.reset_at
});
}
// Budget verified - proceed with request
const completion = await openai.chat.completions.create({
model: 'gpt-4',
messages: req.body.messages
});Start free with 150K tokens/month. No credit card required. Setup in under 5 minutes.