When outcome-based pricing works for an API
A decision guide for an API seller who wants to charge an agent only when a single request produces a result. It covers who judges the result, what evidence the buyer sees, and whether the result is known before the charge is final.

You sell an API, and one of your endpoints can do a full request's work and return nothing the buyer wanted. Take an illustrative company-registry lookup. An agent sends a registration number and a country. Your service queries the registry, pays the upstream fee, and finds no company under that number. The work ran. The buyer got an empty answer.
Do you charge for the attempt, or only when the lookup finds a record?
Charging only for the found record is outcome-based pricing. Stripe's and Sierra's descriptions of it assume a seller with a customer relationship, and the answer changes when the buyer is an agent making a single purchase.
The guidance assumes someone to negotiate with
Stripe's guide to outcome-based pricing tells a vendor to define the result with the customer, share the measurement so the customer can verify the counts, and put the unit, exclusions and attribution rules in the contract. It also asks who investigates a dispute and how adjustments get posted on the next bill. Sierra describes a similar arrangement for its customer service agents. In a post dated December 10, 2024, it says it provides clear, agreed-upon criteria for each outcome upfront.
If you sell API requests under a negotiated contract, that guidance applies as written. Agree on the definition, share the measurement, and correct disagreements on the invoice. An agent can buy under an account like that too, and for those sales you need little from the rest of this article.
The purchase with no next bill
The harder case is the one-off purchase. An agent with no prior agreement asks for a quote, authorizes one payment, receives one response, and moves on. Nobody negotiated a definition. There may be no invoice next month to carry an adjustment, and no person on either side to raise a dispute.
The rest of this article is analysis. None of the public sources cited here shows an API seller applying an outcome test to per-request payments, and nothing below describes a recuut feature. The analysis starts from one observation. In a one-off purchase the quote is the whole agreement, so every part of the outcome deal has to fit inside the request. Three questions follow for your endpoint. Who judges the result? What can the buyer see? When is the result known?
Your system is the judge
In a negotiated deal, both sides can inspect the counts and argue about them. Here your system decides whether the result happened, and it decides alone. A buyer can accept that under two conditions. The rule appears in the offer before the agent authorizes payment, and the rule gives the same answer every time it runs on the same response.
For the registry lookup, a usable rule might read "charged when the response contains a record whose registration number and country match the request." A second illustration is a document extraction that charges when its output validates against a public schema version named in the quote. Both rules are mechanical. Anyone who runs them on the same response gets the same verdict.
A result that needs an opinion fails this test. Whether a summary is useful or a candidate is relevant depends on what the buyer thinks, and the buyer has no say when your system decides.
The response has to carry the evidence
A rule the buyer cannot check asks the buyer to trust the party that gets paid when the answer is yes.
The remedy is to return the evidence with the result. The lookup response includes the record itself, with its registration number and country, so the agent can compare both with what it sent. The extraction response includes the extracted output and the identifier of the schema version it passed, so the agent can run the same validation and compare the verdict with the charge.
If the test relies on something only you can see, such as an internal confidence score, the response cannot carry the evidence. The price can still depend on the result, and you may apply the rule the same way every time. The buyer's agent cannot confirm that from anything it receives, and in a one-off purchase it has nobody to ask.
The test has to finish before the charge is final
Timing decides whether any of this can affect the first charge. The x402 upto scheme is a useful reference because its text is specific. The buyer authorizes a maximum amount. The authorization is single-use and time-bound. The settled amount must be at or below the maximum, may be zero, and is determined at settlement time based on resource consumption during the request. After settlement, whatever the amount, the authorization is consumed.
The scheme says nothing about outcomes or refunds. Its own examples are generated tokens, transferred bytes and compute. Applying it to a result is analysis, and this article does not claim that any implementation works this way. A seller's outcome test could decide the settled amount only if the test completes before that one settlement and inside the authorization's deadline. One authorization settles once, so a result your system learns afterward cannot change that settlement.
When the result arrives later
Some results are known only after the original settlement, because they depend on what the buyer does with the response. An illustrative lead-enrichment endpoint takes a company domain and returns a contact. When your system settles, it cannot know whether that contact will ever reply. The reply cannot set the original charge, and once the authorization is consumed, you cannot collect anything more under it.
You have four options. The first is to restate the result as something your system can test before it settles, such as a contact record whose company domain matches the request. The second is to charge for measured work.
The third is a base amount plus a result amount. Stripe describes that hybrid as a light base fee plus a variable fee per outcome, and Sierra says it blends in consumption pricing where outcome pricing fits poorly. Each company is describing its own setting. In a one-off purchase, both amounts belong to the same single settlement, so the result amount has to depend on a result your system can test before it settles. Adding a base amount does not make the later reply chargeable.
The fourth option is to handle the later result outside the original charge. If you want to charge for the reply itself, or to correct the first charge once the reply is known, the buyer has to agree to that as a separate arrangement, because the consumed authorization cannot carry another payment. The sources above define no refund or correction mechanics, and this article prescribes none. An Agent Paid. Now What? covers how to record a later correction against the original transaction.
Failed attempts still cost you
AWS's guidance on outcome-based models describes them as shifting financial risk to service providers. For an API seller, that risk can be counted. Every lookup that finds nothing still used compute and paid the upstream fee, and the price of a found record has to recover both. To illustrate, if one request in four finds nothing, three successes pay for four attempts. Put that into the cost floor before you publish a no-charge rule. How to Price an API for AI Agents explains how to calculate that floor. It also covers the billing unit, the bounded quote and retries, which this article does not repeat.
Three kinds of result
Known before settlement, and the buyer can check it
A record was found, or a schema passed. The offer states a test that gives the same answer every time on the same response, the response carries the evidence, and the test finishes before settlement. This result can set the initial charge.
Known before settlement, but visible only to you
An internal score or a private data source decides. The timing works, but the buyer cannot check the charge and has to trust your verdict. Return the evidence the test used, or charge for measured work.
Known only after settlement
The result is a reply or a conversion that depends on what the buyer does with the response. The initial charge cannot depend on it, and the consumed authorization cannot collect for it later. Charge for measured work, or use a base amount plus a result amount that depends on a result you can test before settlement. Charging for the later result itself, or correcting the first charge because of it, takes a separate agreement with the buyer.
Charge for the result when the offer states a mechanical test, the response shows the evidence the test used, and the test finishes before the charge is final. The registry lookup meets all three. Its rule fits in the quote, the matched record travels in the response, and your system knows the answer before it settles. "No match, no charge" is then a rule the buyer's agent can verify without asking you.