> For the complete documentation index, see [llms.txt](https://docs.emblem.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emblem.wiki/emblem-developer-platform/x402.md).

# x402

[**x402**](https://emblemvault.dev/x402-overview) is an innovative **payment middleware system** that transforms any API into a pay-per-use service through intelligent proxy technology. It creates seamless micropayment infrastructure for resource access, enabling both consumption of existing paid services and monetization of your own APIs.

<figure><img src="/files/puD2PDwGP4Ui0xLOpmxv" alt=""><figcaption></figcaption></figure>

#### Key Features & Capabilities:

* **🔄 API Transformation**: Convert any existing API into a pay-per-use service automatically
* **💰 Automatic Payment Handling**: Seamless micropayment processing without complex integration
* **🔐 Authentication Management**: Built-in user authentication through Emblem Auth login
* **🎯 Access Control**: Tiered access systems for internal and external services
* **🤖 AI Agent Integration**: Enable AI agents to access paid tools and services

#### Core Functionality:

**x402 proxies act as intelligent middleware** that sits between applications and APIs, automatically managing:

* **Authentication flows** for user verification
* **Payment processing** for resource access
* **Access control** based on payment status
* **Usage tracking** for billing purposes

#### Use Cases:

1. **Consume x402 Resources**: Access existing payment-gated services seamlessly
2. **Monetize Internal APIs**: Gate your own services for revenue generation
3. **AI Tool Access**: Provide AI agents with paid tool capabilities
4. **Usage-Based Billing**: Implement tiered pricing for internal tools

#### Unique Value Proposition:

**x402 eliminates the complexity barrier for API monetization**—instead of building custom payment systems, authentication flows, and access controls from scratch, developers can instantly transform any API into a revenue-generating service. It's like having a universal payment gateway specifically designed for the API economy.

#### Architecture Benefits:

The middleware approach means **zero disruption to existing APIs** while adding sophisticated payment capabilities. You don't need to rewrite your services—x402 wraps them with payment intelligence, making monetization as simple as creating a proxy configuration.
