# GlianaAI Exchange Rate API

> GlianaAI Exchange Rate API 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-09).

Returns live foreign exchange and crypto currency rates via a pay-per-call endpoint on GlianaAI's multi-tool platform

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/exchange-rate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-exchange-rate-api-8113a252
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6fgzKe3dk0HgGX00oEemx

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-exchange-rate-api-8113a252
```

Example prompt: What's the current exchange rate from USD to EUR right now? Use GlianaAI's exchange rate tool — I'm happy to pay per call.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call live FX or crypto exchange rate without setting up an account or API key. It is particularly useful in agentic workflows on Base or Solana where micropayments in USDC are already part of the flow, or when you need to combine exchange rate data with other GlianaAI tools (like LLM chat or OCR) in a single platform.

## Known failure modes

- Missing or invalid currency pair parameters returns an error response
- Network timeout if market data feed is temporarily unavailable
- Insufficient USDC balance or failed x402 payment results in 402 Payment Required
- Unsupported currency pair may return empty or null rate
- Rate may be slightly stale during low-liquidity periods

## How this service works

GlianaAI - Pay-per-call AI models, live market data, SEC filings and identity APIs, no signup, USDC. This resource: tools/exchange-rate. Fiat currency conversion across 160+ currencies. https://ai.glianalabs.com

## Output

Returns a JSON object containing the current exchange rate for the requested currency pair, sourced from live market data. The response includes the tool identifier and the rate value, suitable for real-time currency conversion, pricing, or arbitrage analysis.

## 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/exchange-rate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-exchange-rate-api-8113a252/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)
