{"uid":"cap_md2CDOwbpMQkRvekAuZ3o","slug":"o1-exchange-swap-quote-via-vapi-de9d1e77","name":"o1.exchange Swap Quote (via vAPI)","description":"Hosted by vAPI for o1.exchange: Get a live exact-input swap quote.","url":"https://api.vapinetwork.ai/shim/o1/swap-quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"side":{"enum":["buy","sell"],"type":"string"},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"comment":{"type":"string","maxLength":32},"chain_id":{"anyOf":[{"type":"number","const":8453},{"type":"number","const":4663},{"type":"number","const":143},{"type":"number","const":5042},{"type":"number","const":56},{"type":"number","const":196}]},"referrer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"slippage_bps":{"type":"integer","maximum":4999,"minimum":0},"amount_in_raw":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39},"token_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"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_sDt2RWFTrIhkItQxujmWM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a live exact-input swap quote for a given token on o1.exchange, including expected output amount and slippage parameters.","exampleAgentPrompt":"Get me a live buy quote on o1.exchange for token 0xAbC...123 on Base (chain 8453) with a wallet address of 0xDef...456, swapping in 1000000000000000000 raw units with a 50 basis point slippage tolerance.","exampleUseCases":[{"title":"Pre-trade price check on Base","prompt":"Before I execute anything, get me a quote to buy the token at 0xA1b2C3d4e5F6... on Base chain using my wallet 0x1234...abcd, selling in 500000000000000000 raw units with 100 bps slippage — I want to see what I'd get back."},{"title":"Launchpad token sell estimate","prompt":"I want to sell some of this new launchpad token on o1.exchange on BNB chain (chain 56). Token address is 0xDeadBeef...0001, my wallet is 0xMyWallet...9999, amount in is 2000000000000000000 raw, slippage 200 bps — what will I receive?"},{"title":"Cross-chain quote comparison","prompt":"Can you fetch me a swap quote for buying token 0xFeed...Cafe on chain 4663 through o1.exchange? My wallet is 0xABC...DEF, I'm putting in 750000000 raw units, with 50 bps max slippage."}],"resultDescription":"Returns a live swap quote object containing the expected output token amount, price impact, effective exchange rate, and any route or fee details for the specified exact-input trade on o1.exchange.","failureModes":["Invalid token address (not a valid EVM 0x address) returns validation error","Unsupported chain_id returns an error indicating the chain is not supported","Amount too small or zero triggers minimum amount validation failure","Slippage_bps out of range (above 4999) causes schema validation rejection","Token not listed or not liquid enough may return no-route or insufficient-liquidity error","Network or RPC unavailability may cause timeout or upstream error"],"whenToPreferThis":"Use this endpoint when you need a real-time, exact-input swap quote specifically from o1.exchange's liquidity pools — particularly for launchpad or newly launched tokens tracked by o1.exchange that may not be available on larger DEX aggregators. Prefer this over generic aggregator APIs when operating on chains like Base (8453) or chain 4663/143/5042 where o1.exchange has specialized coverage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:19:52.230Z","isFirstParty":false,"canonicalSlug":"o1-exchange-swap-quote-via-vapi-de9d1e77"}