Crypto OS
Non-Technical Crypto OSStage 6 · AI × Crypto and the Future On-chain Economy

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:

SubscriptionPrepaidOn-chain per callSetup + metering + settlement
Ten-thousand-call costLowVery lowInfeasibleLow
Prior relationship?YesYesNoNo, one setup
Good for one use?NoMixedNoYes
Counterparty riskYou prepaidProvider holds balanceNoneSetup-dependent
Unused capacityWastedBalance remainsNot applicablePay actual usage
Common today?YesYesTechnically possibleStill 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:

QuestionHuman approachSoftware requirementHTTP supplies it?
AmountRead priceMachine-readable quoteNo
RecipientRead detailsExplicit identifierNo
RailCardUsable channelNo
CompletionSuccess screenDeterminable signalNo
ProofOrder or screenshotVerifiable receiptNo
DisputeCall or refundHandling pathNo

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:

  1. Quote: the price
  2. Payment: moving money
  3. Metering: actual usage
Metering is hardest; payment is often mistaken for the hard part. Assess a proposal by its metering design.
LayerTaskCurrent stateDifficulty
QuotePrice, unit, expiryProvider-specificConsensus rather than technical difficulty
PaymentFunds movementExisting railsMainly cost
MeteringUsage both parties acceptProvider records trustedTrust 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

ModelGranularityTrustSuitable users
Per callOne payment eachLeastRare, high-value calls
Small batchesSettle groupsLow, one batch at riskFrequent tiny use between strangers
PrepaidDeposit and deductMedium, provider-held balanceLong-term relationships
SubscriptionPeriodicMost, pay before serviceStable 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 maintain

Balance 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:

ConditionMeaningMachine-payment status
Low integration costDays, not major rebuildingSolution-dependent
Unilateral benefitNo need to wait for othersAbsent: payers need recipients
Painful unmet useOtherwise impossible workEmerging, not widespread
No adequate alternativeExisting tools failAbsent 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 it

The 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

MicropaymentMicropayment

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.

Stablecoin PaymentStablecoin Payment

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.

x402x402

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.

Machine Payments ProtocolMachine Payments Protocol

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.

MeteringMetering

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

Hands onFind per-call APIs and compare their real cost against subscriptionsService pricing pages + spreadsheet + calculatorFree. Public pricing only, without accounts, subscriptions, or payments

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 / throttling

Minimum 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 count

Calculate 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

AI LabAsk AI to compare machine-payment approaches, then verify referenced specifications and versionsLevel 2 · AI Copilot

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:

  1. High detail-error rates, especially versions and fields.
  2. Proposals labeled standards.
  3. Missing disputes.
  4. 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

The status code left unused for decadesSince early HTTPInternet protocols

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.

Prepayment and metering already workTodayUsage-based cloud and interfaces

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.

Money that cannot be collectedOngoingLong-tail content and services

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.

How standards winRepeated historicallyBase protocols

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 category

Ignore specification counts, institutional endorsements, and architectural elegance as primary success indicators.

Giving 402 a payment flowFrom 2025

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

What ifOn-chain transaction costs approach zero

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.

What ifMajor interface providers jointly create a machine-payment standard

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.

What ifThe payer is human

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.

What ifA transaction class becomes impossible without it

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

13
What cost does AI reduce here?

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.

14
Does AI really need a blockchain?

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.

15
Why does an agent need a wallet?

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.

5
Who is paying?

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

Key idea

HTTP carries information; the machine economy also needs a protocol layer that carries money.

Finished this chapter’s lab? Mark it completeView all progress

On this page