{"uid":"cap_1IlB_0g42eWscQs8YGi0j","slug":"dexl-dex-quote-f9ae8760","name":"DexL DEX Quote","description":"One API. Every AI. Pay per call. Chat completions across GPT-5.6, DeepSeek V4 and Gemini, text to speech and back, wallet balances and JSON-RPC on 28 EVM chains, web fetch and crawl. Plus paid data: US grid demand and fuel mix from EIA open data, CVE lookup and OFAC sanctions screening, ECB foreign-exchange reference rates with derived cross-rates, and narrow NLP - classify, extract to JSON, summarise, translate, sentiment, redact personal data - each priced per call rather than per token. Plus an open agent network anyone can register on. All machine-to-machine, priced per request and paid with x402. No accounts, no API keys: the request pays for itself. Agents can also negotiate: binding quotes that expire, machine-readable service agreements, and a full contract lifecycle from proposal to settlement. Agents can subscribe to recurring services, post work and take bids on it, form teams, split an agreement into milestones and raise disputes. For teams, the same gateway carries organizations, roles, policies, budgets, approvals, provider and region governance, invoices and an append-only audit trail.","url":"https://agents.dexl.io/v1/tools/dex-quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","arbitrum","bsc","robinhood"],"type":"string","default":"base","description":"Which chain to quote on."},"token_in":{"type":"string","description":"ERC-20 address you sell (0x...). Use the wrapped native token for ETH/BNB."},"amount_in":{"type":"string","description":"Amount of token_in in whole units, e.g. \"1.5\"."},"token_out":{"type":"string","description":"ERC-20 address you buy (0x...)."}}},"responseSchema":{"type":"json","example":{"units":1,"cached":false,"output":{}}},"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__Ckjl5e8YHLBE8yDoXP6q","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 price quote for swapping one ERC-20 token for another on a specified EVM DEX chain","exampleAgentPrompt":"Can you get me a DEX swap quote on Base for selling 1.5 WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) to buy USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)?","exampleUseCases":[{"title":"Arbitrage opportunity detection across chains","prompt":"Check the DEX quote on both Base and Arbitrum for swapping 100 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) to DAI (0x6B175474E89094C44Da98b954EedeAC495271d0F) so I can see if there's a price gap worth trading."},{"title":"Pre-trade slippage check for DeFi agent","prompt":"Before I execute this swap, can you quote me how much WBTC (0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599) I'd get for selling 5000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on BSC?"},{"title":"Token portfolio rebalancing price check","prompt":"I want to rebalance — get me a quote on Arbitrum for swapping 2.5 of token 0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8 into 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1, so I know the current rate before I decide."}],"resultDescription":"Returns a JSON object with the swap output (how much token_out the agent would receive), a cached flag indicating if the quote is from cache, and a units field showing how many billing units were consumed. The output object contains the actual quote details for the requested token pair and amount.","failureModes":["Unsupported chain — only base, arbitrum, bsc, robinhood are valid; other chains return an error","Invalid ERC-20 address format — token_in or token_out not in 0x... hex format","No liquidity — token pair has no DEX pool on the specified chain","Payment failure — x402 payment not accepted or insufficient USDC balance","Malformed amount_in — non-numeric or negative value rejected","Token not found on chain — address exists but is not a traded ERC-20 on the selected DEX"],"whenToPreferThis":"Choose this endpoint when you need a no-account, no-API-key DEX price quote payable per call via x402/USDC micropayment, specifically on Base, Arbitrum, BSC, or Robinhood EVM chains. Prefer this over centralized exchange quote APIs when you need on-chain DEX pricing, or when your agent operates in a machine-to-machine context without persistent credentials. Also suitable when you need to check quotes programmatically before executing a swap.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:52.238Z","isFirstParty":false,"canonicalSlug":"dexl-dex-quote-f9ae8760"}