FMF Tools AI
प्रति-कॉल भुगतान वाला चैट, अनुवाद, एम्बेडिंग और री-रैंकिंग। API key की आवश्यकता नहीं।
होस्ट किया गया MCP सर्वर
npx add-mcp 'https://mpp-ai.fmf-x402.workers.dev/mcp'Claude Code, Codex, Cursor और अन्य में इंस्टॉल होता है
दस्तावेज़
Pay-per-call AI primitives for agents: chat completions with small open models (Gemma 4 26B-A4B, Granite 4 Micro, gpt-oss-20b), machine translation (100 languages), multilingual and English embeddings (bge-m3, bge-small/base/large, qwen3-embedding), cross-encoder reranking, semantic similarity, zero-shot classification, sentiment, summarization, language detection, keyword extraction and PII/secret redaction. Most routes $0.001; free?sample=1 on every route (real output for the documented default input, no payment). Open models with commercial-use licences (Apache-2.0, MIT). No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD). Invalid input, a failed model call or the daily capacity limit returns 402 and is not charged.
Your first call is free (one per network). After that, each call costs its listed price. add ?sample=1 or ?test=1 (whichever the route documents) for a labelled sample. Your first call is free (one per network). After that, each call costs its listed price. On eligible routes send X-FMF-Trial: 1 or ?fmf_trial=1 to claim that same one free call (some routes also grant it with no header). A call that fails does not use it up. The one free call does not apply on routes that call an upstream AI or paid model (for example /mpp/chat, embeddings, translation, transcription, OCR, and document-to-markdown). Those routes return a normal 402. ?test=1 still returns a fixed sample.
Paid calls take USDC on Base via x402 where the route offers it (about $0.001–$0.01). A funding guide is at tools.fmf-x402.workers.dev/funds. Some routes also accept MPP. Invalid input or an upstream failure returns 402 and is not charged.
Your first call is free (one per network). After that, each call costs its listed price.
Text embeddings, sentiment, PII detection, keywords and rerank at $0.001–$0.00125/call, zero API key. Pay per call with MPP on Tempo mainnet (chainId 4217, USDC.e or pathUSD) or x402 on Base (USDC).
npx mppx account create --network mainnet
# fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); \`npx mppx account fund\` is testnet-only
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings --network mainnet -J '{"texts":["machine payments","pay per call API"]}'
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."]}'
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/pii/detect --network mainnet -J '{"text":"Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111."}'
Paid calls take USDC on Base via x402. Some routes also accept MPP (USDC.e 0x20C000000000000000000000b9537d11c60E8b50, pathUSD 0x20c0000000000000000000000000000000000000) — optional, not required for x402. Recipient 0xB2070a4A874E7141E551890a3642bF7B24a1a148. Invalid input is not charged. Free sample on every route (except QR scan): add ?sample=1. More: docs · llms.txt · OpenAPI · all FMF Tempo mainnet APIs · comparison vs other paid APIs (llms-comparisons.txt, comparisons.json)
Routes
| Route | Price | What you get |
|---|---|---|
POST /mpp/chat | $0.002 | Chat completion (small open models) OpenAI-style chat with open-weight models on Cloudflare Workers AI: gemma-4-26b-a4b (default), granite-4-micro (fastest), gpt-oss-20b (all Apache-2.0). Send messages[] or a prompt; up to ~6k input tokens and 1,024 output tokens per call, flat price. Returns the reply, token usage and finish reason. Daily capacity is limited; when it is reached you get 402 and are not charged. |
POST /mpp/translate | $0.003 | Translate text (100 languages) Machine translation between 100 languages (Meta M2M-100 1.2B, MIT licence): one text up to 5,000 characters or up to 20 texts per call, source and target as ISO codes or names. Long text is split by sentence and reassembled. |
POST /mpp/embeddings | $0.001 | Text embeddings (multilingual) Dense vector embeddings for up to 100 texts per call (BAAI bge-m3, 1024 dimensions, 100+ languages, MIT licence), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). |
POST /mpp/rerank | $0.001 | Rerank documents for a query Score and sort up to 100 documents by relevance to a query with a cross-encoder (BAAI bge-reranker-base, MIT licence). Returns index, relevance score (0-1) and text, best first; top_n to truncate. Ideal after search or embeddings retrieval. |
POST /mpp/embeddings/bge-small | $0.001 | Text embeddings: bge-small-en-v1.5 (384 dimensions) Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add?sample=1. |
POST /mpp/embeddings/bge-base | $0.001 | Text embeddings: bge-base-en-v1.5 (768 dimensions) Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add?sample=1. |
POST /mpp/embeddings/bge-large | $0.001 | Text embeddings: bge-large-en-v1.5 (1024 dimensions) Dense vector embeddings with bge-large-en-v1.5 (1024 dimensions, MIT) on Cloudflare Workers AI, English, highest quality of the BGE English models. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add?sample=1. |
POST /mpp/embeddings/qwen3 | $0.001 | Text embeddings: qwen3-embedding-0.6b (1024 dimensions) Dense vector embeddings with qwen3-embedding-0.6b (1024 dimensions, Apache-2.0) on Cloudflare Workers AI, 100+ languages. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add?sample=1. |
POST /mpp/similarity | $0.001 | Semantic similarity: score texts against a query Cosine similarity between a query and up to 32 candidate texts using BAAI bge-m3 multilingual embeddings (MIT). Returns each candidate with a similarity score (-1..1), best first. One call instead of embedding + maths. Free sample: add?sample=1. |
POST /mpp/classify | $0.001 | Zero-shot text classification (your labels) Classify a text into your own labels with no training, by embedding similarity (BAAI bge-m3, multilingual, MIT). Returns labels ranked with a softmax probability and raw cosine score. Fast and cheap; for fine-grained or adversarial tasks use the chat route. Free sample: add?sample=1. |
POST /mpp/sentiment | $0.001 | Sentiment analysis (positive / negative) Binary sentiment (POSITIVE / NEGATIVE with confidence) for up to 25 texts per call, using DistilBERT SST-2 (Apache-2.0) on Cloudflare Workers AI. English works best. Free sample: add?sample=1. |
POST /mpp/summarize | $0.001 | Summarize text (bullet or paragraph) Abstractive summary of up to 16,000 characters as a paragraph, bullets or a one-line TL;DR, with IBM Granite 4 Micro (Apache-2.0) on Cloudflare Workers AI. Flat price. Free sample: add?sample=1. |
POST /mpp/language/detect | $0.00125 | Language detection (80+ languages) Detect the language of up to 100 texts per call (franc trigram model, 80+ languages, MIT). Returns the ISO 639-1 code where one exists, the ISO 639-3 code, the score margin over the runner-up and ranked candidates (relative scores, best = 1). Short texts (<20 chars) are flagged as low confidence. No model call, instant. Free sample: add?sample=1. |
POST /mpp/keywords | $0.00125 | Keyword and key-phrase extraction Extract ranked key phrases (RAKE-style co-occurrence scoring with stopword splitting) from up to 50,000 characters. Returns phrase, score and count. Deterministic, instant, no model call. English stopwords; works on most Latin-script text. Free sample: add?sample=1. |
POST /mpp/pii/detect | $0.00125 | Detect and redact PII and secrets in text Find emails, phone numbers, credit card numbers (Luhn-checked), IBANs, US SSNs, IPv4/IPv6, Ethereum addresses, API keys (Stripe, AWS, GitHub, Slack) and token-bearing URLs in text, with offsets, and return a redacted copy. Pattern based, deterministic, nothing stored or logged (only counts). Free sample: add?sample=1. |
POST /mpp/pro/embeddings | $0.001 | Text embeddings (multilingual) (listed tier) Dense vector embeddings for up to 100 texts per call (BAAI bge-m3, 1024 dimensions, 100+ languages, MIT licence), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/embeddings/bge-small | $0.001 | Text embeddings: bge-small-en-v1.5 (384 dimensions) (listed tier) Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-small ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/embeddings/bge-base | $0.001 | Text embeddings: bge-base-en-v1.5 (768 dimensions) (listed tier) Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-base ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/embeddings/bge-large | $0.001 | Text embeddings: bge-large-en-v1.5 (1024 dimensions) (listed tier) Dense vector embeddings with bge-large-en-v1.5 (1024 dimensions, MIT) on Cloudflare Workers AI, English, highest quality of the BGE English models. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-large ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/sentiment | $0.001 | Sentiment analysis (positive / negative) (listed tier) Binary sentiment (POSITIVE / NEGATIVE with confidence) for up to 25 texts per call, using DistilBERT SST-2 (Apache-2.0) on Cloudflare Workers AI. English works best. Listed tier: same output as /mpp/sentiment ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/keywords | $0.00125 | Keyword and key-phrase extraction (listed tier) Extract ranked key phrases (RAKE-style co-occurrence scoring with stopword splitting) from up to 50,000 characters. Returns phrase, score and count. Deterministic, instant, no model call. English stopwords; works on most Latin-script text. Listed tier: same output as /mpp/keywords ($0.00125); $0.00125 per call, x402 settled via the Coinbase CDP facilitator. |
POST /mpp/pro/pii/detect | $0.00125 | Detect and redact PII and secrets in text (listed tier) Find emails, phone numbers, credit card numbers (Luhn-checked), IBANs, US SSNs, IPv4/IPv6, Ethereum addresses, API keys (Stripe, AWS, GitHub, Slack) and token-bearing URLs in text, with offsets, and return a redacted copy. Pattern based, deterministic, nothing stored or logged (only counts). Listed tier: same output as /mpp/pii/detect ($0.00125); $0.00125 per call, x402 settled via the Coinbase CDP facilitator. |
Copy-paste examples
These call POST /mpp/embeddings ($0.001) — Text embeddings (multilingual). Swap the path for any other route in the table.
mppx CLI
npx mppx https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings --network mainnet -J '{"texts":["machine payments","pay per call API"]}'
Create a mainnet account once with npx mppx account create --network mainnet and fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); npx mppx account fund is testnet-only. The CLI then pays the 402 automatically. See mpp.dev/sdk.
curl (unpaid — shows the 402, not charged)
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"]}'
Example output (fixed sample of a real response)
{
"also": {
"empty_call_ok": true,
"find": "https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today",
"llms": "https://etsy-movers.fmf-x402.workers.dev/llms.txt",
"mcp": "https://etsy-movers.fmf-x402.workers.dev/mcp",
"name": "FMF Tools Etsy Movers",
"price_usd": 0.01,
"what": "Today's top 20 Etsy shops by sales acceleration from the FMF Tools Etsy Pulse panel (no input)"
},
"also_tools": [
{
"empty_call_ok": true,
"find": "https://black-friday-deals.fmf-x402.workers.dev/deals",
"mcp": "https://black-friday-deals.fmf-x402.workers.dev/mcp",
"name": "Black Friday Deals Finder",
"price_usd": 0.003,
"what": "Search current Black Friday deals across major US and Canadian stores and brands, with the store-stated was price, discount %, and our own price history (flags was prices we never observed)"
},
{
"empty_call_ok": false,
"find": "https://black-friday-deal-monitor.fmf-x402.workers.dev/watch",
"mcp": "https://black-friday-deal-monitor.fmf-x402.workers.dev/mcp",
"name": "Black Friday Deal Monitor",
"price_usd": 0.01,
"what": "Watch a product or query until Cyber Monday and get a signed webhook on a price drop or deal"
},
{
"empty_call_ok": true,
"find": "https://landed-receipt-checker.fmf-x402.workers.dev/v1/receipts",
"llms": "https://landed-receipt-checker.fmf-x402.workers.dev/llms.txt",
"mcp": "https://landed-receipt-checker.fmf-x402.workers.dev/mcp",
"name": "Landed Receipt Checker",
"price_usd": 0.002,
"what": "Durable write-outcome receipt you can re-read after a timeout, so you do not resend a write that already landed"
}
],
"data": [
{
"embedding": [
-0.009974,
-0.010355,
-0.048595
],
"index": 0,
"object": "embedding"
},
{
"embedding": [
-0.038022,
-0.000008,
-0.04916
],
"index": 1,
"object": "embedding"
}
],
"defaulted": [
"texts"
],
"dimensions": 1024,
"model": "bge-m3",
"object": "list",
"related": {
"empty_call_ok": true,
"find": "https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find",
"llms": "https://agent-recipes.fmf-x402.workers.dev/llms.txt",
"mcp": "https://agent-recipes.fmf-x402.workers.dev/mcp",
"name": "FMF Recipes",
"price_usd": 0.003,
"what": "Which paid API to call for any agent task, ranked by receipt-verified agent outcomes"
},
"usage": {
"approx_tokens": 10,
"texts": 2
}
}
Free, no wallet: https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings?test=1. Output field types for every route: /openapi.json (responses, 200).
TypeScript SDK (mppx)
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'
Mppx.create({
methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})
// Global fetch now pays the 402 automatically.
const res = await fetch('https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings', {
method: 'POST', headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"texts":["machine payments","pay per call API"]}),
})
console.log(await res.json())
Python SDK (pympp)
# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo
account = TempoAccount.from_key("0x...")
async def main():
async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
response = await mpp.fetch("https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings", method="POST", json={"texts":["machine payments","pay per call API"]})
print(await response.json())
asyncio.run(main())
MCP config (Cursor, Claude Desktop, VS Code)
{
"mcpServers": {
"fmf-mpp-ai": {
"url": "https://mpp-ai.fmf-x402.workers.dev/mcp"
}
}
}
Transport is Streamable HTTP at https://mpp-ai.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.
Sources and licences
Models: Meta M2M-100 1.2B (MIT), BAAI bge-m3, bge-small/base/large-en-v1.5 and bge-reranker-base (MIT), Qwen3-Embedding-0.6B (Apache-2.0), DistilBERT SST-2 (Apache-2.0), IBM Granite 4 Micro (Apache-2.0) on Cloudflare Workers AI; franc-min language detection (MIT).
Sister services
- Doc Tools — Pay-per-call PDF, Office, OCR, speech-to-text, voice memo and meeting notes · llms.txt · OpenAPI
- Web & Data — Pay-per-call scrape, extract, SEC filings, weather and FX · llms.txt · OpenAPI
- Utility Tools — Tempo chain, attestation, QR, DNS, email, IP, geo, timezone, tech detect, math · llms.txt · OpenAPI
- Browser — Pay-per-call headless Chrome screenshots, JS render and page-to-PDF · llms.txt · OpenAPI
- Research — Papers, FDA drug labels, recalls, clinical trials and LEI · llms.txt · OpenAPI
- EVM Decoder — Pay-per-call calldata and event-log decoder, selectors, verified ABIs, no RPC · llms.txt · OpenAPI
- Deepgram-compatible STT — Drop-in /deepgram/transcribe and /v1/listen speech-to-text at $0.008, no API key · llms.txt · OpenAPI
- Compat APIs — OpenWeather-, Mapbox- and EDGAR-compatible routes at a third of the price (MPP + x402) · llms.txt · OpenAPI
- Domain & Web Checks — RDAP WHOIS, domain age and availability, HTTP status, security headers, SPF/DMARC (MPP + x402) · llms.txt · OpenAPI
- Dev & Data Utils — IBAN, GTIN, ISIN, crypto address, JWT, hash, cron, RRULE, semver, CSV at $0.001 (MPP + x402) · llms.txt · OpenAPI
- MTG Sim — Magic: The Gathering deck check, draw odds, land count and goldfish simulator · llms.txt · OpenAPI
- Control-plane — Who controls this contract? MPP + x402 snapshots and Tempo token data · llms.txt · OpenAPI
- Pokémon TCG Sim — Pokémon TCG simulator: goldfish, prize and draw sims, free Standard/Expanded deck check · llms.txt · OpenAPI
- Yu-Gi-Oh Sim — Yu-Gi-Oh! simulator: goldfish, combo and hand-trap odds, free TCG/OCG/GOAT banlist deck check · llms.txt · OpenAPI
- Crypto Tax Calculator — Crypto capital gains, cost basis (FIFO/HIFO/ACB), Form 8949 boxes G-L, Canada Schedule 3, tax-loss harvesting · llms.txt · OpenAPI
- Business Docs & Data — Invoice/receipt PDFs with pay-in-crypto QR, payment URIs, phone validation, barcodes · llms.txt · OpenAPI
- Lorcana Sim — Disney Lorcana simulator: goldfish, ink and draw sims, free Core/Infinity deck check · llms.txt · OpenAPI
- One Piece Sim — One Piece Card Game simulator: goldfish, DON!! curve, Life and draw odds, free deck check · llms.txt · OpenAPI
- Hearthstone Sim — Hearthstone simulator: mulligan odds, curve goldfish, draw odds, free deck check · llms.txt · OpenAPI
- Chess Sim — Chess tools: forced-mate finder, best move, legal moves, free opening names and position check · llms.txt · OpenAPI
- Dota 2 Sim — Dota 2 simulator: right-click duel sim, build stats, EHP and DPS calculator · llms.txt · OpenAPI
- CS2 Sim — CS2 economy simulator: loss bonus, buy or eco, half simulation · llms.txt · OpenAPI