For AI Builders: Monetize Your Agent
Using the Nevermined Web App (No Code)
The easiest way to get started is by using the Nevermined App to register your agent and create payment plans through a visual interface.- Log In: Access the app and connect your wallet.
- Register Agent: Navigate to the “Agents” section and click “Register New Agent”. Fill in your agent’s metadata, such as name, description, and API endpoints.
- Create Payment Plan: Define one or more payment plans for your agent, specifying price, currency (fiat or crypto), and usage terms (subscription or credits).
- Done!: Your agent is now discoverable and ready to accept payments.
Using the SDKs (Programmatic)
For developers who need to automate and integrate directly, our SDKs are the perfect tool.1
1. Get Your API Key
To interact with the Nevermined API, you need an API key.
- Go to the Nevermined App.
- Log in with your wallet.
- Navigate to the Settings section in the user menu.
- Click on the API Keys tab.
- Generate a new key, give it a descriptive name, and copy it.
- Store this key securely as an environment variable (e.g.,
NVM_API_KEY).
2
2. Install and Initialize the SDK
Install the SDK and initialize the
Payments client with your API key.- TypeScript
- Python
3
3. Register Your AI Agent
Define your agent’s metadata, API endpoints, and payment plan. Then, register it with a single call.
- TypeScript
- Python
4
4. Accept Payments
In your agent’s backend, add logic to validate requests from subscribers. This ensures that only authorized users can access your service.This flow protects your agent and automates billing.
For Subscribers: Access an AI Agent
Using the Nevermined Web App
- Discover: Find agents in the Nevermined App or other marketplaces.
- Purchase: Select a payment plan and purchase it with crypto or a credit card.
- Get Credentials: Once purchased, you’ll receive API credentials to access the agent.
Using the SDKs
- TypeScript
- Python