# Aayat AI DeFi Yields

> Aayat AI DeFi Yields is a paid API for AI agents from aayatai.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Fetches ranked DeFi yield opportunities across multiple blockchains, filtered by chain, token, TVL, and risk profile, sourced from DefiLlama.

## Facts

- Endpoint: GET https://aayatai.com/defi/yields?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-defi-yields-47923c68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PsbcX3P30Hv6pa7hdFbGI

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 aayat-ai-defi-yields-47923c68
```

Example prompt: Show me the top 10 USDC stablecoin pools on Base sorted by risk-adjusted APY, with at least $1M TVL and no impermanent loss risk.

## When to prefer this

Choose this endpoint when you need structured, ranked DeFi yield data with built-in risk scoring sourced from DefiLlama, especially when filtering by chain, token, or project and needing IL risk and audit signals in a single pay-per-call call with no API key setup.

## Known failure modes

- Invalid chain enum value returns a 400 validation error
- Limit outside 1–25 range returns a 400 validation error
- Unknown project slug returns empty pool list
- minTvlUsd outside allowed range returns a 400 error
- Token symbol not found in any pool returns empty results
- Payment not received returns 402 Payment Required

## How this service works

Best DeFi yields for a token and chain, ranked by risk-adjusted APY (sustainable APY, discounted for risk): APY (base vs rewards), TVL, 30-day average, impermanent-loss risk, audits and past hacks of the protocol, with a 0-100 risk score and plain risk notes per pool. E.g. ?token=USDC&chain=base&minTvlUsd=1000000. Filters: project, stablecoinOnly, noImpermanentLoss, sort.

## Output

Returns a JSON object with a list of up to 25 ranked DeFi pool entries, each containing pool ID, protocol name, chain, token symbol, APY (base and reward), risk-adjusted APY, 30-day mean APY, 7-day APY change, TVL in USD, stablecoin flag, IL risk flag, audit count, last hack date, category, exposure type, a DefiLlama pool URL, and a risk assessment object with level and score. Also includes metadata: data source (DefiLlama), applied filters, total matched pool count, and check timestamp.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "sort": {
       "enum": [
        "risk-adjusted",
        "apy",
        "tvl"
       ],
       "type": "string",
       "default": "risk-adjusted",
       "description": "Ranking."
      },
      "chain": {
       "enum": [
        "all",
        "base",
        "solana",
        "ethereum",
        "bsc",
        "arbitrum",
        "polygon",
        "optimism",
        "avalanche"
       ],
       "type": "string",
       "default": "all",
       "description": "Blockchain: all, base, solana, ethereum, bsc, arbitrum, polygon, optimism, avalanche."
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 25,
       "minimum": 1,
       "description": "Pools to return."
      },
      "token": {
       "type": "string",
       "maxLength": 20,
       "description": "Token symbol in the pool, e.g. USDC, ETH, SOL (optional)."
      },
      "project": {
       "type": "string",
       "maxLength": 60,
       "description": "DefiLlama project slug, e.g. aave-v3, morpho-blue (optional)."
      },
      "minTvlUsd": {
       "type": "number",
       "default": 1000000,
       "maximum": 100000000000,
       "minimum": 10000,
       "description": "Minimum pool TVL in USD."
      },
      "stablecoinOnly": {
       "type": "boolean",
       "default": false,
       "description": "Only stablecoin pools."
      },
      "noImpermanentLoss": {
       "type": "boolean",
       "default": false,
       "description": "Only pools without impermanent-loss risk."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pools": [
   {
    "apy": 4.8,
    "url": "https://defillama.com/yields/pool/7e0661bf-8cf3-45e6-9424-31916d4c7b84",
    "pool": "7e0661bf-8cf3-45e6-9424-31916d4c7b84",
    "risk": {
     "level": "low",
     "notes": [],
     "score": 0
    },
    "chain": "Base",
    "audits": 2,
    "ilRisk": "no",
    "symbol": "USDC",
    "tvlUsd": 180000000,
    "apyBase": 4.8,
    "project": "aave-v3",
    "category": "Lending",
    "exposure": "single",
    "lastHack": null,
    "protocol": "Aave V3",
    "apyReward": null,
    "apyMean30d": 5.1,
    "stablecoin": true,
    "apyChange7d": -0.2,
    "riskAdjustedApy": 4.8
   }
  ],
  "source": "DefiLlama",
  "filters": {
   "chain": "base",
   "token": "USDC",
   "minTvlUsd": 1000000
  },
  "matched": 42,
  "checkedAt": "2026-09-28T12:00:00.000Z",
  "disclaimer": ""
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-defi-yields-47923c68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
