---
title: "How much token_out a swap returns right now: direct pools and the route through the wrapped native token, across Uniswap V2/V3 (PancakeSwap on BNB Chain) and every fee tier, with price impact and the pools on the route. Quotes only - nothing is built, signed or sent."
method: POST
path: "/v1/tools/dex-quote"
---

# How much token_out a swap returns right now: direct pools and the route through the wrapped native token, across Uniswap V2/V3 (PancakeSwap on BNB Chain) and every fee tier, with price impact and the pools on the route. Quotes only - nothing is built, signed or sent.

`POST /v1/tools/dex-quote`

## Request

- Base URL: `https://agents.dexl.io`
- URL: `https://agents.dexl.io/v1/tools/dex-quote`
- Auth: API key in header `X-Payment`

Paid per call via x402. Send without payment to get the exact price in the 402.

## Request body

- object
  - `chain` 'base' | 'arbitrum' | 'bsc' | 'robinhood': Which chain to quote on.
  - `token_in` string, required: ERC-20 address you sell (0x...). Use the wrapped native token for ETH/BNB.
  - `token_out` string, required: ERC-20 address you buy (0x...).
  - `amount_in` string, required: Amount of token_in in whole units, e.g. "1.5".

## Response `200`

The tool output

## Other responses

- `400`: The input did not match the schema
- `402`: Payment required

---

[API](https://skmtc.dev/dexl/apis/dexl-agents.md) · [All operations](https://skmtc.dev/dexl/apis/dexl-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/dexl/apis/dexl-agents/revisions/e3692765c3f7?raw)
