cd /news/ai-agents/freemium-for-ai-agents-free-vs-paid-… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-138441] src=agentbadge.xyz β†— pub= topic=ai-agents verified=true sentiment=Β· neutral

Freemium for AI Agents: Free vs Paid Tiers via HTTP 402 in an MCP Server

AgentBadge implemented a freemium paywall for AI agents in its MCP server using HTTP 402 and the x402 payment scheme, allowing one free request per minute before returning a 402 response with a machine-readable invoice. Agents pay 5 USDC on the Arc Testnet via an EIP-3009 transfer signature to receive a 30-day ServicePass, with the server verifying the on-chain receipt and rejecting replayed transaction hashes with a tx_replayed error. The approach removes the need for API keys, signup, email, or a card, letting an agent see the price, sign a transfer, and gain access in seconds.

read3 min views1 publishedSep 23, 2026
Freemium for AI Agents: Free vs Paid Tiers via HTTP 402 in an MCP Server
Image: Agentbadge (auto-discovered)

How do you sell freemium to an agent with no card and no checkout form? HTTP 402 + x402: a programmable paywall where the agent pays on-chain in seconds.

Freemium for AI agents works via HTTP 402: one free request per minute, then a 402 response carrying an x402 payment challenge β€” the agent pays on-chain and gets a 30-day ServicePass, no account or checkout needed.

Every SaaS has a free tier and a paid tier. But how do you sell the paid tier when the customer is not a person but a program? An agent has no card, cannot fill a checkout form, cannot type a CVV.

We solved it with HTTP 402 Payment Required β€” a status code that waited three decades for its moment. It is not an error. It is an invoice.

Every request passes three doors: a live ServicePass means instant real-time; otherwise the free bucket allows one request per minute (a snapshot); otherwise the server answers 402 with an invoice. One USDC transaction (5 USDC on Arc), an on-chain receipt check β€” and the agent holds a 30-day ServicePass.

How the gate works #

Every request to the tracker passes three checks:

  1. Already paid? If the agent holds a live ServicePass (a 30-day access token) β€” data flows immediately.
  2. Free allowance? One request per minute is free. A snapshot, not a stream.
  3. Neither? The server answers 402 and attaches an invoice to the response: what, to whom, how much.

Inside the invoice #

The 402 response is not just text. The PAYMENT-REQUIRED header carries a machine-readable payment description:

{
  "x402Version": 2,
  "accepts": {
    "scheme": "eip3009-client-broadcast",
    "network": "eip155:5042002",
    "asset": "USDC",
    "amount": "5000000",
    "payTo": "0xcdd2...699d",
    "maxTimeoutSeconds": 345600
  }
}

The agent reads it like a price list: the payment scheme (EIP-3009 β€” a standardized transfer signature), the network (Arc Testnet), the asset (USDC), the amount (5 USDC β€” the six zeros are decimals, the amount is in base units), the recipient, and the invoice expiry (4 days).

Why not API keys and billing portals #

An API key needs signup, an email, a card, invoices β€” a human in the loop. 402 + x402 is a programmable paywall: the agent sees the price β†’ signs a transfer β†’ pays β†’ gets access. The whole cycle takes seconds. For a machine, this is the native way to buy things.

One payment pays once #

After paying, the agent retries the request with the transaction hash attached. The server checks the blockchain β€” not a claimed signature, but the real receipt from a block β€” and opens access. The same hash cannot be presented twice: the server atomically claims it, and a second attempt gets tx_replayed. Even ten parallel requests with the same hash β€” exactly one gets through.

Next: the payment itself on Arc β€” and why gas there is paid in USDC.

Links

── more in #ai-agents 4 stories Β· sorted by recency
── more on @agentbadge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/freemium-for-ai-agen…] indexed:0 read:3min 2026-09-23 Β· β€”