AgentPay logoAgentPay

xBuilt on x402

Payments for AI Agents

AgentPay is the payment layer for AI agents. It gives agents managed wallets and automatic 402 handling—like Stripe does for humans.

import { createAgentPayClient } from "@agentpay/sdk";

const client = createAgentPayClient({
  apiKey: "pk_...",
  baseUrl: "https://api.agentpay.solutions",
});

const res = await client.get("https://paid-api.example/resource");

Live API

https://api.agentpay.solutions

One API key. No wallet setup in your code. 402 responses are paid and retried automatically.

[ What we offer ]

It's not payments for your app. It's payments for your AI.

Managed agent wallets

Create, fund, and operate wallets entirely via API. One API key per agent.

402 middleware SDK

Drop-in HTTP client. Intercepts 402, pays via AgentPay, retries with PAYMENT-SIGNATURE.

Receive USDC

Expose paid APIs with your wallet as payTo. Other agents pay you in USDC on Base.

Realtime spend

Track every payment. Dashboard and API for spend history and wallet balances.

Custom domains

Point to your own x402 facilitator. Works with any payable API.

SDKs + REST

TypeScript and Python SDKs, RESTful API. Get started in minutes, not days.

[ By the numbers ]

Built for scale.

Payments

Processed on Base. Real USDC, real agents.

Always on

Enterprise-grade reliability

Built on redundant infrastructure. Your agents never miss a payment.

Instant wallets

One API call

Spin up a new wallet in milliseconds. No key management, no gas in your code.

Developer first

Simple, intuitive API

RESTful endpoints, typed SDKs. Get started in minutes, not days.

[ Use Cases ]

Use Cases

Powering every type of agent: from paid APIs to multi-agent teams, AgentPay enables any agent to pay and get paid in USDC.

agentpay.solutions · flow
OUT

GET https://paid-api.example/resource → 402 Payment Required

Your agent

IN

POST /v1/pay → PAYMENT-SIGNATURE → retry

AgentPay

IN

GET https://paid-api.example/resource → 200 OK

Your agent

Tasks Completed

  • Received 402 from paid-api.example
  • Paid via AgentPay, retried with PAYMENT-SIGNATURE
  • Got 200 OK and response body

[ Pricing ]

Simple pricing

Start free. Upgrade when you need more API keys, wallets, and payments. No surprises.

Free

For getting started

$0/month

  • No credit card required
  • 3 API keys
  • 3 wallets
  • 3,000 payments/month
Get started free

Developer

For individual developers

$20/month

  • 10 API keys
  • 10 wallets
  • 10,000 payments/month
  • 10 custom domains
  • Email support
Upgrade

Agency

For scaling teams

$200/month

  • 150 API keys
  • 150 wallets
  • 150,000 payments/month
  • 150 custom domains
  • Dedicated IPs
  • SOC 2 report (coming soon)
  • Discord support
Upgrade

[ FAQ ]

Frequently asked questions.

What is AgentPay?
AgentPay is an API-first payment layer for AI agents. You get managed x402 wallets and an HTTP client that automatically handles 402 Payment Required—so your agent code just calls get(url) and we handle paying and retrying. You can also receive real USDC from other agents by running a paid API with your wallet as the payTo address.
How do I get money from other agents and spend it in the real world?
Run an API that returns 402 with payTo set to a wallet you control (e.g. your Coinbase wallet). When other agents pay your API, USDC is sent to that address. Withdraw USDC to Coinbase and use Coinbase Card to spend at any Visa merchant—Coinbase converts USDC at checkout. Available in the US and select countries.
How is AgentPay different from wiring up a wallet myself?
We handle wallet provisioning, funding, signing, and 402 flows. You use one API key and our SDK. No gas, no key management, no payment logic in your agent.
Do you support custom domains or my own facilitator?
The API works with any x402 facilitator via environment config. You can point to your own or use a hosted one.
Can I set spend limits per agent?
Yes. Budgets and allowlists are part of the product roadmap and can be enforced at the API so agents can't exceed limits or pay unapproved domains.

Get started in seconds

Install the SDK and start building with AgentPay

npm install @agentpay/sdk