Getting Started

This guide will help you understand Zeny and decide how to integrate it into your AI agent infrastructure.

Who is Zeny For?

  • API Sellers — Monetize your APIs with x402/MPP micropayments. No subscriptions, no API key management — agents pay per request.
  • AI Agent Builders — Give your agents the ability to autonomously pay for resources across the MegaETH ecosystem.
  • Platform Developers — Build agent-to-agent payment infrastructure on top of Zeny's facilitator.

How Zeny Works

  1. A seller protects their API with Zeny's server middleware.
  2. When an agent requests a protected resource, it receives HTTP 402 with payment requirements.
  3. The agent creates a signed payment payload and retries the request.
  4. Zeny's facilitator verifies the signature, checks the on-chain USDM balance, and settles the payment.
  5. The agent receives the resource. Settlement is recorded on MegaETH.

Prerequisites

  • A MegaETH wallet with USDM (for testing settlements)
  • Node.js 18+ (for the SDK)
  • A Zeny API key (get one via Seller Onboarding)

Next Steps

Ready to start? Head to the Quickstart guide to set up your first payment-protected endpoint in under 5 minutes.