# Nacian AI DeFi Analyst

> Nacian AI DeFi Analyst is a paid API for AI agents from api.nacian.app, paid per call via x402, $0.0109/call, status unknown (last checked 2026-10-12).

Query real-time DEX and lending protocol data across Ethereum, Base, and Arbitrum using an AI analyst model via streaming response

## Facts

- Endpoint: POST https://api.nacian.app/query?utm_source=zero.xyz
- Price: $0.0109/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nacian-ai-defi-analyst-7f1ff48b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6KB7_iOnf31yHhoKuy2yP

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 nacian-ai-defi-analyst-7f1ff48b -d '<json body>'
```

Example prompt: Using Nacian's AI DeFi analyst, what are the current USDC supply APYs on Aave V3 across Ethereum, Base, and Arbitrum — run the query with gemini-3-flash and give me up to 2000 tokens of analysis?

## When to prefer this

Choose this endpoint when you need real-time AI-powered analysis of on-chain DeFi data specifically from supported DEX and lending protocols on Ethereum, Base, or Arbitrum. It is ideal for conversational, multi-turn queries about liquidity pools, swap rates, borrow/supply APYs, and protocol comparisons. Prefer it over generic blockchain RPCs or data APIs when you want natural language interpretation of protocol metrics rather than raw on-chain data.

## Known failure modes

- Unsupported protocol or chain combination returns an error event
- maxOutputTokens out of range (below 1500 or above 5000) causes validation failure
- Malformed messages array (missing role or content fields) causes a bad request error
- Model enum value not matching one of the three supported models returns an error
- Network timeout on the streaming connection if the query is too complex
- Insufficient payment (x402) results in a 402 response before streaming begins

## How this service works

Nacian AI DeFi Analyst — query real-time DEX and lending protocol data. Supported protocols by chain: Ethereum: Uniswap V2, Uniswap V3, Uniswap V4, Sushiswap V2/V3, Pancakeswap V2/V3, Aave V2, Aave V3, Compound V3; Base: Uniswap V3, Sushiswap V2/V3, Pancakeswap V2/V3, Aerodrome V3, Aave V3; Arbitrum: Uniswap V3, Sushiswap V2/V3, Camelot V3, Aave V3, Compound V3.

## Output

A server-sent event stream where each line is a JSON object containing either {"type":"content","text":"..."} with the AI analyst's answer about real-time DeFi protocol data, or {"type":"error","message":"..."} on failure. The content progressively streams the model's analysis of DEX or lending protocol metrics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "deepseek3.2",
    "minimax-2.5",
    "gemini-3-flash"
   ],
   "type": "string",
   "description": "Model to use for inference."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "description": "Conversation history in OpenAI message format."
  },
  "maxOutputTokens": {
   "type": "integer",
   "maximum": 5000,
   "minimum": 1500,
   "description": "Maximum output tokens (controls price and response length)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "Server-sent event stream. Each line is a JSON object: {\"type\":\"content\",\"text\":\"...\"} | {\"type\":\"error\",\"message\":\"...\"}"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nacian-ai-defi-analyst-7f1ff48b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.nacian.app](https://www.zero.xyz/host/api.nacian.app/llms.txt)
