TL;DR / Semantic Anchor

Botspeak.tech provides a stateless, serverless, pay-per-request payment gateway for autonomous AI agents utilizing the HTTP 402 Payment Required standard. APIs are proxy-gated and charged in USDC on the Base blockchain at edge speed, featuring recursive-loop circuit breakers, vector similarity protections, and token-level budgeting.

HTTP 402 Pay-Per-Request Gateway

THE MACHINE-TO-MACHINE REVOLUTION IS HERE.

Monetize APIs at Millisecond Scales with HTTP 402. Simple setup, zero protocol fees, built-in runaway loop-trap protection.

api
$
0x

Press ⌘+K or Ctrl+K to open the agentic command console at any time

🛡️

Circuit Breakers

Halts runaway agent sessions automatically based on call counts to prevent expensive, out-of-control loops.

🧠

Vector Similarity

Catches repetitive reasoning loops early by comparing input embedding vectors at the edge, blocking recursive calls.

📊

Token Budgeting

Tracks input and output tokens dynamically per session key, enforcing maximum budget ceilings on LLM proxy traffic.

HTTP 402 is an official HTTP status code designed for digital payments. We resurrect it to solve the friction of machine-to-machine transactions. Rather than managing complex API keys and subscription contracts, autonomous AI agents can pay for single API requests instantly and statelessly using stablecoins at edge latency.

AI agents are prone to recursive prompt loops, which can execute thousands of requests and drain thousands of dollars in minutes. BotSpeak acts as a proxy gateway that intercepts requests at the serverless edge, deploying circuit breakers, vector similarity checking, and token budgeting to detect loops early and halt traffic.

We support Base Mainnet (Layer 2) USDC by default, utilising zero-fee CDP (Coinbase Developer Platform) facilitators. Pro users can also settle transactions on Solana SVM rails using USDC, providing sub-second settlement times and fractions of a cent transaction fees.

No. BotSpeak runs as a stateless reverse proxy. You simply deploy your proxy link and point it at your existing API URL. The proxy takes care of returning the 402 status, verifying the blockchain receipt, and forwarding clean, paid requests to your server.

None. We operate on a transparent hybrid commission model: the Free tier has a 2.01% transaction fee (no monthly costs), and the Pro plan is $19.00/month with a discounted 0.51% transaction fee. Gas fees on Base L2 are paid by the querying agent and are typically less than $0.005.

Market-Dominating Pricing

No credit card required. Up and running in seconds. Built for the machine economy.

Free Tier
$0.00 / month

Perfect for developer hobbyists setting up their first autonomous agent APIs.

  • 2.01% commission fee
  • Shared Cloudflare Gateway
  • Base Mainnet USDC support
  • Standard Circuit Breakers
  • Basic Edge Analytics
Pro Plan
$19.00 / month

For production scale systems needing dedicated resources and cost protections.

  • 0.51% commission fee
  • Dedicated Cloudflare Worker + Custom Domain
  • Base USDC & Solana SVM Rails
  • Full Security Suite (Vector, Budgets, Breaks)
  • Real-Time Analytics Dashboard & API

📊 Revenue & Savings Calculator

Monthly API Request Volume 500,000 requests
Price per Call (USDC) 0.010 USDC
Total Volume Run $5,000.00 USDC
Free Tier Commission (2.01%) $100.50 USDC
Pro Tier Commission (0.51%) $25.50 USDC
Net Monthly Savings on Pro $56.00 USDC

Explorer — Active Gateways

Real-time registry of public agent gateways and network latency indices.

Status Gateway URL Target API Origin Network Cost per Call Requests Avg Latency

Getting Started

Botspeak.tech offers the easiest way to payment-gate any API endpoint, enabling secure micro-transactions directly between autonomous AI agents and servers.

How it Works

API providers register their endpoint on our platform, setting a per-call cost in USDC. When an agent queries the proxy gateway URL, the proxy evaluates the request status: if unpaid, the proxy responds with HTTP 402 Payment Required; once payment is processed via the Base network, the proxy proxies the request to your origin server.

Deployment Workflow

  • Input your backend target endpoint URL.
  • Define the cost per request in USDC.
  • Input your EVM payout wallet address.
  • Deploy the proxy in a single click and retrieve your paywalled endpoint.
Deploy Script example (TypeScript) deploy.ts
import { BotSpeakProxy } from '@botspeak/sdk';

const proxy = await BotSpeakProxy.create({
  originUrl: 'https://api.openai.com/v1',
  pricePerCall: 0.002,
  walletAddress: '0x71C7656EC7ab88b...',
  network: 'base-mainnet'
});

console.log(`Proxy deployed at: ${proxy.url}`);

x402 Protocol Specification

The x402 protocol resurrects HTTP 402 "Payment Required" to handle machine-to-machine micro-payments statelessly at the serverless edge.

HTTP 402 Response Format

When a client calls a paid gateway without a valid payment receipt, the gateway returns status 402 with the following metadata headers:

HTTP 402 Headers Response
HTTP/1.1 402 Payment Required
Content-Type: application/json
X-X402-Price: 0.005
X-X402-Currency: USDC
X-X402-Wallet: 0x71C7656EC7ab88b098defB751B7401B5f6d8976F
X-X402-Invoice: inv_7f9b8c8d8a7c29be

Fulfillment Flow

  • The autonomous agent reads the headers, gets the invoice ID, destination wallet, and price.
  • The agent calls the CDP (Coinbase Developer Platform) Facilitator on Base to trigger a transaction.
  • Upon transaction execution, the agent retries the API request, adding the payment receipt:
Fulfillment Request Headers Request
POST /v1/chat/completions HTTP/1.1
Host: gateway.botspeak.tech
X-X402-Payment-Receipt: tx_0x9a8b7c6d5e4f3a...
X-X402-Invoice: inv_7f9b8c8d8a7c29be

Edge Security & Loop Traps

A primary risk for developers deploying AI agent toolkits is the "recursive loop trap"—an infinite loop where an agent repeatedly executes the same API tool, draining budgets within minutes.

Four-Layer Protection Suite

Our Pro-tier gateway mitigates this at the Edge using four protective layers running with sub-millisecond overhead:

  • Step-Count Circuit Breaker: Monitors the execution depth of a single agent session. If requests exceed a preset depth threshold (e.g., 20 requests/minute), the circuit breaks, returning 429 Too Many Requests.
  • Semantic Vector Similarity: Ingests the agent's prompts and matches embedding vectors against previous calls. If similarity exceeds 98% sequentially, it triggers a warning and halts execution.
  • Cumulative Token Budgeting: Maintains a rolling token allowance for each token key. Once exceeded, the session is gated until the next billing window.
  • Dynamic Low-Cost Model Routing: Detects repetitive reasoning and automatically downgrades prompt execution to cheaper models to save cost.

Hono Middleware Setup

Integrating BotSpeak proxy logic directly into your serverless API is straightforward using Hono, running on Cloudflare Workers, Bun, or Node.

Hono Middleware (TypeScript) index.ts
import { Hono } from 'hono';
import { x402Paywall } from '@botspeak/hono-middleware';

const app = new Hono();

// Apply x402 paywall to premium routes
app.use('/api/premium/*', x402Paywall({
  priceUsdc: 0.01,
  recipientWallet: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
  network: 'base',
  securityLevel: 'maximum' // Enables vector loop-trap detection
}));

app.post('/api/premium/generate', (c) => {
  return c.json({ data: 'Super high value AI computation result.' });
});

export default app;

Developer Dashboard

Manage your payment gateways, view real-time latency profiles, and inspect savings.

Total Requests Gated
4,892,102
↑ 12.3% this week
USDC Settled Revenue
$24,460.51
↑ $3,211.20 this week
Recursive Loop Traps Blocked
1,245
↑ 41 loops today
Budget Costs Saved
$11,842.10
↑ $824.50 this week

Edge Request Latency & Volume (Base Network)

Commission Metrics

Blended Commission Rate 1.775%
Estimated Blended Operating Margin 98.92%
Year 5 Profit Projection $1.74M+
CDP Network Facilitator Active (Base)

Your Gated Proxies

Gateway URL Target Origin Price Network Circuit Breaker Vector Similarity Token Budgeting
🔍