{"openapi":"3.1.0","info":{"title":"Spraay x402 Gateway","version":"3.7.0","description":"Pay-per-use AI, DeFi, payment, compute, and RTP primitives for autonomous agents via x402 on Base.","contact":{"name":"Spraay","url":"https://spraay.app","email":"hello@spraay.app"},"license":{"name":"MIT"}},"servers":[{"url":"https://gateway.spraay.app","description":"Production (Base mainnet)"}],"paths":{"/api/v1/chat/completions":{"post":{"summary":"OpenAI-compatible chat via 200+ models","tags":["ai"],"description":"Paid endpoint — $0.04 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/bittensor/v1/chat/completions":{"post":{"summary":"Bittensor SN64 inference","tags":["ai"],"description":"Paid endpoint — $0.03 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/batch/execute":{"post":{"summary":"Batch USDC payments on Base","tags":["payments"],"description":"Paid endpoint — $0.02 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/oracle/prices":{"get":{"summary":"Multi-source price feed","tags":["oracle"],"description":"Paid endpoint — $0.008 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}}}},"/api/v1/swap/quote":{"get":{"summary":"Uniswap V3 / Aerodrome quote","tags":["defi"],"description":"Paid endpoint — $0.008 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}}}},"/api/v1/escrow/create":{"post":{"summary":"Create on-chain escrow","tags":["escrow"],"description":"Paid endpoint — $0.10 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/invoice/create":{"post":{"summary":"Generate x402 invoice","tags":["invoicing"],"description":"Paid endpoint — $0.05 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/payroll/execute":{"post":{"summary":"Crypto payroll run","tags":["payroll"],"description":"Paid endpoint — $0.10 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/gpu/run":{"post":{"summary":"GPU workload execution","tags":["compute"],"description":"Paid endpoint — $0.06 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/search/qna":{"post":{"summary":"Structured Q&A search","tags":["search"],"description":"Paid endpoint — $0.03 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/robots/task":{"post":{"summary":"Dispatch robot task via RTP","tags":["rtp"],"description":"Paid endpoint — $0.05 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/kyc/verify":{"post":{"summary":"Lightweight KYC","tags":["identity"],"description":"Paid endpoint — $0.08 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/agent-wallet/provision":{"post":{"summary":"Provision agent wallet","tags":["agent-wallet"],"description":"Paid endpoint — $0.05 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/sctp/pay":{"post":{"summary":"Execute supplier payment","tags":["supply-chain"],"description":"Paid endpoint — $0.10 per call via x402. See https://gateway.spraay.app/.well-known/x402.json for full payment details.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — retry with x402 payment header","content":{"application/json":{"schema":{"type":"object","properties":{"accepts":{"type":"array"},"x402Version":{"type":"number"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}}},"components":{"securitySchemes":{"x402":{"type":"http","scheme":"x402","description":"Pay per-call with USDC on Base to 0xAd62f03C7514bb8c51f1eA70C2b75C37404695c8"}}},"security":[{"x402":[]}],"externalDocs":{"description":"Full docs","url":"https://docs.spraay.app"}}