# HTTPay Flash Loan Rates API

> HTTPay Flash Loan Rates API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns live flash loan availability, max borrowable amounts, fee percentages, and gas estimates across Aave V3, Balancer V2, and Morpho Blue on Base.

## Facts

- Endpoint: POST https://httpay.xyz/api/flash-loan-rates
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-flash-loan-rates-api-fad62ab4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x0zTjN199EKCdEYQA-Uxc

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 httpay-flash-loan-rates-api-fad62ab4 -d '<json body>'
```

Example prompt: Can you compare flash loan availability across Aave V3, Balancer V2, and Morpho Blue on Base — I need to know the max borrowable amount for USDC, the fee percentage, and estimated gas costs for each?

## When to prefer this

Use this endpoint when you need a real-time, multi-protocol comparison of flash loan conditions on Base (Aave V3, Balancer V2, Morpho Blue) without needing an API key. Prefer this over building your own on-chain queries when you want aggregated fee and liquidity data in a single call for $0.01 USDC.

## Known failure modes

- On-chain RPC unavailable — returns 503 or stale data error
- Payment not received or x402 handshake fails — returns 402 Payment Required
- Rate limit exceeded — returns 429
- Invalid token or unsupported asset — returns empty or partial results
- Network congestion causing delayed gas estimates

## How this service works

Compare flash loan availability across Base protocols: Aave V3, Balancer V2, Morpho Blue. Returns max borrowable per token, fee %, and gas estimates. Live on-chain data.

## Output

A JSON object comparing flash loan availability across Aave V3, Balancer V2, and Morpho Blue on Base, including maximum borrowable amounts per token, fee percentages, and gas estimates — sourced from live on-chain data.

## Example request

```json
{
 "chain": "base",
 "token": "USDC"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Compare flash loan availability across Base protocols: Aave V3, Balancer V2, Morpho Blue. Returns max borrowable per token, fee %, and gas estimates. Live on-chain data."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-flash-loan-rates-api-fad62ab4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
