VCU Consumption Limits for API Keys
Introduce configurable limits on VCU consumption per API key to enable controlled usage. This is essential for VCU rentals, resale, subscription models, and quota management while preventing overuse and abuse.
Proposed Features:
Users should be able to set custom VCU limits per API key, with the following options:
Total Limit (Refillable/Renewable)
A fixed maximum VCU allocation per key, manually or automatically refillable.
Use Case: Renting out VCU with refill options.
Daily Limit
A hard cap on VCU usage per day to prevent overconsumption.
Use Case: Subscription plans where users get X VCU per day.
Time-Based Allocation (Rolling or Fixed Window)
A set VCU limit over a defined period (weekly, monthly, etc.).
Fixed Window: Resets at the start of each cycle (e.g., “10,000 VCU/month”).
Rolling Window: Applies a limit over any continuous period (e.g., “10,000 VCU over 30 days”).
Use Case: Monthly subscription tiers with more flexible usage patterns.
One-Time Use & Expiration
A single-use VCU allocation that expires when depleted.
Use Case: Selling one-time VCU packages.
Per-Request Limit
A cap on the VCU usage per individual API call to prevent single-call overuse.
Use Case: Protects against excessive batch-processing requests.
Rate Limiting (VCU per Time Interval)
Restrict usage to a maximum VCU per minute/hour to prevent sudden spikes.
Use Case: Prevents a user from burning an entire daily quota in minutes.
Grace Period / Temporary Overages
An optional soft limit where users can slightly exceed their quota before getting fully blocked.
Use Case: Prevents disruptions for legit users who slightly overconsume.
Why This Matters:
Enables VCU rentals and resale with precise quota control.
Prevents accidental or malicious overuse.
Supports subscription-style access models.
Provides budget control and cost predictability.
Ensures a clean and scalable way to manage VCU distribution.
Implementation Considerations:
Limits should be configurable via the dashboard and API.
Admins should have usage tracking & alerts when quotas are close to being hit.
This feature would enhance VCU-based services and expand monetization options, benefiting both Venice and its users.
Log in to comment and vote
Comments9
Amaranth Cherry
Mar 7, 2025
This would be especially good for VCU give-aways for example, and moar :D. Simpler on the gifter end, not having to worry too much about it.
JP
Mar 5, 2025
A daily limit has been added for API keys in today’s release. Details will follow in the change log.
Azure Thimble
Feb 26, 2025
All great use cases. Since am epoch is 24 hours, getting the daily limit alone would be a great start.
Copper Corn
Feb 14, 2025
Was about to create a request for this, Absolutely a required feature for the API going forward.
Indigo Peacock
Feb 11, 2025
VCU to VVV is something you can calculate. The VCU market is the VVV market.
Aquamarine Oak
Feb 1, 2025
That’s more comprehensive than I’m able to write… Each of these limits will be cool, but the most important is the daily VCU limits per API!
Aquamarine Flashlight
Feb 1, 2025
Start this simple with a goal of getting something working. Maybe just expiration date of the key for now is a property, everything else can come later.
Azure Woods
Feb 1, 2025
Perhaps include an api to validate the api key configuration such as vcpu limit, expiration time, etc. Moreover make an option to set the api key immunble. Gives us the abillity to develop an api market place for venice api Keys, where customers anonumous can buy Keys and are ensured the correct amount of compute for the defined period
Amber Flashlight
Feb 1, 2025
would be a good idea to add the ability to create a new API key via API.