What is an AI Agent?
In the Nevermined ecosystem, an AI Agent is any AI service or tool that you want to monetize. It’s more than just a model; it’s a complete service that can:- Make and receive digital payments in both fiat and crypto.
- Expose its functionalities through HTTP API endpoints.
- Be discovered and accessed by subscribers through flexible payment plans.
- Validate access using bearer token authentication.
- Track usage with automatic credit redemption.
Agent Components
Metadata
Name, description, tags, and creation date for discovery.
API Endpoints
HTTP endpoints that define how to interact with your agent.
Payment Plans
One or more plans that define pricing and access terms.
Access Control
Token-based authentication through Nevermined Proxy or direct validation.
What is a Payment Plan?
A Payment Plan is a set of rules and conditions that define how subscribers pay to access your AI Agent. Plans are highly flexible and are defined by two main components: their price and the consumption model.Key Attributes of a Payment Plan:
Payment Type
Choose whether to charge in Crypto (any ERC-20 token or native coin) or Fiat (via Stripe integration).
Price Configuration
Set the total price for the plan and define how the revenue is distributed among one or more receivers. Supports multi-receiver splits.
Plan Types
- Time-based: Limited by duration (e.g., 30 days, 1 year)
- Credits-based: Limited by usage (e.g., 100 queries)
- Trial: Free limited access for testing
Credit System
Define how many credits a subscriber receives upon purchase and how many are consumed per request. Supports: Fixed price per request, Dynamic pricing per request (min/max range where redemption is based on query complexity).
Credits-Based Plans
Credits-Based Plans
Perfect for usage-based pricing models:
- Fixed Credits: Set amount of credits (e.g., 100 credits)
- Credits per Request: Set how many credits each query consumes
- Flexible Redemption: Redeem different amounts based on usage
Time-Based Plans
Time-Based Plans
Ideal for subscription models:
- Duration: Set expiration time (days, months, years)
- Unlimited Usage: Within the time period
- Auto-expiry: Plan expires after duration
Hybrid Plans
Hybrid Plans
Combine time and credits:
- Credits with Expiry: E.g., 1000 credits valid for 30 days
- Rate Limiting: Control usage within time periods
Example Payment Plans
- AI Travel Advisor: Offer a “Regular” plan for $100/month or a “Premium” plan for $900/year.
- Code Copilot: A usage-based plan costing $10 for 100 credits, with each request consuming 1 credit.
- Legal Assistant: A tiered model with a “Silver” plan ($100 for 500 credits, 5-25 credits per query) and a “Gold” plan ($10,000 for unlimited access for a year).
How It All Works Together
1
Agent Registration
Builders register their AI agents with metadata and API endpoints, defining how the service can be accessed.
2
Plan Creation
Builders create one or more payment plans, setting prices, credit amounts, and consumption rules.
3
Subscriber Purchase
Users discover agents and purchase plans using fiat or crypto payments.
4
Access Token Generation
Upon purchase, subscribers receive bearer tokens for authenticated access.
5
Query & Validation
When querying an agent, the Nevermined system validates the token and checks credit balance.
6
Automatic Billing
Credits are automatically deducted based on usage, with proof of consumption tracked on-chain.