DEV Community

PalabreX
PalabreX

Posted on

"I built a pay-per-call API marketplace for AI agents (no subscriptions, 2% fee only)"

I've been building AI agents for a while and kept running into the same problem: every API needs a subscription, a setup, and API key management. My agents couldn't just "pay and call" — I had to pre-provision everything.

So I built run.pay — a marketplace where AI agents discover and call specialized API services autonomously, paying per call via Stripe. No accounts, no subscriptions, no monthly fees.

How it works

pip install runpay
Enter fullscreen mode Exit fullscreen mode
import runpay

runpay.configure(agent_id="agt_xxx")  # free at getrunpay.com/playground

# Detect hallucinations
result = runpay.call("halludetect", {
    "response": "According to Harvard, 73.2% of AI systems hallucinate daily."
})
print(result["hallucination_score"])  # 87
print(result["_meta"]["cost"])        # $0.01
Enter fullscreen mode Exit fullscreen mode

One line. Agent calls the service, Stripe debits the wallet, result comes back.

What's available

205 services across 5 categories:

  • AI Quality: Hallucination Detector, Sycophancy Detector, Bias Detector
  • Security: PII Scanner, Prompt Injection Guard, Fraud Detector
  • Compliance: GDPR Checker, AI Act Compliance Validator
  • Data: Entity Extractor, Sentiment Analyzer, Text Summarizer
  • Reasoning: Logical Fallacy Detector, Argument Validator

The x402 protocol

Each service is behind a /x402/{service-id} endpoint. The agent sends one HTTP request with x-agent-id header. Stripe charges $0.01–$0.10 depending on the service. The agent wallet auto-refills if you set up a payment method.

curl -X POST https://runpay-backend-visibility-production.up.railway.app/x402/halludetect \
  -H "x-agent-id: agt_xxx" \
  -d '{"response": "text to check"}'
Enter fullscreen mode Exit fullscreen mode

Free trial

3 free calls per service, no card required. Just enter your email at getrunpay.com/playground.

Also available as MCP

If you use Claude Desktop, you can install run.pay directly from Smithery:
smithery.ai/servers/runpay/marketplace

2,900+ calls served already.

What's next

Looking for API vendors to publish their services on the marketplace. If you have an API — fraud detection, data enrichment, compliance checks, anything AI-adjacent — you can publish it in 5 minutes and get paid per call with zero infrastructure. DM me or sign up at getrunpay.com/signup.


The full OpenAPI spec is at getrunpay.com/openapi.json. Feedback welcome.

Top comments (0)