Paid API for AI agents — web extraction, finance, weather, news, geocoding & more. Pay per request with USDC via x402 on Base.
ai-api is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on ai-agents, api, base, micropayments. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like worklocal-ai, Agent402, APIMesh, x402-wiki, conway, gold-402.
Paid API for AI agents — web extraction, real-time finance, weather, news, geocoding, and utilities. Pay per request with USDC via x402 on Base.
Live: https://ai-api-1c5n.onrender.com
402 Payment Required response with payment instructionsNo API keys. No subscriptions. Just pay-per-request with crypto.
# Check API status
curl https://ai-api-1c5n.onrender.com/api/health
# Discover all endpoints and pricing
curl https://ai-api-1c5n.onrender.com/api/info
# OpenAPI 3.0 spec (for agent frameworks)
curl https://ai-api-1c5n.onrender.com/api/v1/openapi.json
# x402 protocol discovery
curl https://ai-api-1c5n.onrender.com/.well-known/x402.json
| Method | Path | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/info |
API info and x402 discovery |
| GET | /api/v1/openapi.json |
OpenAPI 3.0 specification |
| GET | /.well-known/x402.json |
x402 protocol discovery |
| Method | Path | Price | Description |
|---|---|---|---|
| POST | /api/v1/web/extract |
$0.005 | Extract text content from any URL |
| POST | /api/v1/news/feed |
$0.003 | Fetch and parse RSS/news feed |
| POST | /api/v1/finance/forex |
$0.002 | Real-time exchange rate |
| POST | /api/v1/finance/forex/rates |
$0.002 | All exchange rates for a base currency |
| POST | /api/v1/finance/crypto |
$0.002 | Cryptocurrency price by symbol |
| POST | /api/v1/finance/crypto/top |
$0.002 | Top cryptocurrencies by market cap |
| POST | /api/v1/finance/crypto/fear-greed |
$0.001 | Crypto Fear & Greed Index |
| POST | /api/v1/weather/current |
$0.002 | Current weather by coordinates |
| POST | /api/v1/weather/forecast |
$0.002 | 7-day weather forecast |
| POST | /api/v1/geo/search |
$0.002 | Geocode address to coordinates |
| POST | /api/v1/net/dns |
$0.001 | DNS lookup |
| POST | /api/v1/text/transform |
$0.001 | Text transformation |
| POST | /api/v1/text/analyze |
$0.002 | Text analysis |
| POST | /api/v1/data/json-transform |
$0.002 | JSON data transformation |
| POST | /api/v1/crypto/hash |
$0.001 | Hash generation (SHA-256, etc.) |
| POST | /api/v1/util/uuid |
$0.001 | UUID generation |
| POST | /api/v1/echo |
$0.001 | Echo API |
Extract web content (the killer feature — AI agents can't browse the web themselves):
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/web/extract \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "format": "text"}'
# Returns 402 with x402 payment instructions
Get crypto price:
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/finance/crypto \
-H "Content-Type: application/json" \
-d '{"symbol": "BTC"}'
Current weather (Tokyo):
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/weather/current \
-H "Content-Type: application/json" \
-d '{"latitude": 35.68, "longitude": 139.77}'
Geocode a city name:
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/geo/search \
-H "Content-Type: application/json" \
-d '{"query": "Tokyo"}'
Latest tech news:
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/news/feed \
-H "Content-Type: application/json" \
-d '{"category": "tech"}'
DNS lookup:
curl -X POST https://ai-api-1c5n.onrender.com/api/v1/net/dns \
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "type": "A"}'
All paid endpoints return 402 Payment Required with a response like:
{
"error": "X-PAYMENT header is required",
"accepts": {
"scheme": "exact",
"network": "eip155:8453",
"price": "$0.005",
"payTo": "0xFB3A0085fa2e7852f24e96C49EA77e080bE55CAB"
}
}
To complete payment, use the x402 client library:
import { paymentClient } from "@x402/client";
const client = paymentClient("https://ai-api-1c5n.onrender.com", wallet);
const response = await client.post("/api/v1/web/extract", {
url: "https://example.com",
format: "markdown"
});
See examples/client.ts for a complete working example.
This API is designed for AI agents. Integrate with:
/api/v1/openapi.json — compatible with LangChain, CrewAI, and other agent frameworks/.well-known/x402.json — standard x402 protocol discovery/mcp — connect Claude Desktop, Cursor, or any MCP client directly (free, no payment required)Each endpoint in the OpenAPI spec includes x-x402-price for automatic price discovery.
This API exposes all 16 tools as an MCP server via Streamable HTTP transport.
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"ai-api": {
"url": "https://ai-api-1c5n.onrender.com/mcp"
}
}
}
Available tools: web_extract, geo_search, weather_current, weather_forecast, finance_forex, finance_forex_rates, finance_crypto, finance_crypto_top, finance_crypto_fear_greed, news_feed, net_dns, text_transform, text_analyze, data_json_transform, crypto_hash, util_uuid
eip155:8453)https://facilitator.xpay.sh)| Service | Source | License |
|---|---|---|
| Forex rates | ExchangeRate-API | Free tier |
| Crypto prices | Coinlore | Free API |
| Fear & Greed | Alternative.me | Free API |
| Weather | Open-Meteo | CC BY 4.0 |
| Geocoding | Nominatim/OSM | ODbL |
| News feeds | Various RSS | Public RSS |
| DNS | Node.js built-in | N/A |
ISC
Paid API for AI agents — AI tool reviews, industry benchmarks, training content, ROI projections. x402 micropayments (USDC on Base).
500+ pay-per-call web tools + skill packs for AI agents — every one tested, priced, and settled on-chain. Paid in USDC over x402 on 8 chains, or free via proof-of-work on the pure-CPU tools. Self-hostable, MCP-native, deterministic. Plus the open x402 index (Find / Route / Leaderboard).
APIMesh — 23 pay-per-call web analysis APIs + 16-tool MCP server with autonomous API generation. Security audits, SEO, tech stack detection. x402 + Stripe MPP payments.
The x402 Service Encyclopedia — Every service ranked, reviewed, and documented. Community knowledge base for the AI agent economy.
APIMesh — 23 pay-per-call web analysis APIs + 16-tool MCP server with autonomous API generation. Security audits, SEO, tech stack detection. x402 + Stripe MPP payments.
⚡ The gold standard for x402 resources. 300+ projects, SDKs, tools, facilitators, and ecosystem data for the HTTP 402 Payment Required protocol. Curated by 24K Labs.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
The financial operating system for AI agents. A single HTTP client that intercepts '402 Payment Required', routes across x402, L402, and MPP, persists credentials as recoverable assets, enforces per-envelope budgets, and emits a structured trace.