Skip to content

Blog

How pay per result works

The price before the run, the amount set aside, the final charge, what happens when nothing is found, and the limits you can set.

4 min read

You pay Ahel per result, from a prepaid balance. There is no subscription and no plan to pick. This post follows one run from start to end and says what happens to your balance at each step, so you can build on it without surprises.

1. The price, before anything runs

Every paid run starts with a quote. Your agent asks for one with capability_inspect and your real inputs. From code, it is POST /api/platform/v2/quotes. Asking is free, and nothing runs.

The quote is the most this exact run can cost, not an average. Ahel plans which providers it may try, in order, and adds up the most each of them can cost for the number of rows you asked for. A quote is good for a few minutes. After that, you ask again.

Over MCP, the agent tells you the price and waits for your yes before it runs anything.

2. The amount set aside

When the run starts, Ahel sets the quoted amount aside from your balance. We call it a hold. The money is still yours, but it cannot be spent twice: your available balance is what you have minus what is held.

If the available balance cannot cover the hold, the run is refused before anything is sent to a provider.

3. The run

Ahel calls the first provider in the plan. If it finds nothing or fails, Ahel can try the next one, up to three in all, and only while the next one still fits inside the quoted amount. An answer that only repeats what you sent counts as finding nothing.

4. The final charge

When the run is over and its cost is known, Ahel settles it. You pay for the attempt that delivered the result, never for the attempts before it that missed. The charge is exact, down to fractions of a cent, and it is never more than the hold. The rest of the hold goes back to your balance.

What happenedWhat you payThe hold
Rows deliveredWhat the run cost, at most the holdThe rest comes back
Nothing foundNothingComes back in full
The run failedNothingComes back in full
The outcome could not be confirmedNothingComes back in full
Never reached a providerNothingComes back in full
Stopped partway, after some rowsThe rows delivered, or the whole call when the provider bills by the callThe rest comes back

When a provider bills us for a run that found nothing or failed, Ahel pays that bill. You do not.

Some providers confirm their charge only later, for example a job that keeps running after the first answer. Then the hold stays where it is until the real amount is known. A run is never charged by guess.

5. Limits you can set

Three limits are yours to set.

  • A cap on one run. Pass max_cost_usd to run_capability, or send the X-Ahel-Max-Cost header with an HTTP call. Ahel then plans only the providers that fit under it. If none does, the run is refused and nothing is held or charged.
  • A daily cap for each API key. When you make a key, under Settings, Organization, API keys, give it a daily cap in USD. A run that would take the key past its cap for the day is refused. It suits a script you leave running, or a key you hand to one automation.
  • Who may spend. The workspace owner can block paid runs for members or for team leads, and can block a service for the whole workspace.

From code, the cap is one header on the call:

bash
curl -sG https://ahel.ai/api/v1/call/companies.register.profile \
  -H "X-Ahel-Token: $AHEL_TOKEN" \
  -H "X-Ahel-Max-Cost: $MOST_IT_MAY_COST" \
  --data-urlencode "country=EE" \
  --data-urlencode "registry_number=$REGISTRY_NUMBER"

The answer carries the rows, and the X-Ahel-Cost-USD and X-Ahel-Charge-Status headers say what the run cost and whether it was charged. A key past its daily cap gets 402 spend_cap_exceeded, and a run quoted above the header's amount gets 402 max_cost_exceeded. Neither is charged.

Two limits are ours.

  • Starting balance. A new workspace starts free, with no card needed. Until its first top-up, each run can hold only a small amount.
  • Free misses. A run that finds nothing costs you nothing, but it still costs us. So the provider cost we cover for runs that find nothing has a daily fair-use limit per workspace. Past it, new runs are refused with nothing charged, until it resets at 00:00 UTC. A top-up raises the limit, and results you pay for never count toward it.

Topping up

Top up by card or crypto in the app, under Settings, Billing. There is no top-up fee, and paid balance does not expire. If you turn it on, auto top-up adds funds by card when the balance runs low.

The quickest way to see all of this is to ask for a price, which is free: open the Catalog and pick an action.