Chapter 35 · Will Machine Payments Become an Internet Protocol?
How do machines pay for one API call?
- Capabilities practiced
- AI LiteracyProtocol LiteracyFinancial Literacy
- Hands on
- Find a pay-per-call API, calculate the true cost of one call, and compare it with a subscription.
- AI Lab
- Have AI compare several machine-payment protocol options, then verify that the standards it cites exist and that their versions are correct.
A Real-World Problem
Your software requests an interface. The response is 402, Payment Required.
Then it stops.
Other codes have known responses: 404, find elsewhere; 401, supply credentials; 403, stop; 429, wait and retry.
They work because everyone agrees on the next action. Software follows rules without interpreting meaning.
402 is the exception, reserved for decades but without a standard answer to:
How much?
To whom?
Using what?
How do I prove payment?
Can I recover it if service is not delivered?Humans use pages, prices, cards, and forms. Software cannot, because none of those steps is standardized.
The internet bypassed this through advertising, third-party funding, and accounts, prepaid relationships with later deductions.
Both assume a human payer and continuing relationship.
Software may need an interface only once. Ads have no meaning; registering for a few cents costs more effort than the transaction.
This chapter asks how machines pay for one API call.
We cover the problem and usual approaches, not specification fields, versions, or signatures, which change rapidly. Consult current primary documentation using Keeping Up with Crypto.
Thought Experiment
Software makes ten thousand calls daily, each worth fractions of a cent, totaling roughly a dozen currency units.
It has no previous relationship with the provider and may use it only today.
Four pricing models follow.
Subscription: unlimited usage for a monthly fee.
Potentially cheap, but requires predicting continuing use. One day's use pays for twenty-nine unused days.
Registration establishes a relationship, requiring credentials, payment, and terms. Dynamic selection across hundreds of interfaces needs human intervention.
Prepaid: deposit, meter requests, refill.
Chapter 33 explained this effective mainstream method, batching tiny uses into one real payment.
Providers times agents means many accounts, and prior registration prevents immediate use after 402.
On-chain payment for every call.
No registration or previous relationship; the payer is an address.
But network fees on every transfer may exceed the service cost across ten thousand calls.
This repeats the card mismatch: large-infrequent settlement applied to small-frequent consumption.
Establish credit, meter lightly, settle periodically.
The viable structure combines one setup, ongoing metering, periodic settlement.
Setup can be permissionless funding or authorization rather than provider-approved registration.
Compare:
| Subscription | Prepaid | On-chain per call | Setup + metering + settlement | |
|---|---|---|---|---|
| Ten-thousand-call cost | Low | Very low | Infeasible | Low |
| Prior relationship? | Yes | Yes | No | No, one setup |
| Good for one use? | No | Mixed | No | Yes |
| Counterparty risk | You prepaid | Provider holds balance | None | Setup-dependent |
| Unused capacity | Wasted | Balance remains | Not applicable | Pay actual usage |
| Common today? | Yes | Yes | Technically possible | Still emerging |
The first two are reality; the fourth is a direction, whose standardization we assess.
Metering and settlement are separate:
Metering records usage; settlement moves money.
Micropayment difficulty lies in metering. Separate them and choose any economical settlement rail.
Your Decision
You operate an interface service for software. How do you charge?
What Happens
Six questions require standardized answers:
| Question | Human approach | Software requirement | HTTP supplies it? |
|---|---|---|---|
| Amount | Read price | Machine-readable quote | No |
| Recipient | Read details | Explicit identifier | No |
| Rail | Card | Usable channel | No |
| Completion | Success screen | Determinable signal | No |
| Proof | Order or screenshot | Verifiable receipt | No |
| Dispute | Call or refund | Handling path | No |
HTTP standardized information flows, but not money.
402's reservation was deliberate. Suitable internet money was absent: cross-border, tiny, relationship-free, and machine-operable.
Banks and payment networks had separate interfaces, account rules, and coverage. A protocol could require payment but could not specify a universal way to pay.
Chapter 13 described internet-native money, held without accounts and settled publicly, creating a possibility.
The core claim:
HTTP carries information; machine economics also needs a protocol carrying money.
The missing layer awaited suitable money, not interest in building it.
Possibility does not ensure adoption.
Build a Model
1. Three Independently Evolving Layers
Separate independently evolving layers:
- Quote: the price
- Payment: moving money
- Metering: actual usage
| Layer | Task | Current state | Difficulty |
|---|---|---|---|
| Quote | Price, unit, expiry | Provider-specific | Consensus rather than technical difficulty |
| Payment | Funds movement | Existing rails | Mainly cost |
| Metering | Usage both parties accept | Provider records trusted | Trust problem |
Metering is genuinely hard for nontechnical reasons.
A provider reports 10,312 calls. How do you verify? Independent logs may disagree; existing arrangements let the prepaid provider decide.
Contracts and reputation support this for companies. Stranger software-provider pairs lack that foundation.
Per-call payment eliminates later reconciliation, but costs too much.
Coarser payments reduce cost and increase required trust.
2. Four Models by Required Trust
| Model | Granularity | Trust | Suitable users |
|---|---|---|---|
| Per call | One payment each | Least | Rare, high-value calls |
| Small batches | Settle groups | Low, one batch at risk | Frequent tiny use between strangers |
| Prepaid | Deposit and deduct | Medium, provider-held balance | Long-term relationships |
| Subscription | Periodic | Most, pay before service | Stable customers |
Moving down reduces friction and increases trust.
Check whether required trust matches the relationship. A stranger-oriented system demanding large prepayment has not solved its claimed problem.
Small batches fit machines best, limiting counterparty loss while settling often enough to keep exposure small.
3. Three Costs Determine Granularity
Payments impose:
Network: Transfer fees
Time: Waiting for confirmation
Complexity: Steps and state both parties maintainBalance these against trust:
Do not pay at a granularity where all three costs exceed an acceptable fraction of the transaction.
Fractions-of-cent services are smaller than nearly any chain operation. Avoid per-call settlement even as chains cheapen, since service prices decline too.
4. Standards Win Through Adoption, Not Technical Quality
This determines the chapter's central answer.
HTTP did not win solely by technical superiority. Standards need conditions:
| Condition | Meaning | Machine-payment status |
|---|---|---|
| Low integration cost | Days, not major rebuilding | Solution-dependent |
| Unilateral benefit | No need to wait for others | Absent: payers need recipients |
| Painful unmet use | Otherwise impossible work | Emerging, not widespread |
| No adequate alternative | Existing tools fail | Absent for most: prepaid suffices |
The second and fourth are nontechnical barriers.
Two-sided adoption means recipients wait for payers and vice versa, as in Chapter 30.
The incumbent works well. Replacement needs order-of-magnitude improvement or previously impossible capability.
Watch:
1. Real accepting services, especially supply
2. Why they accept: new customers or lower costs?
3. Uses impossible without itThe third is strongest, such as tiny payments to strangers in Chapter 33.
5. Likely Form
A plausible outcome:
An optional convention over HTTP, alongside accounts and subscriptions, rather than universal replacement.
Settlement rails remain replaceable. Stablecoins fit internet-native, account-free, programmable requirements, but should not lock the protocol to one rail.
Metering standardizes first in narrow valuable scenarios, especially previously uncollectible payments.
Least likely is universal adoption simply because the architecture is excellent.
What It Is Called
Tiny, frequent payments.
Tiny means fixed payment costs approach or exceed the amount, not an absolute threshold.
Fees explain only half the difficulty. Metering and reconciliation also exceed tiny transaction values.
The solution avoids making most payments real individually, batching through metering and occasional settlement.
Payments using fiat-pegged on-chain tokens.
Account-free holding, stable units, and publicly verifiable transfer/settlement make them relevant.
Chapter 13 covered risks. Issuer credit risk remains, amplified by a system relying on one issuer.
402 means Payment Required, long reserved and rarely used.
New approaches return readable payment terms with 402, then accept a retry with payment proof.
No specific fields, versions, or signatures are given here, because stale or false details can cause losses.
Read current official specifications. Maturity is measured by actual paid services, not document completeness.
Shared conventions allowing software to pay software.
Cover quotes, recipients, rails, completion, proof, and disputes. The first five have feasible approaches; the sixth remains largely missing.
Disputes matter because chargebacks underpin stranger commerce. Without them, payments must be too small to contest.
Micropayments may be the initial viable market precisely for that reason, rather than merely one application.
Accurate usage records accepted by both sides.
Who decides when records disagree? This is a trust problem.
Provider authority works with contracts and reputation, less well between strangers.
Smaller batches limit losses. Reduced exposure substitutes for established trust, a practical compromise.
In one sentence:
HTTP carries information; machine economics also needs a protocol carrying money.
Metering is the technical challenge; supply adoption is the market challenge. Count accepting services, not specifications.
Hands-on
The aim is revealing costs absent from sticker prices, not finding the cheapest service.
Choose three plausible data, model, or storage services, including per-call and subscription options.
Record prices and every condition.
Service:
Billing: per call / usage / subscription / hybrid
Price:
Minimum deposit:
Monthly minimum or fee:
Free allowance:
Overage: tiers / higher prices / throttlingMinimum deposits hide a major condition. A large deposit for a few calls is not truly per-call payment for you.
Include three additional costs.
Sticker cost:
Amortized minimum or monthly fee:
Unused prepaid balance:
Integration time, valued approximately:
Real cost per call = Sum of four costs ÷ Call countCalculate at ten, one thousand, and one hundred thousand daily calls.
Low usage increases hidden-cost proportions, sometimes multiplying real cost severalfold.
Find the subscription/per-call crossover.
Below ___ daily calls, per-call is cheaper
Above ___, subscription is cheaper
Crossover: ___What if usage is unknown beforehand?
This is the core question. Software must choose upon encountering a service. Unknown usage is normal for machines, unlike pricing assumptions.
Inspect payment methods.
Cards?
Prepaid?
Any on-chain method?
Opening requirements: email / company / identity
Can software complete opening alone?The last answer is likely no, more significant than cost estimates.
Chapter 33 identified supply as the bottleneck; verify it yourself.
Identify money not collected today.
Find genuine demand excluded by pricing or account structure.
Caller category and scenario:
Usage:
Exclusion reason: expensive / no account / one use
Potential per-call market:
Why the provider has not addressed it:The last usually means insufficient market size, not lack of imagination.
When that changes determines adoption.
Take the provider's perspective.
Additional engineering, accounting, compliance costs:
Additional revenue:
Main concern:
Conditions guaranteeing adoption:The final condition is the real roadmap, usually a customer requirement or number rather than technology.
You have three cost curves, a crossover, current payment methods, unmet demand, and a provider adoption condition.
The last is most valuable. Ask whether providers earn more or spend more, filtering much of the noise.
AI Lab
Use Chapter 31's verification method in an especially error-prone field, with changing English specifications and mixed versions.
Errors are above average, often professional-looking nonexistent details.
Compare current approaches to payments between machines.
For each:
1. Which questions are solved: quote, recipient, rail, completion, proof, dispute?
2. How is metering handled?
3. Maturity: idea, proposal, or actual services?
4. Verifiable accepting services; admit uncertainty.
Requirements:
- Source every specification name, version, code, and field.
Mark uncertainty as requiring official verification.
- Do not call proposals standards.
- Separately list shared unresolved problems.Unresolved problems are usually most valuable: disputes, supply adoption, and metering trust, rather than generic ecosystem-building language.
Do three things.
Extract and check technical details.
Claimed | Verified | Correct?
Version | |
Status code | |
Field | |
Interface usage | |Use official sites or repositories, not just supplied links. Combining individually real details from different versions can produce a nonexistent specification.
Check separation of metering and settlement.
Most discussion covers only funds movement. Omitted usage accounting reveals superficial understanding.
Ask about supply.
Why would providers integrate each approach?
Does integration increase revenue or cost?
If cost, what persuades them?Answer quality measures understanding. Technology-only arguments become empty at the actual bottleneck.
Expect:
- High detail-error rates, especially versions and fields.
- Proposals labeled standards.
- Missing disputes.
- Little supply analysis, despite adoption barriers.
Record total, verified, and false details. False counts often exceed other topics, teaching when extra caution is needed.
Verify these points yourself after using AI
- Confirm every named specification at its official site or repository
- Compare versions, codes, fields, and signatures with current official text
- Check whether specifications were updated or retired
- Distinguish proposals from widely adopted standards
- Verify concrete examples of accepting services
- Does it separate metering and settlement?
- Does it cover disputes?
- Does it explain provider adoption incentives?
- Count details, verified details, and nonexistent or incorrect details
Real-World Case
402 has long meant Payment Required, reserved for future use.
Most internet business models developed while it remained largely unused.
No universal executable payment method existed across fragmented banks, gated accounts, and expensive small transfers.
Advertising and accounts instead shaped free content, data monetization, and platforms.
Reserved protocol capability waits for supporting conditions, potentially for decades.
Understand the mature baseline before evaluating new protocols.
Accurate call, byte, and compute metering batches consumption into bills, refined over years.
New approaches attach to this layer rather than replace it. Moving funds is the easier part.
Account creation assumes a legal relationship, harmless for companies but difficult for short-lived software.
Existing solutions meet boundaries in new customer forms, rather than simply failing altogether.
Collection costs exceed tiny prices, preventing transactions with real demand.
An article page, small tool, record, or audio minute must become ad-supported free access or monthly bundles.
Ads distort incentives; subscriptions demand commitment for one-time use.
Willingness to pay a few cents falls into the gap.
This unmeasured market may be the breakthrough, enabling absent transactions rather than taking existing payment share.
Chapter 30's framework distinguishes impossible-old uses from slight improvements. The former offers opportunity.
Successful standards rarely win solely through optimal technology.
They combine cheap integration, otherwise impossible uses, and a small dense initial community.
The last is underrated. Standards begin as a default in a particular group and spread with it.
Watch:
Integration time: more than a week slows adoption
Otherwise impossible use: strongest signal
Dense initial group: for example, a service categoryIgnore specification counts, institutional endorsements, and architectural elegance as primary success indicators.
An open-source protocol returns requirements, accepts stablecoin proof, and retries. Per-call payment lowers relationship-establishment costs.
Whether it becomes a standard follows the process above. See Hot Topic: x402.
Change One Variable
Per-call payment seems viable. Three problems remain.
Service prices also decline, leaving uncertain cost ratios.
Fees are not the only cost: state, retries, and confirmations remain. Waiting for a chain confirmation per call is itself problematic.
Metering remains unresolved. Repetitive on-chain records at enormous volume waste settlement capacity on accounting.
Lower costs expand direct settlement but do not remove metering, a structural distinction.
A highly plausible adoption route.
Supply exists from day one, resolving two-sided coordination.
It likely includes permissioned identity, accounts, and disputes, yielding better prepaid infrastructure rather than unrestricted access.
Useful, but different from immediate anonymous 402 payment.
Can a new address with no background pay directly? Yes means open; no means improved accounts. Both fit different uses.
Most chapter problems vanish.
Humans handle nonstandard workflows, reading prices and dealing with exceptions.
The protocol was unnecessary while humans filled the gap.
Payer form changed, requiring readable quotes and deterministic signals for software.
Automation drives this layer; crypto supplies suitable money. Reversing causality overstates technology and understates scenarios.
The strongest adoption signal.
Conditions: software payer without legal identity, unfamiliar person/software recipient, tiny amount, immediate completion.
Subscriptions need relationships, prepaid accounts need registration, cards need people, banks need accounts. The new layer becomes the only option.
Possible uses include buying software capabilities, distributed human microtasks, or usage-based content.
Remember the method, not predictions. Absent transactions create markets; cheaper existing ones face adequate incumbents.
Takeaway Questions
Two halves differ.
Payment-relationship costs fall, from registration and deposits to quotes, payment, and retries.
Metering and trust costs remain, including disputed usage records.
Optimizing the cheap half while avoiding the hard half is common. Inspect metering design.
The answer is specific.
Permissionless payment by software without prior relationships is the chain-dependent part, blocked institutionally elsewhere.
Metering, quotes, and most corporate payments do not require chains.
A narrow permissionless segment currently needs the chain. Describe it precisely rather than attributing everything to blockchain.
More specifically than Chapter 33:
Wallets let agents react immediately to 402 without people, instead of waiting for registration and funding.
Small fast payments with verifiable proof, not just custody, imply Chapter 34's difficult small, frequent, variable-target policy.
Safe rules with unfixed targets are a key engineering challenge.
Historically:
Advertisers rather than users funded much internet content, partly because tiny payments were uneconomical.
This shaped free content, data monetization, platforms, and attention competition.
Feasible small payments could change payers and business models, at unknown timing. This is the lasting question, not new specification releases.
Chapter Check
Suitable protocol-integrated money was missing: cross-border, tiny, account-free, machine-operable.
A universal payment requirement lacked a universal execution method.
Advertising and accounts filled the gap and shaped business models.
Human payers handled nonstandard processes, so the missing layer was not essential until payer form changed.
Amount, recipient, rail, completion, proof, and disputes.
The first five have feasible approaches. Disputes remain largely absent.
Without disputes, amounts must be too small to contest. Micropayments may therefore be the only initial viable use.
Chargebacks underpin stranger commerce, not merely extra functionality.
Settlement is technical; metering concerns trust.
Settlement has rails and adjustable granularity for costs.
Metering asks who decides when records disagree, absent contracts and relationships.
Small batches bound loss. Reduced exposure replaces trust.
Analysis discussing only money movement remains at the easiest layer.
Accepting services, their incentives, and impossible-without-it uses matter.
The third is strongest, enabling transactions old systems cannot support.
Specification counts, endorsements, and elegant design do not prove adoption.
Two-sided coordination and adequate prepaid incumbents are the primary nontechnical barriers.
There is no standard answer. Check:
- Include amortization, unused balances, and integration costs.
- Where is metering, who records, and who resolves disagreement?
- Does required trust match the recipient relationship?
- Does it work with unknown advance usage?
- Does the provider earn more or spend more?
- Are transactions already occurring or currently impossible?
Most converge on small credit, lightweight counts, and periodic settlement, balancing friction and trust. This matters more than protocol names.
Key idea
HTTP carries information; the machine economy also needs a protocol layer that carries money.