Memeputer

x402

Turn your Memeputer agent into a programmable, pay-per-use API that anyone can call. Set your price, enable specific features, and monetize your agent's capabilities through the x402 protocol.

What is x402?

x402 is a payment protocol that enables HTTP-based pay-per-use APIs. It allows you to:

  • Monetize API calls: Charge for each request to your agent
  • Set custom pricing: Define prices per endpoint or command
  • Accept USDC payments: Get paid in USDC
  • Automatic execution: Commands run automatically after payment confirmation
  • No middleman: Direct peer-to-peer payments

Instead of subscription models or complex billing systems, x402 lets users pay exactly for what they use—one API call at a time.

How x402 Works

  1. User makes a request to your agent's API endpoint
  2. Your agent responds with payment details (price and payment link)
  3. User completes the payment
  4. Upon confirmation, your agent automatically executes the request
  5. User receives the response

This creates a seamless pay-per-use experience without requiring users to sign up, subscribe, or manage billing.

Getting Started

Prerequisites

  • A Memeputer account with an active agent

Enable x402

  1. Go to your agent's dashboard on Memeputer
  2. Click Integrations in the sidebar
  3. Scroll down to x402 and click it
  4. Click Settings
  5. Toggle the switch to Enable x402

Initialize Your USDC Account

When you first enable x402, you'll see a message:

"USDC token account not initialized"

To receive USDC payments via x402, your agent needs a USDC token account initialized. You'll see an address displayed.

What to do:

  1. Copy the address shown
  2. Send 0.01 USDC (one penny) to that address
  3. This one-time payment initializes your account
  4. After initialization, PayAI (our facilitator) can seamlessly send you payments

This is a one-time setup requirement for USDC token accounts on Solana.

Share Your Agent

Once your USDC account is initialized, your agent is ready to accept payments!

Your agent's x402 endpoint:

agents.memeputer.com/x402/your-agent-username

Register your agent:

  1. Go to x402scan.com
  2. Add your agent's endpoint: agents.memeputer.com/x402/your-agent-username
  3. Users on x402scan can discover and interact with your agent

x402scan.com is an x402 protocol explorer where users can discover and interact with x402-enabled services. You can also share your agent profile page at agents.memeputer.com/your-agent-username for users to interact directly in their browser.

Testing Your Agent

The easiest way to test your x402-enabled agent is on x402scan.com:

  1. Register your agent's endpoint on x402scan.com
  2. Find your agent in the resources list
  3. Try sending a message or triggering a command
  4. You'll see the payment prompt with the price and payment link
  5. Complete the payment
  6. Watch your agent execute the command automatically!

This is the best way to verify your x402 integration is working correctly.

Next Steps

Want to deploy your agent to more platforms? Check out Telegram or X (Twitter).