# Ozmium Swap Price Quote (Base Mainnet)

> Ozmium Swap Price Quote (Base Mainnet) is a paid API for AI agents from ozmium.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns indicative swap pricing on Base mainnet via Coinbase CDP Trade API — expected output amount, minimum output after slippage, and fee estimates — without reserving liquidity.

## Facts

- Endpoint: GET https://ozmium.org/v1/swap/price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-swap-price-quote-base-mainnet-6a646f2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E4KJjuTTpRy6rB4wIzEOU

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 ozmium-swap-price-quote-base-mainnet-6a646f2b
```

Example prompt: Before I execute anything, get me an indicative price quote for swapping 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) to WETH (0x4200000000000000000000000000000000000006) on Base mainnet for my wallet 0xAbCd...1234, using 100 bps slippage tolerance — just the price estimate, don't execute the trade.

## When to prefer this

Use this endpoint when you want to compare swap routes or estimate output amounts before committing to a trade. It is the read-only price-check step in the Ozmium swap flow — call this first to evaluate pricing, then call /v1/tx/swap only when ready to execute. Prefer this over the executable swap endpoint whenever you need non-binding price discovery, route comparison, or slippage analysis without side effects.

## Known failure modes

- Invalid or unsupported token addresses return an error or empty quote
- fromAmount of zero or non-numeric value causes a bad request
- Taker address missing or malformed may result in a 400 error
- Token pair with no liquidity route returns no quote or zero amounts
- Rate limit or upstream Coinbase CDP API error returns 5xx
- Missing required query parameters returns validation error

## How this service works

Indicative Base mainnet swap pricing via the Coinbase CDP Trade API- expected output, min output after slippage, and fee estimates- WITHOUT reserving liquidity. Poll this to compare routes, then buy /v1/tx/swap for the executable quote. GET /v1/swap/price?fromToken=0x..&toToken=0x..&fromAmount=atomic&taker=0x..&slippageBps=100.

## Output

Returns a JSON object with a quote containing toAmount (expected output in atomic units), minToAmount (minimum output after slippage), fee estimates, and the network identifier — without reserving or committing any liquidity.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "taker": {
       "type": "string"
      },
      "toToken": {
       "type": "string"
      },
      "fromToken": {
       "type": "string"
      },
      "fromAmount": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "quote": {
         "type": "object",
         "properties": {
          "toAmount": {
           "type": "string"
          },
          "minToAmount": {
           "type": "string"
          }
         }
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-swap-price-quote-base-mainnet-6a646f2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
