{"uid":"cap_xiL54N4cQa2r3L6uSmnTi","slug":"speraxos-defi-swap-quote-api-f7da3df4","name":"SperaxOS DeFi Swap Quote API","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/v1/data/swap-quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"if":{"type":"string"},"else":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gHxn3C5-394EntuxryQnO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an AI-powered swap quote for exchanging one token for another on DeFi protocols, payable via x402 micropayment with USDC on Base","exampleAgentPrompt":"What's the current swap quote to exchange 100 USDC for WETH on Base — I want to see the rate and estimated output before I trade.","exampleUseCases":[{"title":"Pre-trade rate check before swap","prompt":"Before I swap 500 USDC to ETH on Base, can you pull a current quote so I can see the exchange rate and how much ETH I'd receive?"},{"title":"Arbitrage opportunity detection","prompt":"Get me a swap quote for converting 1000 DAI to USDC on Base right now — I want to check if there's a meaningful price difference I can act on."},{"title":"Agent-driven DeFi portfolio rebalancing","prompt":"I'm rebalancing my DeFi portfolio — get me a swap quote for converting 0.5 WETH to USDC on Base so I can decide whether to execute the trade now."}],"resultDescription":"Returns a swap quote including estimated output token amount, exchange rate, price impact percentage, and optimal routing path for the requested token pair and input amount on the specified chain.","failureModes":["Unsupported token pair returns an error or empty quote","Invalid token address results in a 400 bad request","Insufficient liquidity for requested amount returns no route found","Network or RPC issues may cause delayed or failed responses","Payment failure via x402 protocol blocks the request before processing"],"whenToPreferThis":"Choose this endpoint when you need a real-time DeFi swap quote on Base chain before executing a trade, especially when you want AI-augmented route intelligence without managing API keys — paying only $0.005 USDC per call via x402. Prefer this over generic DEX aggregator APIs when operating within the SperaxOS ecosystem or when building wallet-native agents on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:18.893Z","isFirstParty":false,"canonicalSlug":"speraxos-defi-swap-quote-api-f7da3df4"}