Tools

What should you charge per call to your API with x402?

The minimum price per call is your cost per call plus the fee per payment plus your monthly fixed costs spread across the calls; add the margin you want on top. The result goes in the x402 amount field, in USDC base units.

Last updated:

It is an estimate based on the costs you type. It ships no network or facilitator fees: check the terms of the ones you use and type your own numbers.
Your costs (in USDC)

Compute, third-party data and whatever you spend per call. Up to 6 decimal places.

What your facilitator or the network charges per payment, if they charge anything. Leave it at 0 if it does not apply. Up to 6 decimal places.

Servers, subscriptions and everything you pay even with no calls.

Volume and margin

How many calls you expect to charge for each month. A whole number.

What you want to earn on top of cost. Up to 2 decimal places.

Result

Variable cost per call
0.002000 USDC
Fixed costs spread per call
0.002000 USDC
Break-even price per call
0.004000 USDC
Suggested price per call
0.005000 USDC
Value for the amount field
"5000"
Monthly revenue at that price
50.000000 USDC
Total cost per month
40.000000 USDC
Profit per month
10.000000 USDC

The amount value is in USDC base units (6 decimals), as text.

The calculation happens in your browser. What you type is not sent to any server.

How it is calculated

  • Variable cost = cost of serving the call + fee per payment.
  • Fixed cost per call = monthly fixed costs ÷ paid calls per month, rounded up.
  • Break-even price = variable cost + fixed cost per call. At this price you neither gain nor lose.
  • Suggested price = break-even price × (1 + margin), rounded up to the nearest base unit.

The whole calculation uses whole numbers in USDC base units (1 USDC = 1,000,000), no floating point, and always rounds up: the suggested price never ends up below your cost because of rounding.

Example: a cost of 0.002 USDC per call, a fee of 0.0001 USDC, 20 USDC of fixed costs, 10,000 calls a month and a 25% margin. Break-even: 0.0041 USDC; suggested price: 0.005125 USDC, which in amount is "5125".

What to put in the fee per payment

It depends on how you collect: on the facilitator that verifies and settles the payments and on the network you use. This tool assumes no fee: type what you are charged, or 0 if you are charged nothing. Check their terms before setting a price, because a fixed fee per payment weighs heavily when you charge fractions of a cent.

Where the result goes

In x402, your server answers 402 with a PAYMENT-REQUIRED header listing the payment options; the price goes in the amount field of each one, as text in base units. You can check how it looks with the x402 header decoder and convert amounts with the USDC converter.

Example
{  "scheme": "exact",  "network": "eip155:8453",  "amount": "5125"}

To understand the whole protocol, read the guide to what x402 is.

Frequently asked questions

What value do I put in amount?

The suggested price in USDC base units, written as text. For example, 0.005125 USDC is written "5125". The tool shows it already converted.

Can I charge less than the break-even price?

You can, but at that price you lose money on every call or depend on getting more calls than you estimated. It is your decision; the tool only shows the numbers.

Is what I type sent to a server?

No. The calculation happens in your browser and the page does not send the values you type. You do not need to sign up either.

Is Nouron Pass for charging with x402?

No: Nouron Pass is designed for people who give an agent money with limits. It is in early access and works in the Sandbox; it does not process real payments or x402 payments yet.

Try these limits in the Sandbox

Nouron Pass is designed to enforce limits outside the agent. Today it runs in the Sandbox. Reserve your spot and we will write to you when your access opens.