Skip to main content

Your API, agent-payable

Live with Exa. Get paid by AI agents.

How?
For API Providers

Get paid by AI agents.Autonomously.

Agents are a new buyer of your API. Let them sign up, top up, and pay via credit card, with no human in the loop.

Today

Agents Can't Onboard

Your signup flow needs a human.

  • Agent traffic grows. Your revenue from it doesn't.
  • Agents hardcode a human's API key. Security mess, no accountability.
  • Hitting your 402 mid-task stops the agent dead.
  • Stripe Checkout doesn't work without a browser and a person.
With Nevermined

Open the Front Door

One small endpoint accepts agent payments. Your product stays the same.

  • Agents provision and top up keys on a delegated card.
  • The end user enrolls once, sets a spend cap, walks away.
  • Your existing pricing, billing, and API surface are untouched.
  • Card enrollment and settlement are handled by Nevermined.
Featured Provider
Exa

Exa sells API keys to agents, autonomously.

Agents pay Exa $7 via a Nevermined-delegated card and receive an Exa API key with $7 of credits. When the key runs out, the agent tops up through the same endpoint. Same key, more credits, no human touched it.

See Exa's integration docs
What You Build

Five steps. One small endpoint.

High-level recipe below. The full integration guide in our docs covers idempotency, error responses, sandbox vs live, and the facilitator API in detail.

  1. 1

    Create a plan

    On nevermined.app, choose pay-as-you-go pricing (single price per purchase), set your price, and get a plan ID. Or do it programmatically with your NVM API key via the SDK.

  2. 2

    Expose one endpoint

    Accepts a payment-signature header. New route or existing one. Your call. Existing customers keep their flow unchanged.

  3. 3

    Verify

    Call facilitator.verifyPermissions(...). Missing or invalid? Return 402 with the payment requirements.

  4. 4

    Do your business logic

    Provision a key, top up credits, unlock a resource: whatever your product is.

  5. 5

    Settle

    Call facilitator.settlePermissions(...). Card charged, credits burned, you get paid.

server.ts
// Your endpoint, accepting x402 tokens from agents
import { Payments, buildPaymentRequired } from "@nevermined-io/payments"

const payments = Payments.getInstance({
  nvmApiKey: process.env.NVM_API_KEY!,
  environment: "live",
})

const paymentRequired = buildPaymentRequired(process.env.PLAN_ID!, {
  endpoint: "/purchase-key",
  httpVerb: "POST",
  scheme: "nvm:card-delegation",
})

app.post("/purchase-key", async (req, res) => {
  const token = req.header("payment-signature")
  if (!token) return res.status(402).json(paymentRequired)

  const verification = await payments.facilitator.verifyPermissions({ paymentRequired, x402AccessToken: token, maxAmount: 1n })
  if (!verification.isValid) return res.status(402).json(paymentRequired)

  const apiKey = await provisionOrTopUp(req)
  await payments.facilitator.settlePermissions({ paymentRequired, x402AccessToken: token, maxAmount: 1n })

  res.json({ apiKey })
})

Idempotent token replays

Cache token → result so a replayed token returns the same response, without re-running your business logic. Agents retry.

402 on your regular endpoints

When credits run dry, return 402 with a top-up hint. The agent loops back and pays again.

Stay Agent-Native

Make it agent-discoverable.

Agents don't read your HTML. They read your llms.txt and the .md mirrors next to your docs pages. List Nevermined in your llms.txt and publish a matching .md mirror. Updating your human-facing docs is optional.

On a Premium Organization, both files are auto-generated and served from a Nevermined endpoint: copy the canonical format to your own domain. The anatomy below is what gets rendered.

llms.txtIndex
- [Nevermined](/integrations/nevermined.md):
  Autonomous agent payments via x402
  card delegation.
nevermined.mdMirror

Publish /integrations/nevermined.md with plan ID, endpoint, and the agent-side snippet. Exa's /docs/integrations/nevermined.md is the template.

Easiest path

Ship as a Nevermined Organization.

A Premium org bundles everything above into one upgrade. You still publish your own mirror on your domain, but you get the format and the tooling out of the box.

Auto-generated agent docs

Your llms.txt and agentic-instructions.md render live from your published plans. Copy the canonical format to your own domain.

Embeddable card capture

PCI-compliant iframe widget. Buyers enrol cards on your domain; you never touch a card number.

Customers, webhooks, analytics

Customer list auto-populates on every agent purchase. Webhook events. Revenue and usage analytics. Multi-seat team access.

One billing surface

Stripe Connect payouts, dispute handling, refund flow: all funnel through the org account.

Prefer the DIY path? The integration recipe above works on a personal account too (Exa runs this way today). See Pricing for tier details and pilot programmes.

Why Nevermined, not a DIY x402.

Stripe Checkout

Requires a browser and a person. Fine for humans, useless for an autonomous agent mid-task.

Roll your own x402

You'd build card enrollment, delegation lifecycle, KYC, dispute handling, and a buyer-side SDK. Months of work.

Nevermined

Drop in verify + settle. Card acquisition via Stripe or Visa Intelligent Commerce; payouts via Stripe Connect today (PayPal Braintree coming soon). x402 standard. Transparent flat fee on settled volume; see FAQ.

Discovery

Get listed in the Nevermined registry.

Listed providers appear in our public registry of agent-payable APIs, so any agent crawling Nevermined can find your service. Currently: Exa. Open to additions.

Apply to be listed

Common questions

What does Nevermined charge?

2% of settled transaction volume, deducted at the facilitator. Custom rates available for high-volume providers.

When do I get paid out?

Settled funds are paid out via your connected Stripe Connect account on Stripe's standard schedule. PayPal Braintree as a second payout rail is coming soon. Talk to us for the specifics of your region and volume.

Do my existing customers see any change?

No. Your existing API and billing surface stay exactly as they are. Agent-payable signup is a parallel path you opt into with a new endpoint.

Can I keep my current pricing model?

Yes. Per-call, top-ups, and credit bundles map cleanly to Nevermined plans. For subscriptions, talk to us. Recurring billing patterns are supported case-by-case.

Who handles ongoing usage metering?

Most providers use the vend-the-key pattern. A Nevermined purchase returns a credential (e.g. an API key with $X of credits) and you meter ongoing usage internally. Exa works this way. Alternatively, Nevermined can settle each underlying API call (full metering) if you don't have internal billing infra or prefer per-request settlement. Both patterns are supported.

What card rails are supported?

Stripe (for direct card enrollment) and Visa Intelligent Commerce (VIC). The x402 token your endpoint verifies is the same regardless of rail; Nevermined handles the rail-specific details.

Is there a sandbox?

Yes, on the Stripe rail. Integrate, run end-to-end test transactions, and validate your handler before flipping to live. Visa Intelligent Commerce doesn't have a sandbox today, so VIC delegations are tested with small amounts in live.

What languages and frameworks are supported?

TypeScript and Python SDKs ship today, with framework helpers for Express. The facilitator API is plain HTTP, so any language can call verify/settle directly.

Do I need a Stripe account?

Today, yes: you connect a Stripe Connect account as your payout destination. PayPal Braintree as a second payout option is coming soon. Nevermined handles card acquisition and PCI scope on the buyer side; you just bring your payout destination.

How are chargebacks and disputes handled?

Stripe routes disputes to Nevermined (the merchant of record on destination charges). Nevermined submits evidence; we surface the chargeback reference so you can match dispute IDs to specific agent transactions. Whether the loss is reversed to your connected payout account is handled case-by-case.

What about refunds?

On Stripe destination charges, Nevermined processes the refund (we're the merchant of record) and surfaces the charge reference to you.

Multi-currency?

Stripe Connect handles currency conversion to your destination account, so non-USD payouts work today. Visa Intelligent Commerce currently supports predominantly US-based issuers.

Pricing

Tier-based, with pilots and waivers for early partners.

Pricing is tied to a Nevermined Organization subscription. Settlement fees on agent payments are charged separately on settled volume.

Starter
Free

Publish plans and agents on a single-seat account. No org-only features (no widget, no auto-generated agent docs, no customer list).

Recommended
Premium Org
$250 / month

Widget card capture, auto-generated llms.txt + .md, customer list, webhooks, analytics, 5 seats.

Enterprise Org
$500 / month

Premium + unlimited agents and plans.

Pilot / whitelist / fee waiver

Talk to us before you ship if you're a launch partner, an early-stage API provider, or running a closed pilot. We can waive or reduce subscription and settlement fees in select circumstances. Contact us.

Ship It

Open your API to agent buyers.

Ship the integration in a day. Start earning the first time an agent hits your endpoint.