{"openapi":"3.1.0","info":{"title":"FMF Tools AI: pay-per-call embeddings (5 models), rerank, similarity, classify, sentiment, summarize, language detect, keywords, PII, chat and translate (no API key, MPP + x402)","version":"1.0.0","description":"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.0005, each with a free ?sample=1. 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. Docs: https://mpp-ai-testnet.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://mpp-ai-testnet.fmf-x402.workers.dev/llms.txt and https://mpp-ai-testnet.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://mpp-ai-testnet.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://mpp-compat.fmf-x402.workers.dev, https://mpp-domain.fmf-x402.workers.dev, https://mpp-utils.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev, https://pokemon-tcg-sim.fmf-x402.workers.dev, https://yugioh-sim.fmf-x402.workers.dev, https://mpp-cryptotax.fmf-x402.workers.dev, https://mpp-biz.fmf-x402.workers.dev, https://lorcana-sim.fmf-x402.workers.dev, https://onepiece-sim.fmf-x402.workers.dev, https://hearthstone-sim.fmf-x402.workers.dev, https://chess-sim.fmf-x402.workers.dev, https://dota2-sim.fmf-x402.workers.dev, https://cs2-sim.fmf-x402.workers.dev. 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).","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the 402 challenge with MPP on Tempo (USDC.e or pathUSD) or x402 v2 on Base (USDC). Bad input or an upstream failure returns 402 with an error and you are not charged. If you omit a documented input param, the route uses the default listed in this document and in the 402 challenge.","contact":{"name":"FMF Tools","url":"https://mpp-ai-testnet.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://mpp-ai-testnet.fmf-x402.workers.dev/docs","x-mcp":"https://mpp-ai-testnet.fmf-x402.workers.dev/mcp","x-llms":"https://mpp-ai-testnet.fmf-x402.workers.dev/llms.txt","x-fmf-id":"ai","x-related":{"name":"FMF Recipes","what":"Which paid API to call for any agent task, ranked by receipt-verified agent outcomes","find":"https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find","price_usd":0.003,"empty_call_ok":true,"mcp":"https://agent-recipes.fmf-x402.workers.dev/mcp","llms":"https://agent-recipes.fmf-x402.workers.dev/llms.txt"},"x-also":{"name":"FMF Tools Etsy Movers","what":"Today's top 20 Etsy shops by sales acceleration from the FMF Tools Etsy Pulse panel (no input)","find":"https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today","price_usd":0.01,"empty_call_ok":true,"mcp":"https://etsy-movers.fmf-x402.workers.dev/mcp","llms":"https://etsy-movers.fmf-x402.workers.dev/llms.txt"}},"servers":[{"url":"https://mpp-ai-testnet.fmf-x402.workers.dev"}],"paths":{"/mpp/chat":{"post":{"operationId":"chat","summary":"Chat completion (small open models)","description":"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. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"[{role: system|user|assistant, content}]"},"prompt":{"type":"string","description":"prompt (default: What is the Machine Payments Protocol?)","default":"What is the Machine Payments Protocol?"},"system":{"type":"string","description":"system"},"model":{"type":"string","enum":["gemma-4-26b","granite-4-micro","gpt-oss-20b"],"description":"model"},"max_tokens":{"type":"integer","description":"1-1024 (default 512)","default":200},"temperature":{"type":"number","description":"0-2 (default 0.6)"},"reasoning":{"type":"boolean","description":"include the model reasoning text if it produces one (default false)"}}},"example":{"messages":[{"role":"system","content":"Answer in one sentence."},{"role":"user","content":"What is the Machine Payments Protocol?"}],"max_tokens":200}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/translate":{"post":{"operationId":"translate","summary":"Translate text (100 languages)","description":"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. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"text, up to 5,000 characters (default: Pay per call, no API key needed.)","default":"Pay per call, no API key needed."},"texts":{"type":"array","items":{"type":"string"},"description":"or up to 20 texts (5,000 chars total)"},"target":{"type":"string","description":"target language code or name, e.g. fr (default: fr)","default":"fr"},"source":{"type":"string","description":"source language (default: en)"}}},"example":{"text":"Pay per call, no API key needed.","target":"fr"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/embeddings":{"post":{"operationId":"embeddings","summary":"Text embeddings (multilingual)","description":"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). Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"texts":{"type":"array","items":{"type":"string"},"description":"up to 100 texts, 8,000 chars each (default: [\"machine payments\",\"pay per call API\"])"},"text":{"type":"string","description":"text"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/rerank":{"post":{"operationId":"rerank","summary":"Rerank documents for a query","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"query (default: how do agents pay for APIs?)","default":"how do agents pay for APIs?"},"documents":{"type":"array","items":{"type":"string"},"description":"up to 100 documents, 4,000 chars each (default: [\"MPP lets agents pay per HTTP call.\",\"Bananas are rich in potassium.\"])"},"top_n":{"type":"integer","description":"top_n"}}},"example":{"query":"how do agents pay for APIs?","documents":["MPP lets agents pay per HTTP call.","Bananas are rich in potassium."]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/embeddings/bge-small":{"post":{"operationId":"embeddings_bge_small","summary":"Text embeddings: bge-small-en-v1.5 (384 dimensions)","description":"Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/embeddings/bge-base":{"post":{"operationId":"embeddings_bge_base","summary":"Text embeddings: bge-base-en-v1.5 (768 dimensions)","description":"Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/embeddings/bge-large":{"post":{"operationId":"embeddings_bge_large","summary":"Text embeddings: bge-large-en-v1.5 (1024 dimensions)","description":"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 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/embeddings/qwen3":{"post":{"operationId":"embeddings_qwen3","summary":"Text embeddings: qwen3-embedding-0.6b (1024 dimensions)","description":"Dense vector embeddings with qwen3-embedding-0.6b (1024 dimensions, Apache-2.0) on Cloudflare Workers AI, 100+ languages. Up to 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/similarity":{"post":{"operationId":"similarity","summary":"Semantic similarity: score texts against a query","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"query (default: how do agents pay for APIs?)","default":"how do agents pay for APIs?"},"candidates":{"type":"array","items":{"type":"string"},"description":"up to 32 texts (or a JSON array string / comma list), 2,000 chars each (default: [\"MPP lets agents pay per HTTP call.\",\"Bananas are rich in potassium.\"])","default":"[\"MPP lets agents pay per HTTP call.\",\"Bananas are rich in potassium.\"]"},"top_n":{"type":"integer","description":"top_n"}}},"example":{"query":"how do agents pay for APIs?","candidates":["MPP lets agents pay per HTTP call.","Bananas are rich in potassium."]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/classify":{"post":{"operationId":"classify","summary":"Zero-shot text classification (your labels)","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"text to classify, up to 4,000 chars (default: My card was charged twice for one order.)","default":"My card was charged twice for one order."},"labels":{"type":"array","items":{"type":"string"},"description":"2-20 labels (array, JSON array string or comma list) (default: billing,shipping,technical issue,praise)","default":"billing,shipping,technical issue,praise"},"multi_label":{"type":"boolean","default":false,"description":"multi_label (default: false)"}}},"example":{"text":"My card was charged twice for one order.","labels":["billing","shipping","technical issue","praise"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/sentiment":{"post":{"operationId":"sentiment","summary":"Sentiment analysis (positive / negative)","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"text (default: I love how fast this API is.)","default":"I love how fast this API is."},"texts":{"type":"array","items":{"type":"string"},"description":"up to 25 texts (or a JSON array string), 2,000 chars each"}}},"example":{"texts":["I love how fast this API is.","The checkout keeps failing."]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/summarize":{"post":{"operationId":"summarize","summary":"Summarize text (bullet or paragraph)","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"up to 16,000 characters (default: The Machine Payments Protocol (MPP) lets software agents pay for API calls over HTTP. A server answers an unpaid request with 402 Payment Required and a challenge; the client pays on-chain and retries with a credential, and the server returns the result with a recei","default":"The Machine Payments Protocol (MPP) lets software agents pay for API calls over HTTP. A server answers an unpaid request with 402 Payment Required and a challenge; the client pays on-chain and retries with a credential, and the server returns the result with a receipt. No accounts or API keys are needed."},"style":{"type":"string","enum":["paragraph","bullets","tldr"],"default":"paragraph","description":"style (default: paragraph)"},"max_words":{"type":"integer","description":"20-300 (default 80)"}}},"example":{"text":"The Machine Payments Protocol (MPP) lets software agents pay for API calls over HTTP. A server answers an unpaid request with 402 Payment Required and a challenge; the client pays on-chain and retries with a credential, and the server returns the result with a receipt. No accounts or API keys are needed.","style":"tldr"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/language/detect":{"post":{"operationId":"language_detect","summary":"Language detection (80+ languages)","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"text (default: Bonjour tout le monde, comment allez-vous aujourd'hui ?)","default":"Bonjour tout le monde, comment allez-vous aujourd'hui ?"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 100 texts (or a JSON array string), 5,000 chars each"},"top":{"type":"integer","description":"candidates per text, 1-5 (default 3)"}}},"example":{"texts":["Bonjour tout le monde, comment allez-vous ?","Wie spät ist es?"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/keywords":{"post":{"operationId":"keywords","summary":"Keyword and key-phrase extraction","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"up to 50,000 characters (default: Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo.)","default":"Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo."},"top":{"type":"integer","description":"1-50 (default 10)"}}},"example":{"text":"Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo."}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pii/detect":{"post":{"operationId":"pii_detect","summary":"Detect and redact PII and secrets in text","description":"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. Price $0.0005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"up to 100,000 characters (default: Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111.)","default":"Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111."},"redact":{"type":"boolean","default":true,"description":"redact (default: true)"},"mask":{"type":"string","description":"replacement style: type (default, e.g. [EMAIL]) or char"}}},"example":{"text":"Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111."}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/embeddings":{"post":{"operationId":"pro_embeddings","summary":"Text embeddings (multilingual) (listed tier)","description":"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.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"texts":{"type":"array","items":{"type":"string"},"description":"up to 100 texts, 8,000 chars each (default: [\"machine payments\",\"pay per call API\"])"},"text":{"type":"string","description":"text"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/embeddings/bge-small":{"post":{"operationId":"pro_embeddings_bge_small","summary":"Text embeddings: bge-small-en-v1.5 (384 dimensions) (listed tier)","description":"Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-small ($0.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/embeddings/bge-base":{"post":{"operationId":"pro_embeddings_bge_base","summary":"Text embeddings: bge-base-en-v1.5 (768 dimensions) (listed tier)","description":"Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-base ($0.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/embeddings/bge-large":{"post":{"operationId":"pro_embeddings_bge_large","summary":"Text embeddings: bge-large-en-v1.5 (1024 dimensions) (listed tier)","description":"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 32 texts per call, L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-large ($0.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"one text (or a JSON array string of texts) (default: pay per call API for agents)","default":"pay per call API for agents"},"texts":{"type":"array","items":{"type":"string"},"description":"up to 32 texts, 2,000 chars each, 20,000 chars total"},"normalize":{"type":"boolean","default":true,"description":"normalize (default: true)"}}},"example":{"texts":["machine payments","pay per call API"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/sentiment":{"post":{"operationId":"pro_sentiment","summary":"Sentiment analysis (positive / negative) (listed tier)","description":"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.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"text (default: I love how fast this API is.)","default":"I love how fast this API is."},"texts":{"type":"array","items":{"type":"string"},"description":"up to 25 texts (or a JSON array string), 2,000 chars each"}}},"example":{"texts":["I love how fast this API is.","The checkout keeps failing."]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/keywords":{"post":{"operationId":"pro_keywords","summary":"Keyword and key-phrase extraction (listed tier)","description":"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.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"up to 50,000 characters (default: Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo.)","default":"Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo."},"top":{"type":"integer","description":"1-50 (default 10)"}}},"example":{"text":"Agents pay per call with the Machine Payments Protocol. Pay per call APIs need no API keys and settle in stablecoins on Tempo."}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pro/pii/detect":{"post":{"operationId":"pro_pii_detect","summary":"Detect and redact PII and secrets in text (listed tier)","description":"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.0005); $0.001 per call, x402 settled via the Coinbase CDP facilitator. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"up to 100,000 characters (default: Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111.)","default":"Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111."},"redact":{"type":"boolean","default":true,"description":"redact (default: true)"},"mask":{"type":"string","description":"replacement style: type (default, e.g. [EMAIL]) or char"}}},"example":{"text":"Contact jane.doe@example.com or +1 416 555 0199; card 4111 1111 1111 1111."}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://mpp-ai-testnet.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}