# Build Paid APIs for AI Agents (x402 + USDC)

> How to build a service AI agents pay for per call, in USDC, over x402: the 402 challenge flow, the facilitator, EIP-3009 signing, pricing, discovery surfaces, and the honest economics.

Build Paid APIs for AI Agents (x402 + USDC) is a paid AI agent skill on Agensi by toolweather. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $29 (one-time purchase)
- Creator: [toolweather](https://www.agensi.io/creators/toolweather)
- Version: 1.1
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/build-paid-apis-for-ai-agents-x402-usdc
- Tags: web3-crypto, apis-backend

## About this skill

Build a paid API that AI agents pay for per call, in USDC, over x402. Written by a team running 16 paid endpoints: the seller never custodies funds, the buyer signs an EIP-3009 TransferWithAuthorization, and a facilitator verifies and settles. Covers the 402 challenge flow, the facilitator contract, pricing in atomic USDC, the discovery surfaces (openapi x-payment-info, /.well-known/x402, PAYMENT-REQUIRED), and the honest per-recipient economics so you know whether the service is worth building.

## Requires

- Node.js 20+
- TypeScript
- Base network RPC access
- An EVM wallet address for payouts

## Known limitations

Does not custody funds or run a facilitator; you need a facilitator endpoint (Base's or your own). Publishing to a directory that requires an API key is a manual step.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Build Paid APIs for AI Agents (x402 + USDC) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Build Paid APIs for AI Agents (x402 + USDC) do?

How to build a service AI agents pay for per call, in USDC, over x402: the 402 challenge flow, the facilitator, EIP-3009 signing, pricing, discovery surfaces, and the honest economics.

### Which AI agents support Build Paid APIs for AI Agents (x402 + USDC)?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Build Paid APIs for AI Agents (x402 + USDC)?

Connect your AI agent to Agensi through MCP, then ask it to use Build Paid APIs for AI Agents (x402 + USDC) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
