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
- Service-based: Access to specific services
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
- Service details
- Payment token information
Checking Plan Balance
Check your credit balance for a plan:Creating Plans
Credits Plan
Create a pay-per-use plan with credits:Time-Based Plan
Create a subscription plan with time-limited access:Service Plan
Create a plan for accessing specific AI services:Updating Plans
Update Plan Metadata
Modify plan name, description, or tags:Update Plan Price
Change plan pricing:Plan Files and Transfers
Download Plan Files
Download files associated with a plan (if it includes static resources):Transfer Plan Ownership
Transfer plan ownership to another address:Advanced Plan Operations
Get Plan Dependencies
List other plans or services this plan depends on:Register File Plan
Create a plan with downloadable files:Mint Credits
Add credits to an existing plan (plan owner only):Burn Credits
Remove credits from a plan:JSON Output for Scripting
Use--format json for machine-readable output:
Examples
Example 1: Create a Basic AI Agent Plan
Example 2: List All Plans and Get First Plan Details
Example 3: Monitor Plan Balance
Best Practices
1. Use Descriptive Metadata
Make your plans discoverable with clear names and descriptions:2. Set Appropriate Credit Limits
Configure min/max credits to prevent abuse:3. Store Configuration Files
Keep plan configurations in version control:4. Test in Staging First
Always test new plans in staging_sandbox before production:Common Issues
”Insufficient balance”
When registering plans, ensure you have enough credits or tokens in your account.”Invalid token address”
Verify the payment token address matches your environment:- Staging: Use test token addresses
- Production: Use mainnet token addresses