Nevermined Payments

Integrate Nevermined for AI payments, subscriptions, and access control

Overview

The Nevermined Payments node integrates with the Nevermined platform to manage AI-related payments, subscriptions, and access control. Specifically, the Register Credits Plan operation allows users to create new credit plans that define how many credits a customer can purchase, at what price, and under what conditions (one-time or subscription). This is useful for SaaS platforms or AI service providers who want to monetize API usage or interactions by selling credits.

Typical use cases include:

  • Defining pricing tiers for AI agent interactions.
  • Creating subscription or one-time purchase plans for API credits.
  • Managing credit validity, usage limits, and categorization via tags.

Example: A company offers a "Basic Plan" with 100 credits for $10 USD as a monthly subscription, allowing customers to pay and consume AI service credits accordingly.

Properties

Name Meaning
Plan Name The name of the credits plan (e.g., "Basic Plan").
Description Text describing what the plan offers (e.g., "100 credits for AI agent interactions").
Price Cost of the plan in USD. For crypto payments, this will be converted at current rates.
Credits Number of credits included in the plan; each credit typically represents one interaction or API call.
Plan Type Whether the plan is a one-time purchase or a recurring subscription. Options: One-Time, Subscription.
Additional Plan Options Collection of optional settings:
- Currency Currency for pricing. Options: USD, EUR, GBP.
- Validity Period (Days) Number of days credits remain valid (0 means no expiration).
- Max Usage Per Day Maximum credits usable per day (0 means unlimited).
- Tags Comma-separated tags to categorize the plan (e.g., "ai, nlp, basic").

Output

The output JSON object for the Register Credits Plan operation includes:

  • planId: Unique identifier generated for the plan.
  • name: Plan name.
  • description: Plan description.
  • price: Price in the specified currency.
  • credits: Number of credits included.
  • type: Plan type (oneTime or subscription).
  • currency: Currency code.
  • validityDays: Credit validity period in days.
  • maxUsagePerDay: Daily usage limit.
  • tags: Array of tags.
  • status: Status of the plan (usually "active").
  • createdAt: Timestamp when the plan was created.
  • environment: Environment string (e.g., "production" or "test").
  • message: Confirmation message indicating successful registration.
  • pricePerCredit: Calculated price per individual credit (formatted as a string).

This structured output confirms the creation of the credits plan and provides all relevant details for downstream processing.

Dependencies

  • Requires an API key credential for authentication with the Nevermined platform.
  • The node uses environment-specific base URLs for API calls, configurable via credentials.
  • No additional external dependencies are required beyond the Nevermined API access.

Troubleshooting

  • Missing Required Fields: If "Plan Name", "Price", or "Credits" are missing or invalid (e.g., negative price or zero credits), the node throws errors prompting correction.
  • Invalid Input Types: Ensure numeric fields like price and credits are numbers and meet validation criteria.
  • API Key Issues: If the API key is not provided or invalid, the node will throw an error indicating missing credentials.
  • JSON Parsing Errors: Although this operation does not require JSON input, other operations do; ensure JSON inputs are well-formed.
  • Unexpected Errors: General failures during plan registration suggest checking API key validity and plan configuration.

Links and References


If you need summaries for other operations or resources, feel free to ask!

Discussion