# DexL DEX Quote

> DexL DEX Quote is a paid API for AI agents from agents.dexl.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns a price quote for swapping one ERC-20 token for another on a specified EVM DEX chain

## Facts

- Endpoint: POST https://agents.dexl.io/v1/tools/dex-quote?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dexl-dex-quote-f9ae8760
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1IlB_0g42eWscQs8YGi0j

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dexl-dex-quote-f9ae8760 -d '<json body>'
```

Example prompt: Can you get me a DEX swap quote on Base for selling 1.5 WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) to buy USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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...)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": 1,
  "cached": false,
  "output": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dexl-dex-quote-f9ae8760/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.dexl.io](https://www.zero.xyz/host/agents.dexl.io/llms.txt)
