x402-payments

Enable HTTP-based stablecoin payments for API resources using the x402 protocol.

9|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Aznatkoiny/zAI-Skills --skill x402-payments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x402-payments
Source: https://github.com/Aznatkoiny/zAI-Skills/tree/main/AI-Toolkit/x402-payments
Command: npx skills add https://github.com/Aznatkoiny/zAI-Skills --skill x402-payments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Programmable, HTTP-based stablecoin payments for API resources enable monetization of AI tools and paid endpoints with minimal integration effort.

Core Features & Use Cases

  • Integrate x402 payment requirements into HTTP APIs to monetize per-request access.
  • Support seller/server and buyer/client workflows, MCP servers, and paid tool access across EVM and Solana networks.
  • Enable dynamic pricing, lifecycle hooks, and Bazaar discovery for flexible monetization.

Quick Start

Create a protected API endpoint, trigger a 402, sign a PAYMENT-SIGNATURE, and retry to access the resource.

Frequently Asked Questions about x402-payments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I charge for API requests using stablecoins?

x402 enables stablecoin API payments by enforcing HTTP 402 payment requirements. Clients receive a 402 response, sign a PAYMENT-SIGNATURE, and retry the request to settle the USDC microtransaction and access the resource.

Does x402 work with Express, Hono, and Next.js?

x402 integrates with Express, Hono, and Next.js to enforce stablecoin payment verification and settlement flows. This allows developers to implement pay-per-request endpoints within their existing web server frameworks.

How do I implement a paywall for MCP servers and AI agents?

You can implement a paywall for MCP servers and AI agents by enforcing x402 stablecoin payment requirements on paid tool access. This supports both seller/server and buyer/client workflows across EVM and Solana networks.

Can I use dynamic pricing and lifecycle hooks for blockchain API payments?

Yes, x402 supports dynamic pricing and lifecycle hooks for blockchain API payments. This allows you to adjust USDC costs per request and trigger custom logic during the payment settlement flow across EVM and Solana networks.

What are the limitations of HTTP-based stablecoin microtransactions?

HTTP-based stablecoin microtransactions require clients to handle the 402 payment retry and signature flow. Both the API server and calling client must implement x402 verification and settlement logic across supported EVM and Solana networks.