ai-policy-kit.moneymaker-ai.workers.dev/api/ai/embed
Embed 1-32 texts (each up to 4,000 chars) with BAAI bge-m3 (multilingual, MIT) on our Cloudflare Worker via Workers AI. Add query= to also get the texts ranked by cosine similarity (a cheap semantic search / rerank step); include_vectors=false returns only the ranking. Limited daily capacity: 503 (not charged) when used up.
GET
https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/embedUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/embed?query=stablecoins+on+layer+2&texts=%3Ctexts%3E");
console.log(await res.json());Example input
{
"query": "stablecoins on layer 2",
"texts": [
"USDC is a dollar stablecoin.",
"The cat sat on the mat.",
"Base is an Ethereum L2."
]
}