---
title: Pay per call
description: Agents buy a part's manufacturing cost with no account: EUR 0.89 per calculation, paid in USDC over x402 or by card from 6 calculations, over HTTP or MCP.
---

# Pay per call

**EUR 0.89 per calculation, no account.** Send a CAD file and you get a
binding price before anything runs. Pay that price and you get the
manufacturing cost of every made part in every environment you asked for.

- One made part in one environment is one calculation.
- Bought and catalogue parts are free.
- A price check is free, and an offer stands for 24 hours.
- A calculation that fails is never charged.

The price includes VAT. Paid in USDC, it is EUR 0.89 at the posted
EUR/USD rate: 0.98 USDC on 24 November 2026. `GET /pay/environments`
states today's figures in `unit_price`.

This page is for agents that pay as they go. Teams that price parts every
day use a subscription with an API key instead: see
[Pricing & billing](./pricing.md).

---

## Two doors, one price

| Door | Address |
|---|---|
| HTTP | `POST https://api.arcnm.io/api/v1/pay/price` (raw, multipart or JSON) |
| MCP | `https://api.arcnm.io/mcp-server/pay/mcp` (streamable HTTP, no key) |

The MCP server is a thin layer over the HTTP routes: every tool call is
one call of a `/pay/*` route. The price, the limits and every refusal are
the same on both doors.

Start with the free `GET https://api.arcnm.io/api/v1/pay/environments`.
It lists the environments you can price in, every parameter with its
default, the limits and the unit price.

---

## What an offer states

Every `402` is a binding offer, and it states its own price. `terms`
names the terms a payment accepts, by URL, version and SHA-256. Its
`statements` say what paying confirms and, last, what this offer
charges: the price of one unit, VAT included, and how this offer is
paid.

| Offer | Its price clause |
|---|---|
| A calculation | `EUR 0.89 per calculation, VAT included, payable in USDC at the posted rate.` |
| A calculation a card also pays | `EUR 0.89 per calculation, VAT included, payable by card in EUR or in USDC at the posted rate.` |
| A supplier search | `EUR 0.09 per supplier search, VAT included, payable in USDC at the posted rate.` |
| A supplier match | `EUR 0.19 per supplier match for a STEP file, VAT included, payable in USDC at the posted rate.` |
| A supplier match with a drawing | `EUR 0.49 per supplier match for a STEP file with its drawing, VAT included, payable in USDC at the posted rate.` |

- While card payments are on, an offer under the card minimum adds
  `A card pays from 6 calculations (EUR 5.34) up.`
- An offer that carries a file (a calculation, a supplier match) also
  states `By paying you confirm the file is not export-controlled.`; a
  supplier search carries no file and does not.
- A supplier search or match also states when an answer is charged:
  `An answer that lists no supplier is charged; a refusal or a failure on
  our side is not.`
- The same statements are in the body, in the `PAYMENT-REQUIRED` header
  (`extensions.terms`) and in the `offer` of an unpaid MCP answer.
- The offer's signature covers the terms' version and SHA-256, the price
  in EUR cents and each amount to pay.

---

## The five MCP tools

| Tool | Cost | Takes | Answers |
|---|---|---|---|
| `price_parts` | EUR 0.89 per made part per environment, when paid | `file_base64` (+ `filename`), or `items[]` (each its own `file_base64`, `filename`, `material`, `sheet_gauge_mm`), or `offer_id`; `environments`, `lot_size`, `lot_sizes`, `annual_volume`, `material`, `currency`, `country`, `sheet_gauge_mm`, `invoice_to`; `drawing_base64` and `costing_date` are accepted and not read yet | Unpaid: the offer as a payment requirement. Paid: the result and a `result_token`, or the pending purchase. No file and no `offer_id`: the environments, parameters, limits and unit price |
| `get_result` | free, read-only | `purchase_id`, `result_token`; `item`, `environment`, `component`, `view` (`summary`, `full`), `lot_sizes`, `cursor` | The status while it runs, then the summary and the receipt |
| `preview_cost` | free, read-only | `purchase_id`, `result_token`, `item`, `environment`, `component`, `lot_size` | The itemised cost sheet of a part or component at another lot size |
| `search_suppliers` | EUR 0.09 a search, when paid | `query` and/or `params`; `limit`, `locale` | Unpaid: the offer as a payment requirement. Paid: the suppliers and a `result_token` |
| `match_suppliers` | EUR 0.19 a part, EUR 0.49 with a drawing that has a text layer, when paid | `file_base64` (+ `filename`), `drawing_base64`; `material`, `near`, `radius`, `country`, `limit`, `locale` | Unpaid: the offer as a payment requirement. Paid: what the part needs (with a drawing, also the further processes it asks for: `drawing_asks`) and the suppliers, or the pending purchase to read with `get_result` |

Every tool answers one of four kinds, as structured content: a result, a
pending purchase (or an offer whose count is still being read), the
environments, or a payment requirement. Steer by `status`, `offer_id`,
`pay_url`, `purchase_id` and `result_token`. A refusal is an error whose
text is the API's [error envelope](./errors.md): switch on `error.code`.
An argument a tool does not take is handled as its REST route handles
it. `search_suppliers` and `match_suppliers` refuse it for free
(`atlas_unknown_value`), as `POST /pay/supplier-search` and
`POST /pay/supplier-match` do. `price_parts`, `get_result` and
`preview_cost` do not send it on; the offer or the read in the answer lists
it in `ignored` (`not a parameter of this endpoint`), as `POST /pay/price`
and `GET /pay/price/{purchase_id}` list a name they do not take.

---

## Find suppliers by criteria

**EUR 0.09 a search, no account.** `POST
https://api.arcnm.io/api/v1/pay/supplier-search` with a JSON body:

| Field | Takes |
|---|---|
| `query` | A question in English, German or Spanish, up to 200 characters: "laser cutting stainless 12 mm near Stuttgart" |
| `params` | ARCNM Atlas' search parameters by name: `process`, `machine`, `cert`, `material`, `thickness`, `l`, `w`, `h`, `country`, `near`, `radius`, `confirmed_only` and the rest. They win over what the question says |
| `limit` | Suppliers returned, 1 to 25. Default 10 |
| `locale` | `en` (default), `de` or `es`: the language of labels and fixed sentences |

Send `query`, `params` or both. Without a payment the answer is a `402`
with the offer: one search at EUR 0.09, VAT included, paid in USDC over
x402. The offer is made before the search runs, so it says nothing about
what the search finds.

Paid, you get the suppliers in the same order, with the same sentences,
as ARCNM Atlas on arcnm.io: each with its checks and the quoted
evidence from its own website.

- A search that finds no supplier is an answer and is charged. Its `note`
  says that nothing matched. `relax` names each criterion and how many
  suppliers match without it.
- A parameter the search can't take is refused before the offer:
  `422 atlas_unknown_value`. Nothing is charged.
- A search that fails on our side is not charged: `503 atlas_failed`.
  Send it again.
- Read the answer again for 30 days at its `result_url`, with its
  `result_token`. Reading is free.
- A card is refused: `402 card_not_accepted`.

## Find suppliers for a part

**EUR 0.19 for a STEP file, EUR 0.49 with its drawing, no account.**
`POST https://api.arcnm.io/api/v1/pay/supplier-match` with one STEP file
and, if you have it, its PDF drawing: as `multipart/form-data` (`file`,
`drawing`), as JSON (`file_base64`, `filename`, `drawing_base64`) or as
the raw STEP file. Optional: `material`, `near`, `radius`, `country`,
`limit` (1 to 25) and `locale`, as query parameters or JSON fields.

- A drawing with a text layer is read for material, tolerances and
  treatments: the match costs EUR 0.49.
- A drawing without a readable text layer, such as a scan, isn't used.
  The offer is the STEP file's at EUR 0.19, and its `drawing` field says
  why.

The offer is made without reading the part. Only a quick scan of the
file runs first, and it refuses for free what the match doesn't read:

| Refused | Code |
|---|---|
| A DXF flat pattern | `422 atlas_part_not_step` |
| A drawing without its STEP file | `422 atlas_part_pdf_alone` |
| A STEP file with several parts | `422 atlas_part_assembly` |
| A part with more than 10,000 faces | `422 atlas_part_too_complex` |
| A drawing that isn't a PDF, or is over 20 MB | `422 atlas_part_drawing_not_pdf`, `413 file_too_large` |
| A drawing whose first two pages can't be read within 10 seconds and the memory set for it | `422 atlas_drawing_too_complex` |

Paid, your payment is checked first; then the part is read,
and only an answer is charged. The answer states what the part needs
(process groups, envelope, thickness, material, the tightest tolerance
grade) and the suppliers that state they can make it, in the order
ARCNM Atlas on arcnm.io shows them. It's shown once the payment has settled.

- A match that finds no supplier is an answer and is charged.
- A part that can't be read within 60 seconds, or can't be read at all,
  isn't charged: `422 atlas_part_unreadable`, with the reason
  (`timed_out` when the read ran out of time: send it again later). The same
  file sent again within an hour is refused before any offer, and so is
  the same file with the same drawing when its read with that drawing
  failed.
- If reading fails on our side, the part is read once more on the same
  payment. If that fails too, you get `503 atlas_not_read`, and nothing
  is charged.
- If the drawing can't be read, the match with it isn't sold and nothing
  is charged: `422 atlas_drawing_unread`. Its `details.offer` is the
  match for the STEP file alone at EUR 0.19. Send the STEP file without
  the drawing and pay that offer: the part isn't read again.
- A payer whose parts or drawings that couldn't be read in the last 24
  hours number three or more, and more than its paid matches, gets no
  more supplier matches until `Retry-After`: `429 atlas_unreadable_limit`.
  Supplier searches stay open.
- While too many answers were left unpaid by their payers in the last 24
  hours, a payer with no settled purchase gets no supplier search or match
  until `Retry-After`, which can be up to a day:
  `503 payment_unavailable`, `details.reason` `new_payers_paused`. Nothing
  is charged. A payer with a settled purchase is served.
- The answer stays readable for 30 days at its `result_url`, with its
  `result_token`. Reading is free. The same request sent again within 24
  hours returns that answer and isn't charged again.

---

## Two ways to pay

### USDC over x402

The x402 protocol pays in USDC on Base.

- **Over MCP**, inside the tool call. The unpaid answer is the x402 MCP
  transport: `isError: true`, with the requirement in
  `structuredContent`. Call the tool again with the payment in
  `_meta["x402/payment"]`. The settlement comes back in
  `_meta["x402/payment-response"]`.
- **Over HTTP**, send the same request again with a `PAYMENT-SIGNATURE`
  header.

Stock x402 clients cap one payment at $1. One part in one environment
fits under it. For a larger offer, raise the cap above its amount.

### Card over MPP

A card pays with a Stripe Shared Payment Token, over HTTP only. Send
`Authorization: Payment …`, as the 402's `WWW-Authenticate` header asks.

**A card pays from 6 calculations (EUR 5.34) up**, in one payment. A
smaller offer, or one whose count is still being worked out, is offered in
USDC only: its 402 carries no `WWW-Authenticate: Payment`, and its `hint`
says from what count a card pays. To pay by card, price more parts or
environments in one request.

The MCP door doesn't take a card: its unpaid answer carries that
challenge (`www_authenticate`) and the `pay_url` to send the credential
to.

### Paying an MCP offer over HTTP

Every unpaid MCP answer carries a `pay_url`: the HTTP address of that
offer. If your MCP client can't attach a payment, pay at `pay_url` over
HTTP, without the file. Then read the result with `get_result`.

---

## Card payments: held first, charged for what's delivered

A card payment is an authorisation at Stripe, then a capture.

1. **Held before any work.** At the paid request, the offer's whole
   amount is authorised on the card, as a PaymentIntent with manual
   capture. The card statement shows it as pending. Nothing runs before
   the hold is in place.
2. **Charged on delivery.** The capture is the units delivered times the
   unit price. A batch that delivers fewer units than it offered is
   charged for those, even below the card minimum, and the rest of the
   hold is released. The receipt
   and Stripe's record show the captured amount.
3. **Nothing delivered, nothing charged.** The hold is cancelled. The
   token isn't used up and can pay again.
4. **A run that outlasts its hold.** The hold is released 30 minutes after
   the paid request (the offer's `maxTimeoutSeconds`), delivered or not.
   A run that delivers after that is answered at its `result_url` with
   `402 payment_required`, reason `expired`, for exactly what it
   delivered. Pay it there with a new token in `Payment-Authorization`
   and the result token in `Authorization: Bearer`.

Sending the same credential again, for example after a timeout, joins its
purchase. It never makes a second hold or a second charge.

| Answer | Why | What to do |
|---|---|---|
| `402`, challenge `invalid_payment`, body `declined: {code, message}` | Stripe refused the hold: the card declined, or the token is used up, in another currency, below the amount or expired. `declined.code` is Stripe's code. For a declined card, `declined.message` is Stripe's own words; otherwise it reads "The payment token was refused. Send a new one." Nothing ran, and the offer is open again. | Pay the same offer with another token. |
| `402 payment_already_used` | The token paid, or was refused, once already. | Send a new token. |
| `402 offer_mismatch`, `402 invalid_signature` | The credential names another offer, or its challenge was altered. | Answer this 402's challenge. |
| `402 payment_unreadable` | The credential can't be read. The 402 asks again for the same offer while it's open and its file is kept. | Answer that challenge. |
| `402 file_required` | The offer was paid by `offer_id` alone, and its file is no longer kept. | Send the file again for a new offer. |
| `409 offer_taken` | Another payment bought this offer. | Ask for a new price. |
| `451 sanctioned` | The card's issuing country is on the sanctions list. | None. |
| `403 payer_blocked` | This card has delivered purchases that are still unpaid. | Pay what their result URLs ask. |
| `503 payment_provider_unavailable`, `Retry-After` | Stripe didn't answer. Nothing ran. | Send the same request with the same credential again: it's authorised once. If nobody sends it again, any hold is released. |

---

## Example over MCP (Python)

This uses the `x402` and `mcp` packages.

```python
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client
from x402 import x402Client
from x402.mcp import x402MCPClient
from x402.mechanisms.evm.exact import ExactEvmScheme

wallet = (x402Client().register("eip155:8453", ExactEvmScheme(signer=account))
          .set_spend_controls({"max_amount_per_payment": "$3"}))

class Calls:  # x402MCPClient calls call_tool({name, arguments, _meta})
    def __init__(self, session): self.session = session
    async def call_tool(self, params, **_):
        return await self.session.call_tool(
            params["name"], params["arguments"], meta=params.get("_meta"))

async with streamable_http_client("https://api.arcnm.io/mcp-server/pay/mcp") as (r, w), \
        ClientSession(r, w) as session:
    await session.initialize()
    paid = await x402MCPClient(Calls(session), wallet).call_tool(
        "price_parts", {"file_base64": step_b64, "filename": "bracket.step"})
    result = paid.raw_result.structured_content   # status "paid", result_token
```

The first call answers with the offer. The client signs it and calls
again. The answer is the result (`status: paid`, `items`, `result_token`,
`receipt`), or `status: running` with the `purchase_id` and
`result_token` to read later with `get_result`.

## Example over HTTP (Python)

```python
import httpx
from x402.http.clients.httpx import x402AsyncTransport

async with httpx.AsyncClient(transport=x402AsyncTransport(wallet), timeout=30) as http:
    r = await http.post("https://api.arcnm.io/api/v1/pay/price?environments=DE,CN",
                        content=open("bracket.step", "rb").read(),
                        headers={"Content-Type": "model/step", "Prefer": "wait=25"})
```

Without the x402 transport, the first answer is `402`, with the offer in
the body and in `PAYMENT-REQUIRED`. `POST …/pay/price?offer_id=<id>` with
`PAYMENT-SIGNATURE` pays it without the file. A `202` names a
`result_url`: `GET` it with `Authorization: Bearer <result_token>` until
it answers `200`.

---

## Limits

| What | Limit |
|---|---|
| One CAD file | 5 MB (`413 file_too_large`) |
| One HTTP request | 100 files and 100 MB as multipart (`413 request_too_large`) |
| One JSON body | One file as base64, or what one MCP call carries: 13 MB at the default limits, and 200,000 values (`413 request_too_large`). Send more files as multipart |
| One offer | 60 calculations. Files past them are listed as not offered: send them as another request |
| One MCP call | 12 MB of JSON-RPC body, the files as base64: about 9 MB of files. Gzip-compressed STEP is accepted and is about 5x smaller. Send larger sets to `POST /pay/price` |
| Environments per file | 16 |
| Lot sizes an answer states | 12 |
| Faces per part | 100,000 |
| Requests per address per minute | 60 price-check counts and 600 other requests. A price check counts once per started 5 MiB its request declares. Send `Content-Length`, and `Content-Length: 0` when you pay by `offer_id` with no body: a request that declares no length counts as the largest. MCP calls count in the same buckets, a price check by its JSON size |
| A paid request waits | 4 s, or up to 25 s over HTTP with `Prefer: wait=N`; then `202` |
| x402 runs at once | When the service is busy with other x402 runs, the next x402 payment is answered `503 payment_unavailable` with `Retry-After: 30`, and nothing runs. Send it again after that |
| Supplier matches at once | Two parts are read at a time, and payers with no settled purchase share one of them. When there's no place for its part, the next paid match is answered `503 payment_unavailable` with `Retry-After`, and nothing is charged |
| A supplier match's part | One STEP file of one part, 5 MB, 10,000 faces; a drawing of 20 MB, of which the first 2 pages are read; 60 seconds to read it |
| A result token reads its purchase | 30 days |

`GET /pay/environments` states the limits that apply today.

---

## Discovery

Directories and agent wallets find the service on their own:

- **OpenAPI** at `https://api.arcnm.io/openapi.json`, with `x-payment-info`
  on `POST /api/v1/pay/price`, `POST /api/v1/pay/supplier-search` and
  `POST /api/v1/pay/supplier-match`.
- **x402 discovery** at `https://api.arcnm.io/.well-known/x402`.
- **A probe.** An empty `POST /api/v1/pay/price` answers `402` with what
  one calculation costs in USDC (`PAYMENT-REQUIRED`), and the smallest
  card payment (`WWW-Authenticate: Payment`). Nothing is charged.

## See also

- [Pay per call API](./api/pay.md): the reference for every `/pay/*`
  route, its parameters and its answers
- [MCP for agents and IDEs](./mcp.md): the account-based MCP server
- [Pricing & billing](./pricing.md): subscriptions, quotas and overage
- [Errors](./errors.md): the error envelope and its codes
