Tools
Pay per call
Agents buy a part's manufacturing cost with no account. EUR 0.89 per calculation, paid in USDC over x402 or by card, over HTTP or MCP.
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.
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.
The three 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, vat_id, 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 |
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: switch on error.code.
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 instructuredContent. 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-SIGNATUREheader.
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.
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.
- 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.
- 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, and the rest of the hold is released. The receipt and Stripe's record show the captured amount.
- Nothing delivered, nothing charged. The hold is cancelled. The token isn't used up and can pay again.
- 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 itsresult_urlwith402 payment_required, reasonexpired, for exactly what it delivered. Pay it there with a new token inPayment-Authorizationand the result token inAuthorization: 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.
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)
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-BY,CN-SH",
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 |
| 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, withx-payment-infoonPOST /api/v1/pay/price. - x402 discovery at
https://api.arcnm.io/.well-known/x402. - A probe. An empty
POST /api/v1/pay/priceanswers402with what one calculation costs, in USDC (PAYMENT-REQUIRED) and by card (WWW-Authenticate: Payment). Nothing is charged.
See also
- MCP for agents and IDEs: the account-based MCP server
- Pricing & billing: subscriptions, quotas and overage
- Errors: the error envelope and its codes