# SperaxOS Yield Migration Plan

> SperaxOS Yield Migration Plan is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Generates an AI-powered migration plan to move a DeFi yield position from one protocol/chain to a higher-yielding alternative

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/yield-optimizer/getYieldMigrationPlan?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-yield-migration-plan-b5354b6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MDvQidg1W2s2POx91XFBM

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 speraxos-yield-migration-plan-b5354b6c -d '<json body>'
```

Example prompt: I have $10,000 in USDC on Aave V3 on Ethereum — can you generate a yield migration plan and suggest where I should move it to earn better returns, even if that means switching to a different chain or protocol?

## When to prefer this

Use this endpoint when an agent needs to recommend and plan a yield-optimizing migration for a specific DeFi position, especially across protocols or chains. Prefer this over generic portfolio endpoints when the user explicitly wants to maximize APY or move liquidity to a better opportunity. Best suited for scenarios where the current protocol and asset are known and AI-driven suggestions are desired.

## Known failure modes

- Unsupported protocol name returns error or empty suggestions
- Invalid or unrecognized chain identifier causes plan generation failure
- Position value of zero or negative triggers validation error
- AI suggestion unavailable if both toChain and toProtocol are omitted and no suitable alternative is found
- Network or upstream DeFi data unavailability may result in stale or failed recommendations

## How this service works

SperaxOS is an AI-powered DeFi operating system — track portfolios, execute swaps, analyze on-chain data, and collaborate with intelligent agents that manage your crypto workflow.

## Output

Returns an AI-generated yield migration plan including the recommended target protocol and chain, expected yield improvement, and step-by-step migration instructions for moving the specified position from its current protocol to a higher-yielding alternative.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "toChain": {
   "type": "string",
   "description": "Target chain (optional, AI suggests if omitted)."
  },
  "fromAsset": {
   "type": "string",
   "description": "Current asset in the position."
  },
  "fromChain": {
   "type": "string",
   "description": "Current chain (e.g. \"ethereum\")."
  },
  "toProtocol": {
   "type": "string",
   "description": "Target protocol (optional, AI suggests if omitted)."
  },
  "fromProtocol": {
   "type": "string",
   "description": "Current protocol (e.g. \"Aave V3\")."
  },
  "positionValue": {
   "type": "number",
   "description": "Current position value in USD."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-yield-migration-plan-b5354b6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
