Managing Payment Plans
Complete guide to creating and managing payment plans with the Nevermined CLI.Overview
Payment plans define how users can access your AI agents and services. Plans can be:- Credits-based: Pay per API call or credit consumed
- Time-based: Subscription access for a duration
- Trial plans: One-time-use plans for testing (credits or time limited)
Listing Plans
View all available payment plans:Getting Plan Details
Retrieve detailed information about a specific plan:- Plan metadata (name, description, creator)
- Pricing configuration
- Credits configuration
- Payment token information
Checking Plan Balance
Check your credit balance for a plan:Getting Agents for a Plan
List all agents accessible through a specific plan:Creating Plans
Flexible Plan Registration
Register a plan with full control over price and credits/duration configuration:--nonce— Custom nonce value--access-limit— Maximum number of times the plan can be ordered
Credits Plan
Create a pay-per-use plan with credits:Time-Based Plan
Create a subscription plan with time-limited access:Trial Plans
Trial plans can only be purchased once per user and are useful for letting users test your agents. Credits trial (limited by credits):Ordering Plans
Crypto Payment
Purchase a plan with cryptocurrency:Fiat Payment
Initiate a plan purchase with fiat payment. Returns a URL where the user can complete the payment:Minting Credits
Mint Credits
Add credits to a plan and transfer them to a receiver (plan owner only):Mint Expirable Credits
Add time-limited credits:--credits-duration flag is optional and specifies duration in seconds.
Redeeming Credits
Burn/redeem credits for a given payment plan:Price Configuration Helpers
The CLI provides helper commands to build price configuration objects:Credits Configuration Helpers
Helper commands to build credits configuration objects:Advanced Operations
Set Proof Required
Mark whether proof is required in a credits configuration:Set Redemption Type
Set the redemption type in a credits configuration:JSON Output for Scripting
Use--format json for machine-readable output: