Skip to content

Blog / Selling to agents

How to price an API when your customers are AI agents

Most API pricing pages were written for a person with a credit card and a free afternoon. There's a free tier to try things, three plans called something like Starter, Pro and Scale, and a "contact sales" button for anything serious.

An AI agent reads none of that. It finds your API because a task needs it, decides in about a second whether the price fits its budget, and either buys or moves on to the next seller. If your pricing can't be understood and paid in that second, you've lost the sale, and you'll never know it happened.

Here's what changes when your customer is software.

Pick a unit the agent can count

An agent buying from you needs to know, before it starts, roughly what the job will cost. That depends almost entirely on the unit you charge in.

Per call is the easiest for everyone to reason about. One search, one lookup, one image, one price. If the work behind each call is similar, start here.

Per token or per character suits language and translation APIs, where the size of the input drives your costs. It's fair, but give the agent a way to estimate before it calls, or it can't budget.

Per second or per minute is the right unit for compute: GPUs, sandboxes, browsers, transcoding. The catch is that nobody knows how long a job will take until it ends, which brings us to the part that matters most.

Per item fits anything with a fixed price, like a report, a data set or a generated document. Agents like these. The price is known and nothing keeps running.

Whatever you choose, publish it as a price per unit, not as a plan. "$0.002 per search" can be compared and checked against a budget. "Pro, $49 a month, 25,000 searches included" can't, because the agent doesn't know whether its company already has Pro, or how much of the allowance is left.

Long jobs need money set aside, not invoices after

If you sell compute by the minute, your real risk isn't the price. It's getting paid. A job starts, runs for three hours, and the buyer's card is declined at the end. With people, you'd use deposits and credit checks. Agents need something that works in milliseconds.

The pattern that works is reserve, run, settle. Before the job starts, the agent's budget sets aside enough for a sensible first stretch, say fifteen minutes. The job runs. As it nears the end of what's reserved, the agent is warned and can reserve more. When it finishes, you're paid for what was used and the rest goes back to the buyer.

It sounds like bookkeeping, but it changes your exposure completely. You never run work you can't be paid for, and the buyer never pays for work that didn't happen.

Set a minimum, and say so

Tiny charges cost money to process. If a call is worth a tenth of a cent, you can't charge a card for each one. Bill usage in batches, monthly per buyer, or set a minimum per task that covers your real costs.

What you shouldn't do is hide the minimum. An agent that expects to pay $0.002 and is charged $0.50 has followed every rule and been surprised anyway. Its owner will notice, and next month the agent's rules will simply leave you out.

Rate limits are part of the price

People rarely hit rate limits. Agents hit them all the time, because they work in parallel and never get bored. If you allow ten calls a second, say so next to the price, and send back a clear "slow down" error instead of a vague failure. An agent can handle "try again in two seconds". It can't do much with a 500.

Make refusals useful

When an agent can't buy, the reason matters more than you'd expect. "Over budget, $12 left" lets the agent pick a smaller job or tell its user. "Payment failed" leads to retries, support tickets, and a buyer who quietly takes you off the list.

A pricing page for agents

Put together, your pricing for agents fits in a few lines:

  • the unit, and the price per unit
  • any minimum, per call or per task
  • how long jobs are reserved, and how they're extended
  • your rate limits
  • what happens when a job is stopped early

That's less than most pricing pages, and it's everything an agent needs to decide.

Where Paygynt fits

We built Paygynt so sellers don't have to build this themselves. You set a price per call, per minute or per item. Agents' budgets are checked and set aside before your work starts, long jobs are extended while they run, and each buyer gets one bill a month for what its agents used. If you sell an API or compute and want agents as customers, talk to us.

Ready when your agents are.