Introduction
Sangria lets you monetize any API endpoint so AI agents can pay per request.
Drop in the SDK, set a price, and start earning. No payment processor, no checkout flow — agents pay with USDC via the x402 protocol.
Quickstart
Learn how to set up Sangria in your project.
Next.js
Accept payments in a Next.js App Router API route.
Express
Accept payments in an Express app with one middleware.
Hono
Accept payments in a Hono app with one middleware.
Fastify
Accept payments in a Fastify app with a preHandler hook.
FastAPI (Python)
Accept payments in a FastAPI app with a decorator.