Tokens this key can spend
Changed onremaining is the largest request the key can pay for right now. A request is paid by ONE plan — the key’s own plan when it can, otherwise another active plan of the account — so this is the most room any single plan has (the lowest of its total, daily and weekly caps), never a sum. plan details the plan that number is measured on. spendableTokens is the sum: what all the plans that may pay can still spend, request after request — the running total, which drops by each request’s cost. totalRemainingTokens sums every active plan on the account. The cost of a request is characters (minimum 50) × engine billingMultiplier × globalMultiplier — see GET /v1/engines.
Request
- Base URLhttps://api.vieneu.io
- Auth
- API key in header X-API-Key
- or HTTP bearer
Response
What this key can spend, and the plan that measures it.
Example response
{
"remaining": 15000,
"spendableTokens": 20000,
"plan": {
"totalTokens": 5000000,
"remainingTokens": 4984210,
"dailyRemaining": 15000,
"status": "ACTIVE"
},
"activeGrants": 2,
"totalRemainingTokens": 9984210
}Changes
- info
added the required property
/////to the response with the status - info
added the required property
to the response with the status
- info
- info
endpoint added
- info