Crypto payments for Meta services and AI agents
Empower your APIs and agents to transact autonomously using HTTP 402 Payment Required on Solana. Micropayments in ~200ms. No API keys.
Client
402
Pay
Verify
Access
// Express.js (TypeScript)
import express from "express";
import { paywall, initMetaPay, MetaPayConfig } from "@metapay402/express";
const app = express();
initMetaPay(new MetaPayConfig({
walletAddress: "YOUR_WALLET_ADDRESS",
tokenMint: "USDC_MINT_ADDRESS"
}));
app.get("/meta-ads",
paywall({ price: "0.10" }),
(req, res) => res.json({ data: "Ad insights and premium metrics" })
);
app.listen(3000, () => console.log("MetaPay402 Express server running on port 3000"));
Built for developers
Turn endpoints into revenue, remove manual billing, collect USDC instantly.
Built for agents
Autonomous tools can pay for ads, analytics, and compute on demand.
Built for Meta
Designed for Meta Ads and APIs; multi-chain expansion planned.
About MetaPay402
MetaPay402 is a Meta-native framework built on the X402 protocol. It enables APIs, Meta services, and AI agents to execute autonomous crypto transactions using the HTTP 402 Payment Required standard, powered by Solana for secure and near‑instant micropayments.
- Seamless integration: Add MetaPay402 to any API or service with minimal setup.
- AI optimized: Built for autonomous agents and Meta’s AI ecosystems.
- Instant settlement: Transactions complete in ~200ms on Solana.
- Crypto micropayments: Enable requests as small as $0.001 per call.
- No credentials needed: No API keys, subscriptions, or manual billing.
- Blockchain flexible: Runs on Solana with additional networks planned.
- Framework ready: Compatible with FastAPI, Express, LangChain, and LangGraph.
How it works
- Client request: A Meta app or AI agent requests a paid endpoint.
- 402 trigger: API responds with HTTP 402 and payment instructions.
- On-chain payment: Client signs and sends a Solana transaction.
- Verification: API validates the transaction on-chain.
- Access: Data unlocks in real time. Typical loop: ~200ms.
Start building with MetaPay402
Install the SDKs for Python or TypeScript and add a paywall to your API.