# Cortex Cloud Token Spot Price

> Cortex Cloud Token Spot Price is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-16).

Returns the current USD spot price for a cryptocurrency token or coin, using CoinGecko (free tier) or Alchemy as fallback, paid per call via x402.

## Facts

- Endpoint: GET https://api.cortexcloud.org/v1/data/token-price
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortex-cloud-token-spot-price-74ad542f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1hbGCQ9Xtvbyb0KshnIU2

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 cortex-cloud-token-spot-price-74ad542f
```

Example prompt: What's the current USD spot price of Ethereum on the Ethereum chain right now?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call USD spot price for a token without managing API keys. It is ideal for AI agents operating autonomously on Base that need real-time crypto prices as part of a workflow, especially when CoinGecko's free tier suffices and Alchemy serves as a reliable fallback. Prefer it over raw CoinGecko or Alchemy direct calls when you want a unified x402-compatible interface billed in USDC.

## Known failure modes

- Unknown token id or symbol returns a 404 or empty result
- Invalid contract address format (must match ^0x[0-9a-fA-F]{40}$) returns a 400 validation error
- Unsupported chain parameter results in an error or no data
- Rate limits on underlying CoinGecko or Alchemy APIs may cause transient failures or delays
- Payment failure via x402 (insufficient USDC balance) results in a 402 response blocking the request
- Stale or delayed pricing data if upstream providers are lagging

## How this service works

One pay-per-call API for AI agents: optimization, AI, research, on-chain data, and automation — all settled in USDC on Base via x402. Discover via MCP and Bazaar, estimate free, pay per call. No API keys, no signup.

## Output

Returns the current USD spot price for the requested token or coin, identified by CoinGecko id, contract address, or chain. The response includes the numeric price value in USD, sourced from CoinGecko on the free tier or Alchemy when needed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "chain": {
   "type": "string",
   "default": "ethereum"
  },
  "contract": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortex-cloud-token-spot-price-74ad542f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
