# KLane x402 API > Perp funding rates & arbitrage across 6 venues (Hyperliquid, Pacifica, Extended, Lighter direct; Bybit, Binance via Lighter public aggregator), DeFi yields, and AI utilities. Pay-per-call HTTP APIs for AI agents. No account or API key: call any endpoint, receive HTTP 402 with x402 payment requirements (USDC on Base; x402 v2 PAYMENT-REQUIRED header + v1 JSON body), retry with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1) header. Facilitator: PayAI. Or subscribe: Pro 9 USDC/month = 100k calls + funding-arbitrage webhook alerts, no account (https://klane402.deanhiki.workers.dev/pro), send header x-api-key. ## Endpoints - [GET /api/cloud/price](https://klane402.deanhiki.workers.dev/api/cloud/price?sku=Standard_D2s_v5&os=linux): $0.05 — Live Azure retail cloud prices (official Azure Retail Prices API), normalized and ranked cheapest-first across regions. Query: sku (e.g. Standard_D2s_v5) or service (e.g. Virtual Machines) + optional region (eastus), os (linux|windows), spot=1, limit. Returns hourly and monthly USD, region, meter. Cached 6h. $0.05 per call. - [GET /api/funding/latest](https://klane402.deanhiki.workers.dev/api/funding/latest?coin=BTC): $0.005 — Live perp funding rates across 6 venues (Hyperliquid, Bybit, Binance, Pacifica, Extended, Lighter), normalized to hourly rate and APR %, with mark price and open interest where the venue API provides it (Bybit/Binance rows come from the Lighter public funding aggregator, marked via:"lighter-aggregate", rate only, no mark/OI). Response includes per-venue source status. Query: coin (optional, e.g. BTC), venue (optional). Cached <=60s. $0.005 per call. - [GET /api/funding/arb](https://klane402.deanhiki.workers.dev/api/funding/arb?min_apr=10): $0.008 — Cross-venue funding arbitrage scanner: for each coin listed on 2+ of Hyperliquid/Bybit/Pacifica/Extended/Lighter, the best long venue (lowest funding) vs short venue (highest), spread in APR %, both sides' open interest. Sorted by spread. Query: min_apr (default 10), min_oi_usd (default 0), limit (default 30). $0.008 per call. - [GET /api/funding/history](https://klane402.deanhiki.workers.dev/api/funding/history?coin=ETH&days=7): $0.01 — Funding rate history for a coin: Hyperliquid hourly settlements, plus Bybit per-interval settlements when the Bybit API is reachable from the serving region (otherwise listed in unavailable[]) over the last N days (max 30), each with hourly-normalized rate, APR %, and average APR summary. Query: coin (required), days (default 7). $0.01 per call. - [GET /api/yields](https://klane402.deanhiki.workers.dev/api/yields?symbol=USDC&stable=1): $0.01 — Top DeFi yield pools from DefiLlama, filterable: query symbol (e.g. USDC), chain (e.g. Base), stable=1 (stablecoin only), min_tvl (default 1000000), limit (default 25). Returns project, chain, symbol, apy, apyBase, apyReward, tvlUsd, 30d mean apy. Cached 15 min. $0.01 per call. - [GET /api/chat](https://klane402.deanhiki.workers.dev/api/chat?prompt=Write+a+haiku+about+Seoul): $0.002 — Chat completion (Llama 3.1 8B). Query: prompt, system (optional). Returns {reply}. $0.002 per call, no API key, pay per call in USDC. - [GET /api/read-url](https://klane402.deanhiki.workers.dev/api/read-url?url=https%3A%2F%2Fexample.com): $0.005 — Read a public web page as clean text for RAG: returns {title, description, text (<=20k chars), links}. Query: url. $0.005 per URL. - [GET /api/x402-lint](https://klane402.deanhiki.workers.dev/api/x402-lint?url=https%3A%2F%2Fklane402.deanhiki.workers.dev%2Fapi%2Fchat): $0.01 — Lint any x402 endpoint before you pay it: fetches the URL, checks 402 status, x402Version, accepts[] fields (scheme, network, amount, asset, payTo, resource, timeout), known USDC asset, price in USD and discovery metadata. Returns {ok, issues[], summary}. Query: url. $0.01. - [GET /api/payto-check](https://klane402.deanhiki.workers.dev/api/payto-check?address=0x543e1bae93553c08a7658f5c5404b93dff3d8fa3): $0.01 — Pre-payment counterparty check for a Base (EVM) address: is it a contract or wallet, nonce (tx count), ETH and USDC balance, OFAC sanctions screening, plus a risk note. Query: address. $0.01. Use before an agent sends funds. - [GET /api/sentiment](https://klane402.deanhiki.workers.dev/api/sentiment?text=%EB%B0%B0%EC%86%A1%EC%9D%B4+%EB%84%88%EB%AC%B4+%EB%8A%A6%EC%96%B4%EC%9A%94): $0.003 — Classify sentiment and topics of text (any language incl. Korean). Returns {sentiment: positive|neutral|negative, score, topics[]}. Query: text. $0.003. - [GET /api/translate-ko](https://klane402.deanhiki.workers.dev/api/translate-ko?text=Hello%2C+how+much+is+shipping+to+Seoul%3F&to=ko): $0.01 — Translate any text to natural Korean (or Korean to English with to=en). Query: text, to (ko|en). $0.01 per call. - [GET /api/summarize-url](https://klane402.deanhiki.workers.dev/api/summarize-url?url=https%3A%2F%2Fexample.com): $0.02 — Fetch a public web page and return a 5-bullet English summary plus page title. Query: url. $0.02 per call. ## MCP server - Remote MCP (streamable HTTP): https://klane402.deanhiki.workers.dev/mcp tools: get_funding_rates (free), find_funding_arbitrage (free top 3), get_funding_history (key) ## Specs - [OpenAPI](https://klane402.deanhiki.workers.dev/openapi.json) - [x402 discovery](https://klane402.deanhiki.workers.dev/.well-known/x402)