Every AI agent that hits your module pays over HTTP 402. No signup. No brand trust. Just a 200. 70% goes to you, forever.
One round trip between the agent and MeterCall. No off-chain invoicing, no monthly reconciliation, no vendor portal logins.
POST /v1/module/{slug}/call with payload and agent ID.
We respond with price, asset, chain, and a one-shot invoice nonce.
Agent retries with an X-PAYMENT header containing the signed payload.
Module runs. We return the data and a settlement receipt hash.
Three languages, one protocol. Drop this into any agent framework — LangChain, CrewAI, AutoGen, bare HTTP, whatever you ship with.
# 1. Initial call — receives 402 curl -X POST https://api.metercall.ai/v1/module/stock-quote/call \ -H "X-Agent-ID: agt_7Zf2kQ" \ -d '{"ticker":"NVDA"}' # Response: # HTTP/1.1 402 Payment Required # X-Payment-Required: {"price":"0.001","asset":"USDC", # "chain":"base","nonce":"inv_8ab3","to":"0xMC...a1"} # 2. Agent signs, retries with X-PAYMENT header curl -X POST https://api.metercall.ai/v1/module/stock-quote/call \ -H "X-Agent-ID: agt_7Zf2kQ" \ -H "X-PAYMENT: eyJzaWciOiIweGFiMTIuLi4iLCJub25jZSI6ImludjhhYjMifQ==" \ -d '{"ticker":"NVDA"}' # Response: 200 OK # { "price": 892.14, "ts": 1713200000, "receipt": "0xrcp...9f" }
from metercall import AgentClient client = AgentClient( agent_id="agt_7Zf2kQ", wallet="cdp://base/0xAgent...f3", # Coinbase CDP spend_cap_usd=25.00, # daily cap ) # Handles the 402 handshake + X-PAYMENT automatically result = client.call("stock-quote", {"ticker": "NVDA"}) print(result.data) # {"price": 892.14, ...} print(result.receipt) # "0xrcp...9f" print(result.cost_usd) # 0.001
import { MeterCall } from "@metercall/agent" const mc = new MeterCall({ agentId: "agt_7Zf2kQ", wallet: "thirdweb://base/0xAgent...f3", // Thirdweb Engine spendCapUsd: 25.00, }) // Auto-handles HTTP 402, signs payload, retries const { data, receipt, costUsd } = await mc.call( "stock-quote", { ticker: "NVDA" } ) console.log(data) // { price: 892.14, ... } console.log(receipt) // "0xrcp...9f"
Pick the settlement layer your agent already has a wallet on. We meet you there.
Native x402. Sub-second finality, gas under a penny, Coinbase CDP wallets supported out of the box. Default for most agents.
For agents with existing Ethereum wallets. Higher gas; we batch settlement every 60 seconds to keep costs under 1%.
Non-crypto agents can pay with a Stripe secret key bound to the agent. Good for cloud orchestrators and serverless runners.
Lithic or Stripe Issuing. Mint a single-use card with a spending cap per agent. Full audit trail, no crypto touched.
Give your agent an identity and a spending cap. Takes 30 seconds. Cap is enforced at our edge — you cannot overspend.