Skip to content
PredictionMarketAPI
AI Decision Grounding · Agent Tooling7 min read·Updated 2026-11-26

Event Contracts & Implied Probability API for AI Agents (REST, MCP & x402)

Quick Answer (BLUF)

AI agents can query live consensus probabilities on PredictionMarket API through three zero-friction rails: (1) REST API with a pm_live_ key (3,000 free credits), (2) Remote Streamable HTTP MCP at https://mcp.predictionmarketapi.dev/v1/mcp with 5 ready-made tools, or (3) keyless Base Mainnet USDC x402 micropayments ($0.001/call) with zero manual account creation.

Gateway p50 Latency22ms cached (<280ms warm · 1.8s live)
Concurrency & Rate Limit60 – 600 RPM (Dual-Rail Failover)Need 1,000+ RPM? Dedicated Enterprise Key Pool available
Deterministic Unit Price$0.08–$0.15 / 1,000 listings

Instant pm_live_... key in 3s (3,000 Free Credits · $0.30) · $1 = 10,000 Credits · 0 Credits on empty queries · Top up anytime via 0%-fee Multi-Chain Crypto (+5% bonus credits, never-expiring PAYG)

Instant Quickstart · Copy & Run in 30 Seconds

Probe Keyless x402 Challenge

import requests

# With API key (recommended for high-throughput agents)
resp = requests.get(
    "https://api.predictionmarketapi.dev/v1/markets/movers",
    params={"category": "tech", "limit": 10},
    headers={"x-api-key": "pm_live_YOUR_API_KEY"},
)
print(resp.json()["data"]["movers"][:3])
Want to inspect real live Polymarket & Kalshi JSON before creating an account?Try 3 Free Live Runs in Browser Playground (No Login) →

Key Engineering Takeaways (TL;DR)

  • ✓Replaces hallucinated LLM probability estimates with live market-clearing consensus prices from Polymarket & Kalshi.
  • ✓Hallucination-tolerant parameter aliases (?q=, ?exchange=, POST JSON body) reduce tool-call failures in agent loops.
  • ✓Keyless x402 Base Mainnet USDC ($0.001/call) lets autonomous agents pay per call on demand with $0 settled on 404/empty.
  • ✓Structured 402/429 error payloads explain exact credit requirements and retry windows to AI orchestrators.

1. Grounding LLM Forecasts with Live Event-Contract Priors

When a research agent evaluates macro risk, regulatory approval likelihood, or tech launch timelines, injecting live market probabilities + liquidity depth creates an auditable baseline.

  • Step 1 — Discover: Call search_prediction_markets (GET /v1/markets/search) with the topic query to retrieve active contracts across venues.
  • Step 2 — Verify Liquidity: Check volume_usd, liquidity_usd, and spread_bps via get_market_orderbook so thin quotes are down-weighted.
  • Step 3 — Audit Rules: Call get_market_detail to read exact settlement rules and hourly historical probability shifts before synthesizing a report.

2. Keyless Agent Billing via Base Mainnet USDC (x402)

Autonomous agents without a pre-registered API key receive an HTTP 402 Payment Required challenge carrying full Coinbase Bazaar Discovery metadata and settle $0.001 USDC on Base Mainnet only when non-empty data returns.

Probe Keyless x402 Challenge

Omit the x-api-key header on any /v1/markets/* route to inspect the x402 Base Mainnet USDC payment schema.

curl -i "https://api.predictionmarketapi.dev/v1/markets/search?query=inflation&limit=5"
Test this exact endpoint right now in your browser (3 free anonymous runs):Run 3 Free Live Queries in Playground →

Interactive Quant Forecasting Underwriting Terminal · GET /v1/markets/movers

Verify real-time latency, parcel credit math & JSON schema

10,000 listings/day
2,000 dossiers/day
5,000 records/day
HTTP Calls / Day
2,750
5 Unified Routes
Credit Unit
$1 = 10,000
$9 Indie Pack Ready
Empty / 404 Fee
0 Credits
$0.00 on 0 matches
Estimated Monthly Pipeline Cost (30 Days)
$60.00/ mo on Business ($86.25 on Pro)
Monthly consumption: 1,500,000 Credits (50,000 Credits/day)
PredictionMarket API (Business $0.08/1K records):$60.00 / mo
DIY Exchange Pipelines + Hosting:$10200.00 / mo
Empty ZIP search / unfound property fee:$0.00 (0 Credits)

Frequently Asked Questions

Does x402 charge my agent wallet if a market query returns 0 results?
No. Our Atomic Query-Before-Settle engine executes the upstream query first and only settles on-chain when HTTP 200 returns non-empty items.