# o1.exchange Swap Quote (via vAPI)

> o1.exchange Swap Quote (via vAPI) is a paid API for AI agents from api.vapinetwork.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-21).

Returns a live exact-input swap quote for a given token on o1.exchange, including expected output amount and slippage parameters.

## Facts

- Endpoint: POST https://api.vapinetwork.ai/shim/o1/swap-quote?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/o1-exchange-swap-quote-via-vapi-de9d1e77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_md2CDOwbpMQkRvekAuZ3o

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 o1-exchange-swap-quote-via-vapi-de9d1e77 -d '<json body>'
```

Example prompt: Get me a live buy quote on o1.exchange for token 0xAbC...123 on Base (chain 8453) with a wallet address of 0xDef...456, swapping in 1000000000000000000 raw units with a 50 basis point slippage tolerance.

## When to prefer this

Use this endpoint when you need a real-time, exact-input swap quote specifically from o1.exchange's liquidity pools — particularly for launchpad or newly launched tokens tracked by o1.exchange that may not be available on larger DEX aggregators. Prefer this over generic aggregator APIs when operating on chains like Base (8453) or chain 4663/143/5042 where o1.exchange has specialized coverage.

## Known failure modes

- Invalid token address (not a valid EVM 0x address) returns validation error
- Unsupported chain_id returns an error indicating the chain is not supported
- Amount too small or zero triggers minimum amount validation failure
- Slippage_bps out of range (above 4999) causes schema validation rejection
- Token not listed or not liquid enough may return no-route or insufficient-liquidity error
- Network or RPC unavailability may cause timeout or upstream error

## How this service works

Hosted by vAPI for o1.exchange: Get a live exact-input swap quote.

## Output

Returns a live swap quote object containing the expected output token amount, price impact, effective exchange rate, and any route or fee details for the specified exact-input trade on o1.exchange.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "side": {
   "enum": [
    "buy",
    "sell"
   ],
   "type": "string"
  },
  "wallet": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "comment": {
   "type": "string",
   "maxLength": 32
  },
  "chain_id": {
   "anyOf": [
    {
     "type": "number",
     "const": 8453
    },
    {
     "type": "number",
     "const": 4663
    },
    {
     "type": "number",
     "const": 143
    },
    {
     "type": "number",
     "const": 5042
    },
    {
     "type": "number",
     "const": 56
    },
    {
     "type": "number",
     "const": 196
    }
   ]
  },
  "referrer": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "slippage_bps": {
   "type": "integer",
   "maximum": 4999,
   "minimum": 0
  },
  "amount_in_raw": {
   "type": "string",
   "pattern": "^[1-9][0-9]*$",
   "maxLength": 39
  },
  "token_address": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/o1-exchange-swap-quote-via-vapi-de9d1e77/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vapinetwork.ai](https://www.zero.xyz/host/api.vapinetwork.ai/llms.txt)
