Pay-Per-Call APIs on Tempo Mainnet with mppx: Sub-Cent Endpoints for AI Agents (No API Keys)
FMF Tools is a pay-per-call API suite for AI agents: no API keys, just an HTTP 402 on Tempo mainnet paid with npx mppx.
This is a first-call guide for builders and agents that already have a funded Tempo mainnet wallet (USDC.e or pathUSD). Every URL, price, and CLI flag below was verified live on 2026-11-27 against unpaid curl -i responses. The runtime WWW-Authenticate: Payment header is the source of truth, not a marketing table.
Disclosure: this guide is published by FMF Tools (fmf-tools@agentmail.to). The APIs are ours. Contact: fmf-tools@agentmail.to. Catalog: https://tools.fmf-x402.workers.dev/?ref=devto.
What you need
- Node.js, so you can run
npx mppx(verified againstmppx@0.22.1) - A Tempo mainnet account funded with USDC.e or pathUSD
- Chain ID 4217 (Tempo mainnet; Moderato testnet is 42431)
Create the mainnet account first. npx mppx account fund is testnet-only — it will not fund mainnet.
npx mppx account create --network mainnet npx mppx account view --network mainnet Send USDC.e (0x20C000000000000000000000b9537d11c60E8b50) or pathUSD (0x20c0000000000000000000000000000000000000) on Tempo mainnet to that address. Then call any paid route. mppx handles the 402 automatically.
--network mainnet matters. In mppx 0.22.1, if you omit --network and do not set a custom RPC URL, funding/account helpers default to testnet. Our live challenges are mainnet (chainId: 4217). Pass the flag.
One-liner: your first Tempo mainnet call
Embeddings at $0.0005 (up to 100 texts, BAAI bge-m3, 1024 dimensions, L2-normalised, OpenAI-style data[i].embedding):
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings --network mainnet -J '{"texts":["machine payments","pay per call API"]}' -J is mppx's JSON-body flag: it sets Content-Type and Accept and implies POST. Equivalent long form (also valid):
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings --network mainnet -X POST -H 'content-type: application/json' -d '{"texts":["machine payments","pay per call API"]}' Optional: add --protocol mpp if you want to require Machine Payments Protocol. The CLI default is --protocol auto, which already prefers MPP when a server offers both MPP and x402.
An unpaid curl is not charged. It returns HTTP 402 and the challenge:
curl -i -X POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings \ -H 'content-type: application/json' \ -d '{"texts":["machine payments","pay per call API"]}' What we observed on that unpaid call:
- HTTP 402
-
WWW-Authenticate: Paymentwithmethod="tempo",intent="charge",realm="mpp-ai.fmf-x402.workers.dev" - Request amount
"500"at 6 decimals = $0.0005 - Tempo mainnet
methodDetails.chainId = 4217 - Accepted Tempo currencies: USDC.e and pathUSD (two
method="tempo"offers in the same header) - A third offer is
method="evm"for USDC on Base (chainId8453) via x402 — ignore it if you are paying with Tempo /mppx --protocol mpp
Eight verified mainnet endpoints
Prices are from the live OpenAPI x-payment-info.price.amount and matched the unpaid Tempo challenge amount (6 decimals). Inputs are the official examples. Outputs are from the live product docs; OpenAPI 200 schemas are currently generic objects.
Failure / "refund" behavior, from each host's live /openapi.json 402 description and docs: invalid input, a failed upstream/model call, or a daily capacity limit returns HTTP 402 with an error and is not charged. There is no separate refund call; a failed request does not settle.
1. Text embeddings — $0.0005
- URL:
POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings - Price: $0.0005 (challenge amount
500) - Mainnet Tempo 402: yes (
method="tempo", chainId 4217, USDC.e + pathUSD) - Input:
{"texts":["..."]}— up to 100 texts - Output (docs): OpenAI-style embeddings, BAAI bge-m3, 1024 dimensions, 100+ languages, L2-normalised for cosine similarity
- Not charged on: invalid input, failed model call, or daily capacity limit (402 + error)
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings --network mainnet -J '{"texts":["machine payments","pay per call API"]}' Docs: mpp-ai.fmf-x402.workers.dev/docs · llms.txt
2. Sentiment analysis — $0.0005
- URL:
POST https://mpp-ai.fmf-x402.workers.dev/mpp/sentiment - Price: $0.0005 (challenge amount
500) - Mainnet Tempo 402: yes
- Input:
{"texts":["..."]} - Output (docs): positive / negative sentiment scores
- Not charged on: invalid input, failed model call, or daily capacity limit
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/sentiment --network mainnet -J '{"texts":["I love how fast this API is.","The checkout keeps failing."]}' 3. DNS lookup — $0.0005
- URL:
POST https://mpp-tools.fmf-x402.workers.dev/mpp/dns/lookup - Price: $0.0005 (challenge amount
500) - Mainnet Tempo 402: yes (
realm="mpp-tools.fmf-x402.workers.dev") - Input:
{"domain":"mpp.dev"}(optionaltypes) - Output (docs): DNS lookup across record types
- Not charged on: invalid input or upstream failure
npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/dns/lookup --network mainnet -J '{"domain":"mpp.dev"}' Docs: mpp-tools.fmf-x402.workers.dev/docs
4. Data convert (CSV / JSON / YAML / XML) — $0.0005
- URL:
POST https://mpp-tools.fmf-x402.workers.dev/mpp/data/convert - Price: $0.0005 (challenge amount
500) - Mainnet Tempo 402: yes
- Input:
{"input":"name: widget\\nprice: 10","from":"yaml","to":"json"} - Output (docs): converted payload in the requested format (CSV, TSV, JSON, NDJSON, YAML, XML)
- Not charged on: invalid input or upstream failure
npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/data/convert --network mainnet -J '{"input":"name: widget\nprice: 10\ntags:\n - a\n - b","from":"yaml","to":"json"}' 5. UUID / ULID generator — $0.001
- URL:
POST https://mpp-utils.fmf-x402.workers.dev/id/uuid - Price: $0.001 (challenge amount
1000) - Mainnet Tempo 402: yes (
realm="mpp-utils.fmf-x402.workers.dev") - Input:
{"type":"v7","count":3}(also decodes) - Output (docs): UUID v4/v7 or ULID values, or a decoded identifier
- Not charged on: invalid input
npx mppx https://mpp-utils.fmf-x402.workers.dev/id/uuid --network mainnet -J '{"type":"v7","count":3}' Docs: mpp-utils.fmf-x402.workers.dev/docs
6. Number and date facts — $0.001
- URL:
POST https://mpp-agent-data.fmf-x402.workers.dev/mpp/daily/number - Price: $0.001 (challenge amount
1000) - Mainnet Tempo 402: yes (
realm="mpp-agent-data.fmf-x402.workers.dev") - Input:
{"n":42}(optionaldate) - Output (docs): computed number and date facts
- Not charged on: invalid input or upstream failure
npx mppx https://mpp-agent-data.fmf-x402.workers.dev/mpp/daily/number --network mainnet -J '{"n":42}' Docs: mpp-agent-data.fmf-x402.workers.dev/docs
7. URL/HTML to Markdown — $0.003
- URL:
POST https://mpp-docs.fmf-x402.workers.dev/mpp/html/markdown - Price: $0.003 (challenge amount
3000) - Mainnet Tempo 402: yes (
realm="mpp-docs.fmf-x402.workers.dev") - Input:
{"url":"https://example.com"}(or raw HTML) - Output (docs): clean Markdown from a URL or HTML
- Not charged on: invalid input or upstream failure
npx mppx https://mpp-docs.fmf-x402.workers.dev/mpp/html/markdown --network mainnet -J '{"url":"https://example.com"}' Docs: mpp-docs.fmf-x402.workers.dev/docs
8. SEC EDGAR company submissions (compat) — $0.002
- URL:
POST https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions - Price: $0.002 (challenge amount
2000) - Mainnet Tempo 402: yes (
realm="mpp-compat.fmf-x402.workers.dev") - Input:
{"cik":"320193"}(Apple's CIK in the official example) - Output (docs): EDGAR-compatible company submissions
- Not charged on: invalid input or upstream failure
npx mppx https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions --network mainnet -J '{"cik":"320193"}' Docs: mpp-compat.fmf-x402.workers.dev/docs
How the 402 challenge is shaped
Every unpaid probe above returned three Payment offers in one WWW-Authenticate header:
-
method="tempo"/intent="charge"/ Tempo mainnetchainId4217 / currency USDC.e (0x20C000000000000000000000b9537d11c60E8b50) -
method="tempo"/intent="charge"/ Tempo mainnetchainId4217 / currency pathUSD (0x20c0000000000000000000000000000000000000) -
method="evm"/ BasechainId8453 / USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) for x402
Recipient on all of them: 0xB2070a4A874E7141E551890a3642bF7B24a1a148.
npx mppx with --network mainnet (and --protocol mpp if you want to be explicit) pays offer 1 or 2 from a funded Tempo wallet.
More hosts in the same suite
These were live with /llms.txt and /openapi.json when we checked, and use the same MPP + Tempo mainnet payment pattern (not all were 402-probed in this pass):
- mpp-research.fmf-x402.workers.dev — papers, FDA labels, trials, LEI
- mpp-browser.fmf-x402.workers.dev — screenshots, JS render, PDF
- mpp-chain.fmf-x402.workers.dev — EVM calldata and log decoder
- mpp-domain.fmf-x402.workers.dev — domain health, WHOIS, SPF/DMARC
- mpp-stt.fmf-x402.workers.dev — Deepgram-compatible speech-to-text
The directory that lists these (and everyone else's verified MCP / paid APIs) is https://tools.fmf-x402.workers.dev/?ref=devto.
MCP (tools/list is free)
Each host also serves Streamable HTTP MCP at /mcp. tools/list is free. tools/call still needs an MPP Payment credential (or just call the HTTP route with mppx).
{ "mcpServers": { "fmf-mpp-ai": { "url": "https://mpp-ai.fmf-x402.workers.dev/mcp" } } } Official client docs
-
mppxCLI: https://mpp.dev/sdk/typescript/cli - Getting started: https://mpp.dev/sdk/typescript
About FMF Tools
FMF Tools builds pay-per-call APIs and a daily-tested directory of MCP servers and agent APIs. We do not require accounts or API keys on these routes. We are the authors of the endpoints in this guide.
Questions or a broken challenge: fmf-tools@agentmail.to.