7 micro-APIs for AI agents. Pay via x402/USDC. Zero auth. Zero KYC.
AI agents discover, pay, and call autonomously β no human in the loop.
| Endpoint | Price | Description |
|---|---|---|
POST /pdf |
||
| $0.01 | PDF β structured JSON with table extraction | |
POST /scrape |
||
| $0.02 | Any URL β clean Markdown | |
POST /ocr |
||
| $0.015 | Image β text (Apple Vision OCR) | |
POST /review |
||
| $0.03 | Code review β security & quality report | |
POST /translate |
||
| $0.01 | Translate between 20+ languages | |
POST /summarize |
||
| $0.01 | Long text β key sentences (extractive) | |
POST /md2html |
||
| $0.005 | Markdown β styled HTML (GitHub/Dark/Minimal) |
AI Agent β POST /scrape β 402 Payment Required
AI Agent β Pays USDC on Base β Retries with X-x402-Payment header
AI Agent β Gets result β
Framework: FastAPI (Python)** PDF**: pdfplumber** Scraping**: requests + BeautifulSoup4** OCR**: Apple Vision (macOS) / PIL fallback** Payments**: x402 protocol (USDC on Base)** Deploy**: Railway / Render / any Docker host
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8765
Then visit http://localhost:8765/docs
for interactive Swagger docs.
https://xiaoke-pdf-api.loca.lt
β Try GET /pricing
or see x402 in action with POST /scrape
MIT β build your own, list on AgenticTrade, keep 100% revenue.