{"openapi":"3.1.0","x-discovery":{"ownershipProofs":["0xb9187d429ecc8d1a90b8c81f9d1f865ba6e09204395ac110154a028503c1767111df92b212afec058f054a65a0b787a4ca5e774eac3df75a989e0f6988e5e6eb1b"]},"x-referrals":{"note":"All discounts are request headers on the unpaid request. No coupon, no account.","comback_discount":{"header":"X-Comeback-Code","code":"COMEBACK5","percent_off":5,"once_per_wallet":true,"not_limited_to_sellout":true},"referral":{"header":"X-Referrer","value":"0xWALLET","send_on":["unpaid request","paid retry"],"referee_discount_percent":10,"unlocks_after_referrer_paid_calls":10,"referrer_commission_percent_of_list":5,"max_referrals_per_utc_day":3,"self_referral_qualifies":false},"stored_credit":{"header":"X-Payer","value":"0xWALLET","effect":"Applies earned credit before signing, so the 402 amount is already reduced."}},"x-service-info":{"categories":["ai","llm","text-generation","defi","crypto","speech","agents","x402","payments"],"docs":{"homepage":"https://baron-power-play.baronpowerplay.workers.dev/","apiReference":"https://baron-power-play.baronpowerplay.workers.dev/openapi.json","llms":"https://baron-power-play.baronpowerplay.workers.dev/llms.txt"}},"info":{"title":"Baron Power Play","version":"2.0.0","description":"Pay-per-call AI infrastructure for autonomous agents. USDC on Base, settled by Coinbase. No API key, no account, no subscription.","contact":{"name":"MintMachineHQ","email":"MintMachineHQ@gmail.com"},"x-guidance":"Every paid route is a standard x402 v2 flow: call it, receive HTTP 402 with the payment requirement in accepts[], sign a matching EIP-3009 transferWithAuthorization for USDC (asset identity 'USD Coin' version 2) on Base (eip155:8453), then resend the identical request with the PAYMENT-SIGNATURE header. Run GET /test first. It is free and reports live engine health, so you can decide whether to depend on this service before spending anything. GET /.well-known/x402.json is the companion manifest and carries the same prices plus per-engine daily limits. Amounts in accepts[].amount are token atomic units, not dollars: 0.001 USDC quotes as \"1000\". Errors are uniform: branch on the 'code' field, not on the prose in 'error'. Rate limits: 100 requests/minute per IP, 10 payment requests/second per wallet, 50 calls/endpoint/day per wallet (20 for /alpha), $10 daily spend per wallet, and a lower cap during a wallet's first 24 hours. POST routes require a User-Agent of at least 3 characters and Content-Type: application/json. A wrong HTTP method returns 405 METHOD_NOT_ALLOWED.","license":{"name":"Proprietary"}},"servers":[{"url":"https://baron-power-play.baronpowerplay.workers.dev"}],"paths":{"/infer":{"post":{"operationId":"infer","summary":"LLM inference, 0.001 USDC","description":"LLM inference across a pool of independent engines with automatic failover. JSON and code are auto-formatted on the way out.","tags":["inference"],"x-payment-info":{"offers":[{"amount":"1000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"LLM inference, 0.001 USDC","intent":"charge","method":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":0.001},"protocols":[{"x402":{"network":"eip155:8453"}},{"mpp":{"version":1,"method":"x402","intent":"charge"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-style chat messages.","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"model":{"type":"string","description":"Optional model override."},"max_tokens":{"type":"integer","minimum":1},"temperature":{"type":"number","minimum":0,"maximum":2},"stream":{"type":"boolean","default":false}},"required":["messages"]}}}},"responses":{"200":{"description":"Inference result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"choices":{"type":"array","items":{"type":"object","additionalProperties":true}},"usage":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected, for example a prompt-override attempt."},"402":{"description":"Payment Required"},"429":{"description":"Rate limit, quota, or daily spend cap reached."},"503":{"description":"Engine pool exhausted or all engines failed."}}}},"/markets":{"get":{"operationId":"markets","summary":"DeFi market data, 0.002 USDC","description":"DeFi TVL leaders, DEX trending pairs, meme category, watchlists, and delta sync. Takes no body; pass category as a query parameter.","tags":["market-data"],"x-payment-info":{"offers":[{"amount":"2000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"DeFi market data, 0.002 USDC","intent":"charge","method":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":0.002},"protocols":[{"x402":{"network":"eip155:8453"}},{"mpp":{"version":1,"method":"x402","intent":"charge"}}]},"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string"},"description":"Optional category filter."},{"name":"delta","in":"query","required":false,"schema":{"type":"string"},"description":"Set to 1 to request delta-sync mode against the previous snapshot."}],"responses":{"200":{"description":"Market snapshot.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"ts":{"type":"integer"},"category":{"type":"string"},"tvl_leaders":{"type":"array","items":{"type":"object","additionalProperties":true}},"trending_pairs":{"type":"array","items":{"type":"object","additionalProperties":true}},"delta_mode":{"type":"boolean"}}}}}},"402":{"description":"Payment Required"},"429":{"description":"Rate limit or quota reached."}}}},"/alpha":{"get":{"operationId":"alpha","summary":"Trading analysis with position sizing, 0.05 USDC","description":"Trading notes with Kelly-Criterion position sizing. No verified track record is published: treat the output as research input, not as a signal to trade.","tags":["research"],"x-payment-info":{"offers":[{"amount":"50000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Trading analysis with position sizing, 0.05 USDC","intent":"charge","method":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":0.05},"protocols":[{"x402":{"network":"eip155:8453"}},{"mpp":{"version":1,"method":"x402","intent":"charge"}}]},"parameters":[{"name":"portfolio_size_usd","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"default":10000},"description":"Portfolio size used for position sizing."}],"responses":{"200":{"description":"Analysis payload.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment Required"},"429":{"description":"Rate limit or quota reached (20 calls/day per wallet)."}}}},"/tts":{"post":{"operationId":"tts","summary":"Text to speech, 0.01 USDC","description":"Text to speech with emotion casting and a per-wallet pronunciation dictionary that persists between calls.","tags":["voice"],"x-payment-info":{"offers":[{"amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Text to speech, 0.01 USDC","intent":"charge","method":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":0.01},"protocols":[{"x402":{"network":"eip155:8453"}},{"mpp":{"version":1,"method":"x402","intent":"charge"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":2000,"description":"Text to speak, maximum 2000 characters."},"emotion":{"type":"string","enum":["happy","serious","neutral"],"description":"Voice casting hint."},"pronounce":{"type":"object","description":"Pronunciation hints, e.g. {\"USDC\": \"you ess dee see\"}. Remembered per wallet.","additionalProperties":{"type":"string"}}},"required":["text"]}}}},"responses":{"200":{"description":"MP3 audio.","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment Required"},"413":{"description":"Text longer than 2000 characters."},"502":{"description":"Upstream voice service error."}}}},"/stt":{"post":{"operationId":"stt","summary":"Speech to text, 0.01 USDC","description":"Speech to text with crypto-keyword detection and timestamped segments.","tags":["voice"],"x-payment-info":{"offers":[{"amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Speech to text, 0.01 USDC","intent":"charge","method":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":0.01},"protocols":[{"x402":{"network":"eip155:8453"}},{"mpp":{"version":1,"method":"x402","intent":"charge"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audio_base64":{"type":"string","description":"Base64-encoded audio, maximum 5 MB when decoded. WAV and MP3 are the safest formats."}},"required":["audio_base64"]}}}},"responses":{"200":{"description":"Transcription.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"text":{"type":"string"},"language_detected":{"type":"string"},"confidence":{"type":"number"},"alpha_keywords_found":{"type":"array","items":{"type":"object","additionalProperties":true}},"segments":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"400":{"description":"Missing audio_base64."},"402":{"description":"Payment Required"},"413":{"description":"Audio exceeds 5 MB."},"502":{"description":"Upstream transcription service error."}}}},"/test":{"get":{"operationId":"test","summary":"Free readiness and capacity check","description":"Free. Reports per-engine operational status, a live inference result, and live market-data and voice checks. Run this before depending on the service.","tags":["diagnostics"],"security":[],"responses":{"200":{"description":"Readiness report.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"verdict":{"type":"string"},"engines":{"type":"array","items":{"type":"object","additionalProperties":true}},"live_inference":{"type":"object","additionalProperties":true},"market_data":{"type":"string"},"voice":{"type":"string"},"aegis":{"type":"string"},"payment":{"type":"string"},"x402_version":{"type":"integer"}}}}}}}}}},"components":{"securitySchemes":{"siwxAuth":{"type":"apiKey","in":"header","name":"X-Wallet-Auth","description":"Sign-In With X assertion. Optional: /test also answers without it, so a buyer can verify liveness before authenticating.","x-auth-mode":"siwx"}},"schemas":{"Error":{"type":"object","required":["error","code","timestamp"],"properties":{"error":{"type":"string","description":"Human-readable message."},"code":{"type":"string","description":"Stable machine-readable error code. Branch on this."},"suggestion":{"type":["string","null"]},"retry_after":{"type":["integer","null"],"description":"Seconds to wait, when retryable."},"timestamp":{"type":"integer"}}}}}}