Credits
Get your credit balance
Changed onReturns the credits this API key's account can spend right now, derived from your live credit buckets under the same expiry rule the billing path applies. Free, never charged, and open to any valid vq_key_ key (no scope required), so you can poll it for alerting or a pre-flight check. It is rate limited like every other key-authenticated route; see the rate-limit docs for the X-RateLimit-* headers.
creditsRemaining is the same field name metered responses use. Credits are how much you may spend and rateLimit is how fast you may call; the two are independent. Read bySource and nextExpiry before assuming a balance is durable.
get/api/v1/credits/balance
Request
- Base URLhttps://api.vaquill.ai
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Current spendable balance for the calling key's account.
Example response
{
"creditsRemaining": 103039,
"usdRemaining": 1030.39,
"bySource": [
{
"source": "payg",
"credits": 1030.43
}
],
"nextExpiry": {
"at": "2026-10-01T00:00:00Z",
"credits": 500
},
"plan": "business",
"totalPurchased": 150000,
"totalConsumed": 46961,
"rateLimit": {
"perMinute": 150,
"perHour": 2000,
"perDay": 10000
}
}Changes
- info
added the non-success response with the status
- info