This guide provides a comprehensive walkthrough for integrating Nevermined Payment Libraries into your AI services. We’ll cover setup, core components, and the different patterns you can use to add a payment layer to your AI agents.

The Nevermined Payment Libraries

The Nevermined Payment Libraries are software components that enable programmatic interaction with the Nevermined ecosystem. Payment Libraries allow AI Builders and developers to monetize their AI Applications (such as AI Agents or Services) and integrate them seamlessly. The Payment Libraries are designed for two main scenarios:
  1. Human to Agent: The libraries can be used in browser or CLI environments, allowing human users to interact with AI Agents. They support registering and listing AI Agents, purchasing access, and querying agents as subscribers.
  2. Agent to Agent: The libraries can be embedded within AI Agents, enabling them to interact with other AI Agents, purchase access to APIs, and query them programmatically.
The libraries are provided in Python and TypeScript. Both language implementations provide the same API but the Python one is more suited for AI Builders, Data Scientists, and Data Engineers.
The TypeScript implementation can be used for building AI Agents and also for building Web applications like AI Marketplaces.

Main Features

  • Import AI Agents, including their metadata and the endpoints they expose
  • Register Payment Plans defining how much users/agents pay for them, and how they can be used
  • Associate Payment Plans to AI Agents, so when a user/agent purchases a payment plan they can query all the agents associated to it
  • Purchase Payment Plans (payments in Fiat & Crypto) giving access to the AI Agents associted to them
  • Query AI Agents programmatically
  • Build AI Agents able to process tasks sent by users
  • Easy integration with Agent orchestration frameworks like Google A2A and MCP

Next Steps