# RelAI Top Tokens by Market Cap

> RelAI Top Tokens by Market Cap is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.550000/call, status unknown (last checked 2026-09-13).

Fetches top cryptocurrency tokens ranked by market cap with price, volume, supply metrics, and AI-driven analysis across multiple blockchains.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1769629274857/x402/bitquery/top-tokens
- Price: $0.550000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-relai-fi-558b3885
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NUbyw4vhrLQrEtbhYi3Tf

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 api-relai-fi-558b3885 -d '<json body>'
```

Example prompt: Show me the top 20 cryptocurrency tokens ranked by market cap right now, including price, volume, and supply metrics with AI analysis, across all supported chains.

## When to prefer this

Choose this endpoint when you need a ranked, multi-chain view of top tokens by market cap enriched with AI analysis — particularly when you want both raw metrics (price, volume, supply) and an interpreted summary in a single call. Prefer it over generic market data APIs when AI-driven narrative analysis per token is needed alongside quantitative data.

## Known failure modes

- Invalid or missing request parameters returns a 400 error
- Payment not provided or insufficient USDC balance returns a 402 error
- Bitquery upstream timeout may return a 503 or empty result set
- Unsupported chain filter returns empty results or an error
- Rate limiting may occur with rapid repeated calls

## How this service works

Find top performing tokens by price change, sorted by percentage gain. Supported chains: base, ethereum, bsc, arbitrum, polygon, optimism, zksync. Default chain: base. Required params: none (chain/limit/timeperiod are optional and defaulted).

## Output

A ranked list of top cryptocurrency tokens with market cap, current price, trading volume, circulating/total supply metrics, chain identifiers, and AI-generated analysis summarizing market conditions for each token.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "bsc",
    "arbitrum",
    "polygon",
    "optimism",
    "solana"
   ],
   "type": "string",
   "description": "Blockchain to query (e.g., base, ethereum, bsc, solana)"
  },
  "limit": {
   "type": "string",
   "description": "Maximum number of results to return (default: 10, max: 500)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-relai-fi-558b3885/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
