{"slug": "xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway", "title": "XiaoKe API Gateway: PDF OCR Scrape Translate Review SummarizeXiaoKe API Gateway", "summary": "XiaoKe API Gateway launched a suite of 7 micro-APIs for AI agents, enabling autonomous discovery, payment, and execution of tasks like PDF extraction, web scraping, OCR, code review, translation, summarization, and Markdown-to-HTML conversion. The APIs use x402/USDC payments with zero authentication or KYC, allowing AI agents to operate without human intervention.", "body_md": "7 micro-APIs for AI agents. Pay via x402/USDC. Zero auth. Zero KYC.\n\nAI agents discover, pay, and call autonomously — no human in the loop.\n\n| Endpoint | Price | Description |\n|---|---|---|\n`POST /pdf` |\n$0.01 | PDF → structured JSON with table extraction |\n`POST /scrape` |\n$0.02 | Any URL → clean Markdown |\n`POST /ocr` |\n$0.015 | Image → text (Apple Vision OCR) |\n`POST /review` |\n$0.03 | Code review → security & quality report |\n`POST /translate` |\n$0.01 | Translate between 20+ languages |\n`POST /summarize` |\n$0.01 | Long text → key sentences (extractive) |\n`POST /md2html` |\n$0.005 | Markdown → styled HTML (GitHub/Dark/Minimal) |\n\n```\nAI Agent → POST /scrape → 402 Payment Required\nAI Agent → Pays USDC on Base → Retries with X-x402-Payment header\nAI Agent → Gets result ✅\n```\n\n**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\n\n```\npip install -r requirements.txt\nuvicorn main:app --host 0.0.0.0 --port 8765\n```\n\nThen visit `http://localhost:8765/docs`\n\nfor interactive Swagger docs.\n\n`https://xiaoke-pdf-api.loca.lt`\n\n— Try `GET /pricing`\n\nor see x402 in action with `POST /scrape`\n\nMIT — build your own, list on AgenticTrade, keep 100% revenue.", "url": "https://wpnews.pro/news/xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway", "canonical_source": "https://github.com/y9695430-lang/xiaoke-api-gateway", "published_at": "2026-06-27 12:00:00+00:00", "updated_at": "2026-06-27 12:35:20.968155+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-infrastructure", "developer-tools", "ai-products"], "entities": ["XiaoKe API Gateway", "FastAPI", "pdfplumber", "BeautifulSoup", "Apple Vision", "x402", "USDC", "Base"], "alternates": {"html": "https://wpnews.pro/news/xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway", "markdown": "https://wpnews.pro/news/xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway.md", "text": "https://wpnews.pro/news/xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway.txt", "jsonld": "https://wpnews.pro/news/xiaoke-api-gateway-pdf-ocr-scrape-translate-review-summarizexiaoke-api-gateway.jsonld"}}