What it looks like in production
Exa is the live reference. Agents POST a Nevermined-issued x402 token tohttps://admin-api.exa.ai/team-management/nevermined/purchase-key — $7 is charged on a delegated card, Exa returns an API key with $7 of credits, and the agent uses that key against the regular Exa search endpoints. When the key runs out, the agent calls the same purchase endpoint again. Same key, more credits, no human touched it.
The whole integration on Exa’s side: one endpoint, zero changes to their existing metering.
- Exa integration page — the live
nevermined.mdagents discover - Exa case study — the story, the numbers, what worked
When to pick this pattern
Pick this — Vend-the-key
- You already have an API with its own keys, quotas, rate limits
- One purchase maps to a fixed unit (e.g. $7 → 10K requests)
- You want integration cost to be a single new endpoint
- You’d rather not change how you bill on the hot path
Pick the alternative — Full metering
- You don’t have your own metering yet
- Per-call settlement with variable cost matches your product
- You want Nevermined to handle quota tracking end-to-end
- See Charge credits and Validate requests
http-simple-agent-ts style).
Build it
The full technical guide — server-side handler in TypeScript, Python, and raw HTTP, plus the optional middleware variant — lives on the API Providers solutions page.API Providers — implementation guide
5-step flow, code samples, idempotency notes, FAQ. Start here when you’re ready to wire it up.
Tutorial — web-search-paid-api-ts
Express server with
/purchase-key + /search that mirrors the Exa pattern against a stub web-search service. Uses the facilitator API directly (not the middleware) so the verify → settle → provision flow is visible. Ships with a copy-paste llms.txt + nevermined.md template.Make it agent-discoverable
A paid API only works for agents if they can find the integration on their own. Convention, lifted from Exa: publish a staticllms.txt at your docs root that links to a nevermined.md integration page. Any LLM that knows the llms.txt convention can then read, understand, and act on the integration without you doing anything else.
Agent discoverability
How to publish a
llms.txt + nevermined.md that agents will pick up. Includes a copy-paste template.