Skip to main content
This guide covers how to order payment plans and manage balances using the Nevermined Payments Python SDK.

Overview

As a subscriber, you need to order payment plans to gain access to AI agents and resources. This guide explains:
  • How to check plan balances
  • How to order plans (crypto payments)
  • How to mint and burn credits (for plan owners)

Check Plan Balance

Before ordering or using a plan, check the current balance:

Check Balance for Another User

Balance Response Fields

Order Plans

Order with Crypto

Order a plan using cryptocurrency (ERC20 or native tokens):
For ERC20 token payments, ensure you have approved the Nevermined contract to spend your tokens before ordering.

Order Fiat Plans

For plans priced in fiat (USD), use Stripe checkout:

Mint Credits (Plan Owners)

Plan owners can mint additional credits for subscribers:

Mint Expirable Credits

For time-limited plans, mint credits with an expiration:

Burn Credits (Plan Owners)

Plan owners can burn credits from the plan:

Redeem Credits

Agents can redeem credits from subscribers for completed work:

Complete Example

Workflow Summary

Next Steps

Querying an Agent

Get access tokens and make requests

Request Validation

How agents validate requests