# GlianaAI Swap Quote

> GlianaAI Swap Quote is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-18).

Fetches a real-time DEX swap quote for a token pair, returning price, route, and liquidity data

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/swap-quote?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-swap-quote-509b5668
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M8HxhxORWxHuMrtsd0pNy

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 glianaai-swap-quote-509b5668
```

Example prompt: Can you get me a live swap quote for trading 1 ETH into USDC on a DEX right now — I want to see the expected output amount and price impact before I do anything.

## When to prefer this

Choose this endpoint when you need a real-time DEX swap quote without signing up for a separate service, especially when you want to pay per-call in USDC via x402 on chains like Base, Solana, or BNB Chain. It is ideal for agents that need on-chain price discovery, pre-trade analysis, or arbitrage checks as part of a broader workflow that may also use GlianaAI's other financial data APIs (crypto rates, gas, liquidity).

## Known failure modes

- Unsupported token pair returns error or empty quote
- Insufficient liquidity on requested route returns no quote
- Missing required input parameters returns validation error
- Network or chain not supported returns error response
- Stale or unavailable market data may return outdated quote

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns a JSON object containing the DEX swap quote details including expected output token amount, exchange rate, price impact, liquidity route, and any fee estimates for the specified token pair and input amount.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "tools/swap-quote"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-swap-quote-509b5668/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
