# Lightning Rod Labs - Predict anything with AI We train LLMs on messy, real-world data. Our small models out-predict frontier models at a fraction of the cost. Try our public Foresight Models today, or train an unmatched AI expert for your domain - using the messy data you already have. Our latest forecasting model Foresight v4 outperforms all benchmarked SOTA models on price & accuracy on a benchmark of general prediction questions from Polymarket. ## Key Resources For agents: - Base API URL: `https://api.lightningrod.ai/v1` - OpenAPI spec: https://api.lightningrod.ai/openapi.json - Docs: https://docs.lightningrod.ai/llms.txt For humans: - Human dashboard: https://dashboard.lightningrod.ai - Foresight models (inference API): https://www.lightningrod.ai/models - Custom models (enterprise platform): https://www.lightningrod.ai/custom-models To learn more about how we can work with you to build and deploy custom prediction models for your business, book a call with us: https://calendly.com/d/ctq4-7gd-nyq/lightning-rod-demo ## Agentic access (pay with MPP) Agents obtain an API key and credits without a human — no signup, no dashboard. Fastest path, if you have a Tempo wallet (`tempo wallet login`): ``` tempo request -X POST https://api.lightningrod.ai/v1/mpp/topup ``` This pays the $5.00 USDC-on-Tempo challenge and returns credits + an API key automatically. Any other MPP-aware client (`mppx`, `link-cli`) works the same way — point it at the URL below. ### Manual flow (raw HTTP, any MPP client) 1. Request a challenge (no payment): ``` curl -s -X POST https://api.lightningrod.ai/v1/mpp/topup ``` Returns `402` with **two** `WWW-Authenticate: Payment` header instances — pay whichever rail you can: ``` WWW-Authenticate: Payment id="...", realm="api.lightningrod.ai", method="stripe", intent="charge", request="", expires="2026-01-01T00:00:00Z", description="Lightning Rod Labs credit top-up ($5.00)" WWW-Authenticate: Payment id="...", realm="api.lightningrod.ai", method="tempo", intent="charge", request="", expires="2026-01-01T00:00:00Z", description="Lightning Rod Labs credit top-up ($5.00)" ``` `method="tempo"` — on-chain USDC on Tempo (chain id 4217). `method="stripe"` — Stripe card/Link Shared Payment Token. `request` is base64url-encoded JSON per the MPP spec (`draft-ietf-httpauth-payment`); decode it for the exact recipient/amount, or read the machine-readable offers (amount, currency, decimals) in `x-payment-info` at https://api.lightningrod.ai/openapi.json. 2. Pay with your wallet/CLI (it builds and signs the credential for you) and retry with `Authorization: Payment `: ``` curl -s -X POST https://api.lightningrod.ai/v1/mpp/topup \ -H 'Authorization: Payment ' ``` Returns `200`: ```json {"organization_id": "org_mpp_...", "credited_cents": 500, "api_key": "sk_...", "api_key_id": "key_..."} ``` `api_key` is minted once — save it. 3. Use it as `Authorization: Bearer sk_...` on `POST /openai/chat/completions`. When credits run out, that endpoint returns `402`; call `/mpp/topup` again with the same key in `X-API-Key` to refill without minting a new org.