Overview
Percify uses a unified credit model to keep pricing transparent and enable future tier overrides without rewriting feature logic. All generation actions debit credits atomically after success.Feature Costs
Centralized Logic (credit-costs.ts)
Exports:
DEFAULT_COSTS– baseline valuesTIER_COSTS– placeholder map for future tier overridesgetFeatureCost(feature)– simple lookupcalculateVideoCost(duration, feature)– base + perSecond dynamiccalculateAudioCost(duration)– base + perSecond
Example Usage
Debit Flow
- User initiates generation
- System validates sufficient balance
- Job runs (async or inline)
- On success → debit transaction committed
- On failure → no debit (idempotent)
UI Display
UsegetAllCosts() to present current pricing table; dynamic adjustments possible once tier overrides implemented.
Future Tier Pricing (Planned)
Rationale
Troubleshooting
Related Pages
- [/percify/payments]
- [/percify/image-to-video]
- [/percify/voice-cloning]
Continue to payment flows at [/percify/payments].