# Einstein AI Token Price Chart API

> Einstein AI Token Price Chart API is a paid API for AI agents from api.relai.fi, paid per call via x402, $1.000000/call, status unknown (last checked 2026-09-15).

Retrieves price and timestamp chart data for a specified token over a customizable time period across multiple EVM-compatible chains

## Facts

- Endpoint: POST https://api.relai.fi/relay/1769629274857/x402/bitquery/tokenchart
- Price: $1.000000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/einstein-ai-token-price-chart-api-e81d447b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rnHCPGA2jFT_fOwVaANkG

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 einstein-ai-token-price-chart-api-e81d447b -d '<json body>'
```

Example prompt: Can you pull the 24-hour price chart for the token at address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base so I can see how it's been trading today?

## When to prefer this

Use this endpoint when you need historical price and timestamp data for a specific token on a supported EVM chain (Base, Ethereum, BSC, Arbitrum, Polygon, Optimism, zkSync) and want to chart or analyze price movement over a defined period (1h, 4h, 24h, 7d, 30d). It is ideal for DeFi dashboards, trading bots, or portfolio trackers needing on-chain token price history rather than spot price alone.

## Known failure modes

- Missing tokenAddress parameter returns a 400 or validation error
- Invalid or non-existent contract address returns empty data or error
- Unsupported chain specified returns an error or falls back to Base
- Payment of $1 USDC not provided causes a 402 Payment Required response
- Network or BitQuery upstream outage causes timeout or 503 error

## How this service works

Get price and timestamp data for any token with customizable time periods. Supported chains: base, ethereum, bsc, arbitrum, polygon, optimism, zksync. Default chain: base. Required params: tokenAddress.

## Output

Returns a series of price and timestamp data points for the specified token over the requested time period, enabling chart rendering or trend analysis. Data is sourced from BitQuery and covers the selected EVM chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "timeperiod": {
   "enum": [
    "1h",
    "4h",
    "24h",
    "7d",
    "30d"
   ],
   "type": "string",
   "description": "Time period for analysis (e.g., 1h, 24h, 7d, 30d)"
  },
  "tokenAddress": {
   "type": "string",
   "description": "Token contract address (for token-specific queries)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/einstein-ai-token-price-chart-api-e81d447b/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)
