# klymax402 DEX Quote API

> klymax402 DEX Quote API is a paid API for AI agents from klymax402.com, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-14).

Returns a real-time decentralized exchange (DEX) swap quote for a given token pair and amount on Base or Ethereum

## Facts

- Endpoint: GET https://klymax402.com/api/dex-quotes/api/quote
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-dex-quote-api-7a2bfd99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b-Mx2LhV9Z0cM7XIjCH9l

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 klymax402-dex-quote-api-7a2bfd99
```

Example prompt: What's the current DEX quote to swap 1,000,000 units (1 USDC) of 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for WETH at 0x4200000000000000000000000000000000000006 on the Base network — show me the price, estimated output, and price impact?

## When to prefer this

Use this endpoint when you need a real-time DEX swap quote on Base or Ethereum without setting up your own API keys or infrastructure. It is ideal for AI agents that need to check token prices, estimate swap outputs, assess price impact, or gather gas cost data before executing a trade, at a low per-call cost of $0.012 USDC with no authentication setup required.

## Known failure modes

- Invalid or unsupported token contract address returns an error or empty route
- Amount of 0 or non-numeric amount string causes a bad request error
- Unsupported chain value (not 'base' or 'ethereum') returns a validation error
- Low liquidity pairs may return a high price impact or no route found
- Network congestion or RPC issues may cause timeout or stale quote
- Payment failure (insufficient USDC balance) results in 402 response blocking the call

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a JSON object containing the DEX name used for routing, the chain, quoted price, swap route, token metadata for both input and output tokens, raw and formatted input/output amounts, price impact percentage, and estimated gas cost for the swap.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tokenIn",
      "tokenOut",
      "amount"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Blockchain network: base or ethereum (default: base)"
      },
      "amount": {
       "type": "string",
       "description": "Amount of input token in raw units (wei/smallest unit, e.g. 1000000 for 1 USDC)"
      },
      "tokenIn": {
       "type": "string",
       "description": "Contract address of input token (e.g. 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for USDC on Base)"
      },
      "tokenOut": {
       "type": "string",
       "description": "Contract address of output token (e.g. 0x4200000000000000000000000000000000000006 for WETH on Base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dex": "example",
  "chain": "example",
  "price": "example",
  "route": "example",
  "tokenIn": {},
  "amountIn": "example",
  "tokenOut": {},
  "amountOut": "example",
  "priceImpact": "example",
  "estimatedGas": "example",
  "amountInFormatted": "example",
  "amountOutFormatted": "example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klymax402-dex-quote-api-7a2bfd99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klymax402.com](https://www.zero.xyz/host/klymax402.com/llms.txt)
