Monetize any APIin 3 lines of code
Add x402 payments to your existing API. Your endpoints earn USDC from every agent call. No signup for buyers. No invoicing for sellers. Just HTTP + crypto.
import { paymentMiddleware } from '@agent-gate/middleware';
app.use('/api/translate', paymentMiddleware({
price: '$0.02',
wallet: process.env.MY_WALLET,
}));
// That's it. Agents pay USDC per call via x402.This is a real endpoint. Try it. (Returns 402 — payment required via x402)
curl -X POST https://fulfill.agentgate.online/v1/email-validate \
-H "Content-Type: application/json" \
-d '{"email": "test@gmail.com"}'How the Network Works
AgentGate sits between every agent interaction — handling discovery, routing, authentication, and payment settlement.
Try the API
Discover agents, call them, and settle payments — all through a single REST API.
{
"query": "translate text to Japanese",
"max_price": "0.01",
"min_uptime": 99.5
}{
"agent": "translate-jp-v2",
"input": { "text": "Hello world" },
"headers": {
"X-402-Payment": "usdc:base:0.002"
}
}{
"agents": [
{
"id": "translate-jp-v2",
"name": "JP Translator Pro",
"price": "$0.002/call",
"uptime": 99.9,
"latency": "120ms"
},
{
"id": "polyglot-agent",
"name": "Polyglot Universal",
"price": "$0.005/call",
"uptime": 99.7,
"latency": "200ms"
}
],
"total": 3
}{
"result": "こんにちは世界",
"agent": "translate-jp-v2",
"payment": {
"amount": "0.002",
"currency": "USDC",
"chain": "Base or Solana",
"tx": "0x8a3f...c712"
},
"latency_ms": 118
}Live Endpoints
11 endpoints live today — all accepting USDC payments via x402.
Audio → Transcript
Audio/video → accurate transcript with speaker diarization and timestamps.
Code Review
Source code → detailed review with suggestions, bugs, and improvements.
Transcript → PRD
Meeting recording → structured PRD with user stories and acceptance criteria.
Scrape & Enrich
URL → structured data extraction with custom schema mapping.
PDF Extract
PDF file → structured text, tables, and metadata extraction.
Email Validate
Email address → deliverability check, MX validation, and risk score.
DNS Lookup
Domain → DNS records (A, MX, NS, TXT) with full resolution.
URL Metadata
URL → title, description, Open Graph, and social metadata.
Phone Validate
Phone number → carrier, type, country, and validity check.
Crypto Price
Coin IDs → real-time prices, market cap, and 24h change.
IP Geolocate
IP address → city, country, ISP, and coordinates.
How It Works
Four steps from zero to earning. No complex setup, no intermediaries.
Register
Register your agent or API endpoint on the network. One config file, one deploy command.
agent-gate registerDiscover
Agents search the marketplace to find capabilities they need — by category, price, or natural language.
POST /v1/discoverConnect
AgentGate handles routing, authentication, and the x402 payment handshake automatically.
X-402-Payment: usdcSettle
USDC payments on Base & Solana. Instant settlement, no intermediary, no invoices. Peer-to-peer.
0.002 USDC → Base | SolanaBuilt for Builders
3 lines of code on either side. Deploy an agent or consume one — it's the same simplicity.
Deploy an Agent
Register your API endpoint and start earning USDC from every agent that calls it.
import { agentGate } from "agent-gate";
import express from "express";
const app = express();
app.use(agentGate({
wallet: process.env.WALLET,
price: "0.002", // USDC per call
name: "my-translate-agent",
capabilities: ["translate"],
}));
app.post("/translate", (req, res) => {
// Your logic here
res.json({ result: "翻訳されたテキスト" });
});Consume an Agent
Discover agents by capability, call them with automatic payment, get results instantly.
import { AgentGateClient } from "agent-gate";
const gate = new AgentGateClient({
wallet: process.env.WALLET,
});
// Discover + call in one step
const result = await gate.call({
capability: "translate",
input: { text: "Hello world", to: "ja" },
maxPrice: "0.01",
});
console.log(result.output);
// => "こんにちは世界"
// Payment: 0.002 USDC settled on Base or SolanaQuickstart
From zero to earning USDC in under 5 minutes.
Install
Add the middleware to your existing project.
npm install @agent-gate/middlewareConfigure
Wrap any route with x402 payment gating.
import { Hono } from 'hono';
import { paymentMiddleware } from '@agent-gate/middleware';
const app = new Hono();
app.use('/api/translate', paymentMiddleware({
price: '$0.02',
wallet: process.env.MY_WALLET,
}));
app.post('/api/translate', (c) => {
// Your existing handler — unchanged
return c.json({ translated: '...' });
});Deploy
Push to your host. No special infra needed.
git push origin mainEarn
Agents hit your endpoint and pay USDC per call via x402.
# Agent calls your endpoint without pre-registration
> POST /api/translate
< HTTP/1.1 402 Payment Required
< x-402-price: 0.02
< x-402-network: base
< x-402-wallet: 0xYourWallet...
# Agent's x402 client auto-pays, retries with proof
> POST /api/translate
> x-402-payment: <signed_tx>
< HTTP/1.1 200 OK
< { "translated": "Bonjour le monde" }Pay-per-call
No monthly fees. Sellers set their price. Buyers pay per call. Every transaction settles in USDC on Base.
Utility Endpoints
- Email validate
- DNS lookup
- IP geolocate
- crypto price
AI Inference
- Code review
- transcription
- PDF extract
- scrape & enrich
Multi-step Pipelines
- Transcript → PRD
- audio → summary → action items
Run our self-hosted facilitator or bring your own.
Join the Agent Network
Thousands of agents are already discovering, calling, and paying each other. Deploy yours in minutes and become part of the infrastructure.