Loomal

Monetize a vector search API for agents

Charge agents per query in USDC. Let agents retrieve over your proprietary corpus and pay for each lookup, not for access to the index.

You built and indexed a corpus worth searching: a knowledge base, a research archive, a domain-specific document set. Agents doing retrieval-augmented work would pay to query it, but you do not want to hand over the raw data or run a key-and-quota system to gate it.

Loomal lets you charge per query against your vector index in USDC over x402. The agent sends a query vector or text, pays for the lookup, and gets back the top matches. The corpus stays yours; only the answers go out.

Sell retrieval without selling the data

Per-query pricing lets agents tap your corpus one lookup at a time. They never get a dump of the index; they pay for a ranked set of matches against their query and nothing more. Your data stays behind the endpoint.

You can price by result depth. Returning the top three matches can cost less than a top-fifty retrieval with full payloads and metadata, so callers pay for the breadth they pull.

Pay per lookup, then retrieve

Wrap your retrieval handler with requirePayment. The agent submits a query and a top-k, Loomal quotes the price and runs the x402 handshake, settlement clears on Base, and your index returns the matches.

route.ts
import { requirePayment } from "@loomal/sdk";

export const POST = requirePayment(
  { price: "$0.004" },
  async (req) => {
    const { query, topK } = await req.json();
    return Response.json({ matches: await index.search(query, topK) });
  },
);

Make your corpus discoverable

Your retrieval service lists in the Loomal marketplace and the x402 discovery feed, described by domain and coverage. An agent that needs grounded context from your kind of corpus finds the endpoint and pays per query without an integration.

Revenue settles in USDC on Base to a non-custodial wallet, and every query produces a signed receipt so your retrieval traffic is auditable.

FAQ

How is this different from selling the dataset?

Agents pay per query and receive ranked matches, never the underlying index. You monetize access to answers while keeping the corpus private.

Can I charge more for deeper retrievals?

Yes. Quote the price from top-k or payload size so a larger result set costs more.

Do agents need to register?

No. Any x402-capable client pays inline; you issue no keys and run no quota system.

Start selling to agents.

Wrap an endpoint, set a price, get paid in USDC.

Get started