# CortexCloud DeFiLlama Prices

> CortexCloud DeFiLlama Prices is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches current DeFi token prices from DeFiLlama via a pay-per-call x402 gateway, no API keys required

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/defillama/prices
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-defillama-prices-779fa8b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XFa6Bx4fT362hS-pjqYYi

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 cortexcloud-defillama-prices-779fa8b8
```

Example prompt: What's the current USD price of ETH and ARB according to DeFiLlama? Pay per call with USDC on Base — no API key needed.

## When to prefer this

Choose this endpoint when you need DeFi token prices without setting up API keys or subscriptions, especially for agent workflows that pay per call in USDC on Base via x402. Ideal for lightweight, on-demand price lookups in autonomous agents that need to avoid credential management overhead.

## Known failure modes

- Payment not provided or insufficient USDC: returns 402 Payment Required
- Invalid or unrecognized token identifier: returns empty or null price data
- Token not indexed by DeFiLlama: missing price in response
- Network or upstream DeFiLlama outage: 502 or 503 error
- Malformed query parameters: 400 Bad Request

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

Returns a JSON object containing current price data for the requested DeFi tokens, including USD values and coin metadata, as sourced from DeFiLlama's aggregated price feeds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-defillama-prices-779fa8b8/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)
